r194706 - Move classes into anonymous namespaces.

Jordan Rose jordan_rose at apple.com
Thu Nov 14 09:11:07 PST 2013


Oops. Thanks. Will try to keep a closer eye on that in the future.


On Nov 14, 2013, at 7:46 , Benjamin Kramer <benny.kra at googlemail.com> wrote:

> 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>();
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list