r194706 - Move classes into anonymous namespaces.

Benjamin Kramer benny.kra at googlemail.com
Thu Nov 14 07:46:10 PST 2013


Author: d0k
Date: Thu Nov 14 09:46:10 2013
New Revision: 194706

URL: http://llvm.org/viewvc/llvm-project?rev=194706&view=rev
Log:
Move classes into anonymous namespaces.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp?rev=194706&r1=194705&r2=194706&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp Thu Nov 14 09:46:10 2013
@@ -31,6 +31,7 @@ static bool isIdenticalExpr(const ASTCon
 // FindIdenticalExprVisitor - Identify nodes using identical expressions.
 //===----------------------------------------------------------------------===//
 
+namespace {
 class FindIdenticalExprVisitor
     : public RecursiveASTVisitor<FindIdenticalExprVisitor> {
 public:
@@ -44,6 +45,7 @@ private:
   BugReporter &BR;
   AnalysisDeclContext *AC;
 };
+} // end anonymous namespace
 
 bool FindIdenticalExprVisitor::VisitBinaryOperator(const BinaryOperator *B) {
   BinaryOperator::Opcode Op = B->getOpcode();
@@ -208,6 +210,7 @@ static bool isIdenticalExpr(const ASTCon
 // FindIdenticalExprChecker
 //===----------------------------------------------------------------------===//
 
+namespace {
 class FindIdenticalExprChecker : public Checker<check::ASTCodeBody> {
 public:
   void checkASTCodeBody(const Decl *D, AnalysisManager &Mgr,
@@ -216,6 +219,7 @@ public:
     Visitor.TraverseDecl(const_cast<Decl *>(D));
   }
 };
+} // end anonymous namespace
 
 void ento::registerIdenticalExprChecker(CheckerManager &Mgr) {
   Mgr.registerChecker<FindIdenticalExprChecker>();





More information about the cfe-commits mailing list