Skip to content

Commit

Permalink
cscppc: invoke cppcheck with -D__CPPCHECK__
Browse files Browse the repository at this point in the history
... so that developers can conditionally provide simplified definitions
of their macros in cases where cppcheck would unnecessarily report false
positives on each use of the original macro definition.

Reported-by: Adrian Reber
  • Loading branch information
kdudka committed Oct 13, 2020
1 parent c4f96b8 commit 778c116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cscppc.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static const char *analyzer_def_arg_list[] = {
#else
#error "Unknown word size"
#endif
"-D__CPPCHECK__",
"--inline-suppr",
"--quiet",
"--template={file}:{line}: {severity}: {id}(CWE-{cwe}): {message}",
Expand Down

0 comments on commit 778c116

Please sign in to comment.