]> granicus.if.org Git - clang/commitdiff
[ODRHash] Move into anonymous namespace. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Aug 2017 13:02:57 +0000 (13:02 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 20 Aug 2017 13:02:57 +0000 (13:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311286 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ODRHash.cpp

index 121724a731526ec993d76dc1d39f083f86934c2f..c968a55adf181f893758d27ceee1be00378d1f3a 100644 (file)
@@ -199,6 +199,7 @@ unsigned ODRHash::CalculateHash() {
   return ID.ComputeHash();
 }
 
+namespace {
 // Process a Decl pointer.  Add* methods call back into ODRHash while Visit*
 // methods process the relevant parts of the Decl.
 class ODRDeclVisitor : public ConstDeclVisitor<ODRDeclVisitor> {
@@ -343,6 +344,7 @@ public:
     }
   }
 };
+} // namespace
 
 // Only allow a small portion of Decl's to be processed.  Remove this once
 // all Decl's can be handled.
@@ -420,6 +422,7 @@ void ODRHash::AddDecl(const Decl *D) {
   }
 }
 
+namespace {
 // Process a Type pointer.  Add* methods call back into ODRHash while Visit*
 // methods process the relevant parts of the Type.
 class ODRTypeVisitor : public TypeVisitor<ODRTypeVisitor> {
@@ -608,6 +611,7 @@ public:
     AddDecl(T->getDecl());
   }
 };
+} // namespace
 
 void ODRHash::AddType(const Type *T) {
   assert(T && "Expecting non-null pointer.");