r229404 - Move helper class into an anonymous namespace.

Benjamin Kramer benny.kra at googlemail.com
Mon Feb 16 08:53:13 PST 2015


Author: d0k
Date: Mon Feb 16 10:53:12 2015
New Revision: 229404

URL: http://llvm.org/viewvc/llvm-project?rev=229404&view=rev
Log:
Move helper class into an anonymous namespace.

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=229404&r1=229403&r2=229404&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp (original)
+++ cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp Mon Feb 16 10:53:12 2015
@@ -117,6 +117,7 @@ static void CheckUnreachable(Sema &S, An
   reachable_code::FindUnreachableCode(AC, S.getPreprocessor(), UC);
 }
 
+namespace {
 /// \brief Warn on logical operator errors in CFGBuilder
 class LogicalErrorHandler : public CFGCallback {
   Sema &S;
@@ -156,7 +157,7 @@ public:
         << DiagRange << isAlwaysTrue;
   }
 };
-
+} // namespace
 
 //===----------------------------------------------------------------------===//
 // Check for infinite self-recursion in functions





More information about the cfe-commits mailing list