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 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'. |
Original file line number Diff line number Diff 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
214211void 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}
You can’t perform that action at this time.
0 commit comments