Skip to content

Commit ce79355

Browse files
committed
Fix test formatting
1 parent 8bcf85d commit ce79355

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

cpp/misra/test/rules/RULE-5-10-1/PoorlyFormedIdentifier.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
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. |

cpp/misra/test/rules/RULE-5-10-1/test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
193193
const 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

0 commit comments

Comments
 (0)