File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
cpp/cert/test/rules/DCL51-CPP Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- | test.cpp:18:7 :18:12 | tzname | The variable $@ reuses a reserved standard library name. | test.cpp:18:7 :18:12 | tzname | tzname |
1+ | test.cpp:18:20 :18:25 | tzname | The variable $@ reuses a reserved standard library name. | test.cpp:18:20 :18:25 | tzname | tzname |
Original file line number Diff line number Diff line change 1515
1616// int NULL = 0; // NON_COMPLIANT, but not supported by compilers in practice
1717
18- char * tzname[ 2 ]; // NON_COMPLIANT
18+ namespace ns { int tzname = 0 ; } // NON_COMPLIANT
1919
2020void min () {} // NON_COMPLIANT
2121
@@ -48,4 +48,4 @@ void test_lambda(const int y) {
4848 // Lambda generates a static function called `_FUN` when the lambda is
4949 // converted to a function pointer
5050 g ([](int x) { return x; }); // COMPLIANT - compiler generated
51- }
51+ }
You can’t perform that action at this time.
0 commit comments