]> granicus.if.org Git - clang/commitdiff
Move helper classes into anonymous namespaces.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Apr 2013 22:01:47 +0000 (22:01 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Apr 2013 22:01:47 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180642 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ExprConstant.cpp

index ccad97579651a513dfbf2e6fd42f5dc3f5273073..17e174e061a1ed12ad59eb49783d54877197d3e7 100644 (file)
@@ -1764,6 +1764,7 @@ findSubobject(EvalInfo &Info, const Expr *E, APValue &Obj, QualType ObjType,
   return handler.found(*O, ObjType);
 }
 
+namespace {
 struct ExtractSubobjectHandler {
   EvalInfo &Info;
   APValue &Obj;
@@ -1855,6 +1856,7 @@ struct ModifySubobjectHandler {
   }
 };
 const AccessKinds ModifySubobjectHandler::AccessKind;
+} // end anonymous namespace
 
 /// Update the designated sub-object of an rvalue to the given value.
 static bool modifySubobject(EvalInfo &Info, const Expr *E,