Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:PT_GUARDED_BY

7 #define PT_GUARDED_BY(x)    __attribute__ ((pt_guarded_by(x)))
372 #if !__has_attribute(pt_guarded_by)
373 #error "Should support pt_guarded_by attribute"
378 int *pgb_var_noargs __attribute__((pt_guarded_by)); // \
379 // expected-error {{'pt_guarded_by' attribute takes one argument}}
381 int *pgb_ptr_var_arg PT_GUARDED_BY(mu1);
383 int *pgb_ptr_var_args __attribute__((pt_guarded_by(mu1, mu2))); // \
384 // expected-error {{'pt_guarded_by' attribute takes one argument}}
386 int pgb_var_args PT_GUARDED_BY(mu1); // \
387 // expected-warning {{'pt_guarded_by' only applies to pointer types; type here is 'int'}}
391 int *pgb_field_noargs __attribute__((pt_guarded_by)); // \
392 // expected-error {{'pt_guarded_by' attribute takes one argument}}
393 int *pgb_field_args PT_GUARDED_BY(mu1);
396 class PT_GUARDED_BY(mu1) PGB { // \
397 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
400 void pgb_function() PT_GUARDED_BY(mu1); // \
401 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
403 void pgb_function_params(int gv_lvar PT_GUARDED_BY(mu1)); // \
404 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
407 int *x PT_GUARDED_BY(mu1) = new int(0); // \
408 // expected-warning {{'pt_guarded_by' attribute only applies to fields and global variables}}
415 int * pgb_var_arg_1 PT_GUARDED_BY(muWrapper.mu);
416 int * pgb_var_arg_2 PT_GUARDED_BY(muDoubleWrapper.muWrapper->mu);
417 int * pgb_var_arg_3 PT_GUARDED_BY(muWrapper.getMu());
418 int * pgb_var_arg_4 PT_GUARDED_BY(*muWrapper.getMuPointer());
419 int * pgb_var_arg_5 PT_GUARDED_BY(&mu1);
420 int * pgb_var_arg_6 PT_GUARDED_BY(muRef);
421 int * pgb_var_arg_7 PT_GUARDED_BY(muDoubleWrapper.getWrapper()->getMu());
422 int * pgb_var_arg_8 PT_GUARDED_BY(muPointer);
426 int * pgb_var_arg_bad_1 PT_GUARDED_BY(1); // \
427 // expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'int'}}
428 int * pgb_var_arg_bad_2 PT_GUARDED_BY("mu"); // \
429 // expected-warning {{ignoring 'pt_guarded_by' attribute because its argument is invalid}}
430 int * pgb_var_arg_bad_3 PT_GUARDED_BY(muDoublePointer); // \
431 // expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute; type here is 'Mutex **'}}
432 int * pgb_var_arg_bad_4 PT_GUARDED_BY(umu); // \
433 // expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'capability' attribute}}
1394 smart_ptr<int> gdat PT_GUARDED_BY(gmu);
1403 smart_ptr<int> a PT_GUARDED_BY(mu_);