From: Benjamin Kramer Date: Thu, 14 Nov 2013 15:46:10 +0000 (+0000) Subject: Move classes into anonymous namespaces. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91934df3ce399e5938695b939943f92e7ff00483;p=clang Move classes into anonymous namespaces. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194706 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp b/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp index 6f5f7bdbc9..e696e38597 100644 --- a/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp @@ -31,6 +31,7 @@ static bool isIdenticalExpr(const ASTContext &Ctx, const Expr *Expr1, // FindIdenticalExprVisitor - Identify nodes using identical expressions. //===----------------------------------------------------------------------===// +namespace { class FindIdenticalExprVisitor : public RecursiveASTVisitor { 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 ASTContext &Ctx, const Expr *Expr1, // FindIdenticalExprChecker //===----------------------------------------------------------------------===// +namespace { class FindIdenticalExprChecker : public Checker { public: void checkASTCodeBody(const Decl *D, AnalysisManager &Mgr, @@ -216,6 +219,7 @@ public: Visitor.TraverseDecl(const_cast(D)); } }; +} // end anonymous namespace void ento::registerIdenticalExprChecker(CheckerManager &Mgr) { Mgr.registerChecker();