We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59a60fa commit 1cded5cCopy full SHA for 1cded5c
1 file changed
man/manual.md
@@ -654,6 +654,20 @@ Or at the same line as the code:
654
arr[10] = 0; // cppcheck-suppress arrayIndexOutOfBounds
655
}
656
657
+The suppression comment and the line of code may be separated by additional comments or empty lines:
658
+
659
+ void f() {
660
+ char arr[5];
661
662
+ // cppcheck-suppress arrayIndexOutOfBounds
663
664
+ arr[10] = 0;
665
666
667
+ // Set the tenth element of arr to zero
668
669
+ }
670
671
In this example there are 2 lines with code and 1 suppression comment. The suppression comment only applies to 1 line: `a = b + c;`.
672
673
void f() {
0 commit comments