Skip to content

Commit 95f8fe2

Browse files
committed
Address incorrect test case formatting
1 parent 9d25d34 commit 95f8fe2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cpp/autosar/test/rules/A7-1-2/VariableMissingConstexpr.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
| test.cpp:55:7:55:8 | m2 | Variable m2 could be marked 'constexpr'. |
1111
| test.cpp:130:7:130:8 | m1 | Variable m1 could be marked 'constexpr'. |
1212
| test.cpp:141:7:141:8 | m1 | Variable m1 could be marked 'constexpr'. |
13-
| test.cpp:215:7:215:7 | x | Variable x could be marked 'constexpr'. |
13+
| test.cpp:212:7:212:7 | x | Variable x could be marked 'constexpr'. |

cpp/autosar/test/rules/A7-1-2/test.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,9 @@ class ExcludedCases {
206206
void operator=(ExcludedCases &&) {} // COMPLIANT
207207
};
208208

209-
210-
constexpr int add(int x, int y) {
211-
return x + y;
212-
}
209+
constexpr int add(int x, int y) { return x + y; }
213210

214211
void fp_reported_in_466(int p) {
215-
int x = add(1,2); // NON_COMPLIANT
216-
int y = add(1,p); // COMPLIANT
212+
int x = add(1, 2); // NON_COMPLIANT
213+
int y = add(1, p); // COMPLIANT
217214
}

0 commit comments

Comments
 (0)