File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
cpp/common/test/deviations/deviations_basic_test Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,22 +28,22 @@ int alt() {
2828 }
2929 long double d14; // NON_COMPLIANT (A0-4-2)
3030 getZ (); // NON_COMPLIANT (A0-1-2)
31- [[codeql::autosar_deviation (" a-0-4-2-deviation" )]]
32- for (long double d15 = 0.0 ; true ;) {} // COMPLIANT[DEVIATED]
33- for (long double d16 = 0.0 ; true ;) { // NON_COMPLIANT (A0-4-2)
31+ [[codeql::autosar_deviation (" a-0-4-2-deviation" )]] for (long double d15 = 0.0 ;
32+ true ;) {
33+ } // COMPLIANT[DEVIATED]
34+ for (long double d16 = 0.0 ; true ;) { // NON_COMPLIANT (A0-4-2)
3435 }
3536 return 0 ;
3637}
3738
38- [[codeql::autosar_deviation(" a-0-4-2-deviation" )]]
39- int test_function_deviation () {
39+ [[codeql::autosar_deviation(" a-0-4-2-deviation" )]] int
40+ test_function_deviation () {
4041 int x = 0 ; // COMPLIANT[DEVIATED]
4142 getZ (); // NON_COMPLIANT
4243 long double dd1; // COMPLIANT[DEVIATED]
4344}
4445
45- [[codeql::autosar_deviation(" a-0-4-2-deviation" )]]
46- void test_lambdas () {
46+ [[codeql::autosar_deviation(" a-0-4-2-deviation" )]] void test_lambdas () {
4747 auto l = []() {
4848 long double d4; // COMPLIANT[DEVIATED]
4949 getZ (); // NON_COMPLIANT
You can’t perform that action at this time.
0 commit comments