cppcheck: enable inline-suppr
Allow inline suppression of cppcheck errors for special cases. Some
example use cases might be:
- suppress accessMoved in a unit test for a move constructor (ensuring
the moved from object is in the expected state).
- suppress noExplicitConstructor for RAII types where implicit
conversion is intentional and desired.
Change-Id: I560d780fdf9266dc54662a9eeb6ed6986fc271a8
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index 07a17ff..0bf45a0 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -383,6 +383,7 @@
"-j",
str(multiprocessing.cpu_count()),
"--enable=style,performance,portability,missingInclude",
+ "--inline-suppr",
"--suppress=useStlAlgorithm",
"--suppress=unusedStructMember",
"--suppress=postfixOperator",