File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
cpp/autosar/test/rules/A7-1-2 Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 10
10
| test.cpp:55:7:55:8 | m2 | Variable m2 could be marked 'constexpr'. |
11
11
| test.cpp:130:7:130:8 | m1 | Variable m1 could be marked 'constexpr'. |
12
12
| 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'. |
Original file line number Diff line number Diff line change @@ -206,12 +206,9 @@ class ExcludedCases {
206
206
void operator =(ExcludedCases &&) {} // COMPLIANT
207
207
};
208
208
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; }
213
210
214
211
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
217
214
}
You can’t perform that action at this time.
0 commit comments