File: analyze_cppcheck.sh

package info (click to toggle)
synfigstudio 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 162,048 kB
  • sloc: cpp: 208,474; javascript: 25,487; ansic: 13,216; python: 7,509; sh: 6,391; makefile: 2,999; objc: 1,400; csh: 486; perl: 238; ruby: 73; xml: 11
file content (12 lines) | stat: -rwxr-xr-x 851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# The possible severities for messages are:
# error             used when bugs are found
# warning           suggestions about defensive programming to prevent bugs
# style             stylistic issues related to code cleanup (unused functions, redundant code, constness, and such)
# performance       Suggestions for making the code faster. These suggestions are only based on common knowledge.  It  is  not  certain  you'll  get  any  measurable  difference  in  speed  by  fixing these messages.
# portability       portability warnings. 64-bit portability. code might work different on different compilers. etc.
# information       Configuration problems. The recommendation is to only enable these during configuration

#cppcheck ./ --enable=warning 2> cpp_check_errors.txt
cppcheck ./ --enable=performance 2> cpp_check_performance.txt