[cfe-commits] r138783 - in /cfe/trunk/include/clang/Basic: DiagnosticGroups.td DiagnosticSemaKinds.td
Caitlin Sadowski
supertri at google.com
Mon Aug 29 16:33:18 PDT 2011
Author: supertri
Date: Mon Aug 29 18:33:18 2011
New Revision: 138783
URL: http://llvm.org/viewvc/llvm-project?rev=138783&view=rev
Log:
Thread safety: Adding a name to the thread safety diagnostic group to prevent typos
Modified:
cfe/trunk/include/clang/Basic/DiagnosticGroups.td
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=138783&r1=138782&r2=138783&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Mon Aug 29 18:33:18 2011
@@ -280,7 +280,7 @@
]>;
// Thread Safety warnings
-def : DiagGroup<"thread-safety">;
+def ThreadSafety : DiagGroup<"thread-safety">;
// -Wall is -Wmost -Wparentheses -Wtop-level-comparison
def : DiagGroup<"all", [Most, Parentheses]>;
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=138783&r1=138782&r2=138783&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Mon Aug 29 18:33:18 2011
@@ -1388,34 +1388,34 @@
"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<
More information about the cfe-commits
mailing list