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 a97f15d commit a15ce10Copy full SHA for a15ce10
clang/test/Analysis/thread-safety-handle-parenthesis.cpp
@@ -10,7 +10,7 @@ struct Baz {
10
int protected_num_ __attribute__((guarded_by(lock_))) = 1;
11
};
12
13
-void baz_paran_test() {
+void paren_test() {
14
Baz baz;
15
int& n = baz.protected_num_;
16
sink_protected(n); // expected-warning{{reading variable 'protected_num_' requires holding mutex 'baz.lock_'}}
0 commit comments