forked from OSchip/llvm-project
Thread safety analysis: Reword warning after D72635
We allow arbitrary names for capabilities now, and the name didn't play a role for this anyway.
This commit is contained in:
parent
8f5beb4c4b
commit
ce7eb72a3c
|
@ -3336,7 +3336,7 @@ def warn_thread_attribute_argument_not_lockable : Warning<
|
|||
InGroup<ThreadSafetyAttributes>, DefaultIgnore;
|
||||
def warn_thread_attribute_decl_not_lockable : Warning<
|
||||
"%0 attribute can only be applied in a context annotated "
|
||||
"with 'capability(\"mutex\")' attribute">,
|
||||
"with 'capability' attribute">,
|
||||
InGroup<ThreadSafetyAttributes>, DefaultIgnore;
|
||||
def warn_thread_attribute_decl_not_pointer : Warning<
|
||||
"%0 only applies to pointer types; type here is %1">,
|
||||
|
|
|
@ -496,7 +496,7 @@ Mutex aa_var_arg_bad_3 ACQUIRED_AFTER(muDoublePointer); // \
|
|||
Mutex aa_var_arg_bad_4 ACQUIRED_AFTER(umu); // \
|
||||
// expected-warning {{'acquired_after' attribute requires arguments whose type is annotated with 'capability' attribute}}
|
||||
UnlockableMu aa_var_arg_bad_5 ACQUIRED_AFTER(mu_aa); // \
|
||||
// expected-warning {{'acquired_after' attribute can only be applied in a context annotated with 'capability("mutex")' attribute}}
|
||||
// expected-warning {{'acquired_after' attribute can only be applied in a context annotated with 'capability' attribute}}
|
||||
|
||||
//-----------------------------------------//
|
||||
// Acquired Before (ab)
|
||||
|
@ -559,7 +559,7 @@ Mutex ab_var_arg_bad_3 ACQUIRED_BEFORE(muDoublePointer); // \
|
|||
Mutex ab_var_arg_bad_4 ACQUIRED_BEFORE(umu); // \
|
||||
// expected-warning {{'acquired_before' attribute requires arguments whose type is annotated with 'capability' attribute}}
|
||||
UnlockableMu ab_var_arg_bad_5 ACQUIRED_BEFORE(mu_ab); // \
|
||||
// expected-warning {{'acquired_before' attribute can only be applied in a context annotated with 'capability("mutex")' attribute}}
|
||||
// expected-warning {{'acquired_before' attribute can only be applied in a context annotated with 'capability' attribute}}
|
||||
|
||||
|
||||
//-----------------------------------------//
|
||||
|
|
Loading…
Reference in New Issue