File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed
autosar/test/rules/A1-1-1
deleteofpointertoincompleteclass
validcontainerelementaccess Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void f2() {
2424}
2525
2626void f4a (int * a ) {
27- * a = 100 ; // NON_COMPLAINT
27+ * a = 100 ; // NON_COMPLIANT
2828}
2929
3030void f4b (int * a ) {}
Original file line number Diff line number Diff line change @@ -15,32 +15,32 @@ void t1() {
1515 int ar4 [4 ] = {1 , 2 , 3 };
1616 int * ar4p = ar4 ;
1717
18- f1 (0 ); // NON_COMPLAINT
19- f1 (ar ); // NON_COMPLAINT
18+ f1 (0 ); // NON_COMPLIANT
19+ f1 (ar ); // NON_COMPLIANT
2020 f1 (ar2 ); // COMPLIANT
2121 f1 (ar2p ); // NON_COMPLIANT
2222 f1 (ar3 ); // COMPLIANT
2323 f1 (ar3p ); // COMPLIANT
2424 f1 (ar4 ); // COMPLIANT
2525
26- f2 (0 , 0 ); // NON_COMPLAINT
27- f2 (0 , ar ); // NON_COMPLAINT
26+ f2 (0 , 0 ); // NON_COMPLIANT
27+ f2 (0 , ar ); // NON_COMPLIANT
2828 f2 (0 , ar2 ); // COMPLIANT
2929 f2 (0 , ar2p ); // NON_COMPLIANT
3030 f2 (0 , ar3 ); // COMPLIANT
3131 f2 (0 , ar3p ); // COMPLIANT
3232 f2 (0 , ar4 ); // COMPLIANT
3333
34- f3 (0 ); // COMPLAINT
35- f3 (ar ); // COMPLAINT
34+ f3 (0 ); // COMPLIANT
35+ f3 (ar ); // COMPLIANT
3636 f3 (ar2 ); // COMPLIANT
3737 f3 (ar2p ); // COMPLIANT
3838 f3 (ar3 ); // COMPLIANT
3939 f3 (ar3p ); // COMPLIANT
4040 f3 (ar4 ); // COMPLIANT
4141
42- f4 (0 , 0 ); // COMPLAINT
43- f4 (0 , ar ); // COMPLAINT
42+ f4 (0 , 0 ); // COMPLIANT
43+ f4 (0 , ar ); // COMPLIANT
4444 f4 (0 , ar2 ); // COMPLIANT
4545 f4 (0 , ar2p ); // COMPLIANT
4646 f4 (0 , ar3 ); // COMPLIANT
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ int f2() { return 0; }
33
44int t1 () {
55 f1 ();
6- f2 (); // NON_COMPLAINT
6+ f2 (); // NON_COMPLIANT
77 (void )f2 (); // COMPLIANT
88 int a = f2 (); // COMPLIANT
99 a = f2 (); // COMPLIANT
Original file line number Diff line number Diff line change 11#include < assert.h> // NON_COMPLIANT
2- #include < complex.h> // NON_COMPLAINT
2+ #include < complex.h> // NON_COMPLIANT
33#include < ctype.h> // NON_COMPLIANT
44#include < errno.h> // NON_COMPLIANT
55#include < fenv.h> // NON_COMPLIANT
Original file line number Diff line number Diff line change 11class A {
22 class B *impl;
33
4- void test () { delete impl; } // NON_COMPLAINT
4+ void test () { delete impl; } // NON_COMPLIANT
55};
66
77class D {};
88
99class C {
1010 class D *impl1;
1111
12- void test () { delete impl1; } // COMPLAINT
12+ void test () { delete impl1; } // COMPLIANT
1313};
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ void f11(std::string cs) {
111111 const char *cp = cs.c_str ();
112112 const char *cpe = cp + 2 ;
113113
114- while (cp < cpe) { // COMPLAINT
114+ while (cp < cpe) { // COMPLIANT
115115 std::string arg (cp); // COMPLIANT
116116 cp += arg.size () + 1 ;
117117 }
You can’t perform that action at this time.
0 commit comments