We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f9a3b4 commit e70089fCopy full SHA for e70089f
2 files changed
cpp/autosar/test/rules/A18-5-5/test.cpp
@@ -11,7 +11,7 @@ void *malloc1(int b) { // NON_COMPLIANT - recursion
11
return malloc1(b - 1);
12
}
13
14
-void *malloc2(int b) __attribute__((no_caller_saved_registers, __malloc__));
+void *malloc2(int b) __attribute__((__malloc__));
15
void *malloc2(int b) { // NON_COMPLIANT - execution doesn't depend on b
16
17
for (int i = 0; i < 10; i++) {
cpp/autosar/test/rules/A18-5-6/test.cpp
@@ -4,7 +4,7 @@ void *malloc1(int b) __attribute__((malloc));
4
5
void *malloc1(int b) { return nullptr; } // NON_COMPLIANT
6
7
-void *malloc3(int b) __attribute__((no_caller_saved_registers, __malloc__));
+void *malloc3(int b) __attribute__((__malloc__));
8
void *malloc3(int b) { return nullptr; } // NON_COMPLIANT
9
10
void h1() {} // NON_COMPLIANT
0 commit comments