diff options
author | Caitlin Sadowski <supertri@google.com> | 2011-08-29 23:33:18 +0000 |
---|---|---|
committer | Caitlin Sadowski <supertri@google.com> | 2011-08-29 23:33:18 +0000 |
commit | 1335cf086f85a6ec6165a91e60828d8d5ea08cec (patch) | |
tree | 3b0861d2725ef29d668e689ca0922947d5cbadb6 | |
parent | 27f0776caf8c0d0870eb0125a13a613603848203 (diff) |
Thread safety: Adding a name to the thread safety diagnostic group to prevent typos
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138783 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 2 | ||||
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index a55254286b..462a3c71a6 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -280,7 +280,7 @@ def Most : DiagGroup<"most", [ ]>; // Thread Safety warnings -def : DiagGroup<"thread-safety">; +def ThreadSafety : DiagGroup<"thread-safety">; // -Wall is -Wmost -Wparentheses -Wtop-level-comparison def : DiagGroup<"all", [Most, Parentheses]>; diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 5c2768c71e..607bf57411 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1388,34 +1388,34 @@ def err_attribute_decl_not_lockable : Error< "with 'lockable' attribute">; def warn_unlock_but_no_acquire : Warning< "unlocking '%0' that was not acquired">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_double_lock : Warning< "locking '%0' that is already acquired">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_function_requires_lock : Warning< "calling function '%0' requires lock '%0'">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_locks_not_released : Warning< "lock '%0' is not released at the end of function '%1'">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_lock_not_released_in_scope : Warning< "lock '%0' is not released at the end of its scope">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_expecting_lock_held_on_loop : Warning< "expecting lock '%0' to be held at start of each loop">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_variable_requires_lock : Warning< "accessing variable '%0' requires lock '%1'">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_variable_requires_any_lock : Warning< "accessing variable '%0' requires some lock">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_var_deref_requires_lock : Warning< "accessing the value pointed to by '%0' requires lock '%1'">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_var_deref_requires_any_lock : Warning< "accessing the value pointed to by '%0' requires some lock">, - InGroup<DiagGroup<"thread-safety">>, DefaultIgnore; + InGroup<ThreadSafety>, DefaultIgnore; def warn_impcast_vector_scalar : Warning< |