We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f938dd5 commit a778a19Copy full SHA for a778a19
clang/test/Analysis/stack-addr-ps.cpp
@@ -1075,10 +1075,10 @@ void TakesIntAndPtr(int, int *);
1075
void PassAddressOfLocal(int a, int *b) {
1076
int c;
1077
[[clang::musttail]] return TakesIntAndPtr(0, &c); // expected-warning {{address of stack memory associated with local variable 'c' pass\
1078
-ed to musttail function}}
+ed to musttail function}} False-negative on CSA
1079
}
1080
void PassAddressOfParam(int a, int *b) {
1081
[[clang::musttail]] return TakesIntAndPtr(0, &a); // expected-warning {{address of stack memory associated with parameter 'a' passed to\
1082
- musttail function}}
+ musttail function}} False-negative on CSA
1083
1084
} // namespace with_attr_musttail
0 commit comments