Skip to content

Commit 5891e21

Browse files
Adapt regression tests to new rules about lambda and global string vars
1 parent 59a0661 commit 5891e21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

samples/silly-sample/filters.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ src/sillycode.cpp:113: Is this a non-const reference? If so, make const or use
1111
src/sillycode.cpp:118: Is this a non-const reference? If so, make const or use a pointer: N::X& a [runtime/references] [2]
1212
src/sillycode.cpp:118: Is this a non-const reference? If so, make const or use a pointer: N::X& b [runtime/references] [2]
1313
src/sillycode.cpp:166: Do not use variable-length arrays. Use an appropriately named ('k' followed by CamelCase) compile-time constant for the size. [runtime/arrays] [1]
14-
src/sillycode.cpp:173: For a static/global string constant, use a C style string instead: "char s[]". [runtime/string] [4]
14+
src/sillycode.cpp:173: Static/global string variables are not permitted. [runtime/string] [4]
1515
src/sillycode.cpp:194: If an else has a brace on one side, it should have it on both [readability/braces] [5]
1616
src/sillycode.cpp:197: If an else has a brace on one side, it should have it on both [readability/braces] [5]
17-
src/sillycode.cpp:203: For a static/global string constant, use a C style string instead: "char var[]". [runtime/string] [4]
17+
src/sillycode.cpp:203: Static/global string variables are not permitted. [runtime/string] [4]
18+
src/sillycode.cpp:222: Static/global string variables are not permitted. [runtime/string] [4]
1819
src/sillycode.cpp:223: Using C-style cast. Use reinterpret_cast<double*>(...) instead [readability/casting] [4]
1920
src/sillycode.cpp:238: Using C-style cast. Use reinterpret_cast<derived2*>(...) instead [readability/casting] [4]
2021
Done processing src/sillycode.cpp

0 commit comments

Comments
 (0)