File tree Expand file tree Collapse file tree
cpp/misra/test/rules/RULE-5-10-1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949| test.cpp:184:7:184:15 | wctrans_t | Identifier 'wctrans_t' is a reserved name. |
5050| test.cpp:185:7:185:14 | wctype_t | Identifier 'wctype_t' is a reserved name. |
5151| test.cpp:186:7:186:12 | wint_t | Identifier 'wint_t' is a reserved name. |
52- | test.cpp:202 :1:202 :42 | __PRETTY_FUNCTION__ | Identifier '__PRETTY_FUNCTION__' contains double underscores. |
53- | test.cpp:202 :1:202 :42 | __PRETTY_FUNCTION__ | Identifier '__PRETTY_FUNCTION__' starts with underscore. |
52+ | test.cpp:203 :1:203 :42 | __PRETTY_FUNCTION__ | Identifier '__PRETTY_FUNCTION__' contains double underscores. |
53+ | test.cpp:203 :1:203 :42 | __PRETTY_FUNCTION__ | Identifier '__PRETTY_FUNCTION__' starts with underscore. |
Original file line number Diff line number Diff line change @@ -191,8 +191,9 @@ void test_reserved_names() {
191191// extensions. They are synthesized per-function by the compiler, so despite
192192// containing double underscores / leading underscores they must not be flagged.
193193const char *test_predefined_function_identifiers () {
194- const char *a = __func__; // COMPLIANT - compiler-predefined, not user-defined
195- const char *b = __PRETTY_FUNCTION__; // COMPLIANT - compiler-predefined, not user-defined
194+ const char *a = __func__; // COMPLIANT - compiler-predefined, not user-defined
195+ const char *b =
196+ __PRETTY_FUNCTION__; // COMPLIANT - compiler-predefined, not user-defined
196197 return a ? a : b;
197198}
198199
You can’t perform that action at this time.
0 commit comments