r232723 - Move ThreadSafetyReporter into an anonymous namespace. NFC.
Benjamin Kramer
benny.kra at googlemail.com
Thu Mar 19 07:23:45 PDT 2015
Author: d0k
Date: Thu Mar 19 09:23:45 2015
New Revision: 232723
URL: http://llvm.org/viewvc/llvm-project?rev=232723&view=rev
Log:
Move ThreadSafetyReporter into an anonymous namespace. NFC.
Modified:
cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp
Modified: cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp?rev=232723&r1=232722&r2=232723&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp (original)
+++ cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp Thu Mar 19 09:23:45 2015
@@ -1439,7 +1439,7 @@ struct SortDiagBySourceLocation {
//===----------------------------------------------------------------------===//
namespace clang {
namespace threadSafety {
-
+namespace {
class ThreadSafetyReporter : public clang::threadSafety::ThreadSafetyHandler {
Sema &S;
DiagList Warnings;
@@ -1704,9 +1704,9 @@ class ThreadSafetyReporter : public clan
CurrentFunction = 0;
}
};
-
-}
-}
+} // namespace
+} // namespace threadSafety
+} // namespace clang
//===----------------------------------------------------------------------===//
// -Wconsumed
More information about the cfe-commits
mailing list