Home | History | Annotate | Download | only in SemaCXX

Lines Matching defs:GUARDED_BY

5 #define GUARDED_BY(x)       __attribute__ ((guarded_by(x)))
302 #if !__has_attribute(guarded_by)
303 #error "Should support guarded_by attribute"
308 int gb_var_arg GUARDED_BY(mu1);
310 int gb_non_ascii GUARDED_BY(L"wide"); // expected-warning {{ignoring 'guarded_by' attribute because its argument is invalid}}
312 int gb_var_args __attribute__((guarded_by(mu1, mu2))); // \
313 // expected-error {{'guarded_by' attribute takes one argument}}
315 int gb_var_noargs __attribute__((guarded_by)); // \
316 // expected-error {{'guarded_by' attribute takes one argument}}
320 int gb_field_noargs __attribute__((guarded_by)); // \
321 // expected-error {{'guarded_by' attribute takes one argument}}
322 int gb_field_args GUARDED_BY(mu1);
325 class GUARDED_BY(mu1) GB { // \
326 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
329 void gb_function() GUARDED_BY(mu1); // \
330 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
332 void gb_function_params(int gv_lvar GUARDED_BY(mu1)); // \
333 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
336 int x GUARDED_BY(mu1) = y; // \
337 // expected-warning {{'guarded_by' attribute only applies to fields and global variables}}
344 int gb_var_arg_1 GUARDED_BY(muWrapper.mu);
345 int gb_var_arg_2 GUARDED_BY(muDoubleWrapper.muWrapper->mu);
346 int gb_var_arg_3 GUARDED_BY(muWrapper.getMu());
347 int gb_var_arg_4 GUARDED_BY(*muWrapper.getMuPointer());
348 int gb_var_arg_5 GUARDED_BY(&mu1);
349 int gb_var_arg_6 GUARDED_BY(muRef);
350 int gb_var_arg_7 GUARDED_BY(muDoubleWrapper.getWrapper()->getMu());
351 int gb_var_arg_8 GUARDED_BY(muPointer);
355 int gb_var_arg_bad_1 GUARDED_BY(1); // \
356 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'int'}}
357 int gb_var_arg_bad_2 GUARDED_BY("mu"); // \
358 // expected-warning {{ignoring 'guarded_by' attribute because its argument is invalid}}
359 int gb_var_arg_bad_3 GUARDED_BY(muDoublePointer); // \
360 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'Mutex **'}}
361 int gb_var_arg_bad_4 GUARDED_BY(umu); // \
362 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'UnlockableMu'}}
1278 int a GUARDED_BY(gmu);
1279 int b GUARDED_BY(mu);
1280 int c GUARDED_BY(this->mu);
1327 int GUARDED_BY(mu_) a;
1328 int GUARDED_BY(mu_) b, c;
1341 int a GUARDED_BY(mu);
1342 int b GUARDED_BY(fooMuStatic);
1351 int a GUARDED_BY(fooMu);
1361 int testEmptyAttribute GUARDED_BY("");
1374 int a GUARDED_BY(&Graph::mu_);
1404 int b GUARDED_BY(smu_);
1430 int a GUARDED_BY(mu1_);
1431 int b GUARDED_BY(mu2_);
1432 int c GUARDED_BY(mu3_); // \
1433 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'InheritanceTest::Derived3'}}
1462 int a GUARDED_BY(mu);
1464 static int si GUARDED_BY(mu); // \