r215679 - Thread Safety Analysis: Move -Wthread-safety-negative out of the

DeLesley Hutchins delesley at google.com
Thu Aug 14 14:54:35 PDT 2014


Author: delesley
Date: Thu Aug 14 16:54:34 2014
New Revision: 215679

URL: http://llvm.org/viewvc/llvm-project?rev=215679&view=rev
Log:
Thread Safety Analysis:  Move -Wthread-safety-negative out of the
-Wthread-safety umbrella flag, pending updates to documentation.  The flag
works, but is likely to be confusing to existing users of -Wthread-safety.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticGroups.td
    cfe/trunk/test/SemaCXX/warn-thread-safety-negative.cpp

Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=215679&r1=215678&r2=215679&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Thu Aug 14 16:54:34 2014
@@ -594,8 +594,7 @@ def ThreadSafetyNegative   : DiagGroup<"
 def ThreadSafety : DiagGroup<"thread-safety",
                              [ThreadSafetyAttributes, 
                               ThreadSafetyAnalysis,
-                              ThreadSafetyPrecise,
-                              ThreadSafetyNegative]>;
+                              ThreadSafetyPrecise]>;
 def ThreadSafetyVerbose : DiagGroup<"thread-safety-verbose">;
 def ThreadSafetyBeta : DiagGroup<"thread-safety-beta">;
 

Modified: cfe/trunk/test/SemaCXX/warn-thread-safety-negative.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-thread-safety-negative.cpp?rev=215679&r1=215678&r2=215679&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-thread-safety-negative.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-thread-safety-negative.cpp Thu Aug 14 16:54:34 2014
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wthread-safety -Wthread-safety-beta -fcxx-exceptions %s
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wthread-safety -Wthread-safety-beta -Wthread-safety-negative -fcxx-exceptions %s
 
 // FIXME: should also run  %clang_cc1 -fsyntax-only -verify -Wthread-safety -std=c++11 -Wc++98-compat %s
 // FIXME: should also run  %clang_cc1 -fsyntax-only -verify -Wthread-safety %s





More information about the cfe-commits mailing list