r265364 - Move local helper class into anonymous namespace.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 4 16:29:44 PDT 2016


Author: rsmith
Date: Mon Apr  4 18:29:43 2016
New Revision: 265364

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

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=265364&r1=265363&r2=265364&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Mon Apr  4 18:29:43 2016
@@ -3354,6 +3354,7 @@ static bool EvaluateCond(EvalInfo &Info,
   return EvaluateAsBooleanCondition(Cond, Result, Info);
 }
 
+namespace {
 /// \brief A location where the result (returned value) of evaluating a
 /// statement should be stored.
 struct StmtResult {
@@ -3362,6 +3363,7 @@ struct StmtResult {
   /// The location containing the result, if any (used to support RVO).
   const LValue *Slot;
 };
+}
 
 static EvalStmtResult EvaluateStmt(StmtResult &Result, EvalInfo &Info,
                                    const Stmt *S,




More information about the cfe-commits mailing list