Allow cppcheck suppress individual defects by default

This commit is contained in:
valeros
2019-10-28 13:38:46 +02:00
parent d620579247
commit 5573c3871c

View File

@ -91,6 +91,10 @@ class CppcheckCheckTool(CheckToolBase):
)
flags = self.get_flags("cppcheck")
if not flags:
# by default user can suppress reporting individual defects
# directly in code // cppcheck-suppress warningID
cmd.append("--inline-suppr")
if not self.is_flag_set("--platform", flags):
cmd.append("--platform=unspecified")
if not self.is_flag_set("--enable", flags):