]> granicus.if.org Git - clang/commitdiff
Hide implementation details in namespaces.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 17 Sep 2019 12:56:29 +0000 (12:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 17 Sep 2019 12:56:29 +0000 (12:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372113 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaLookup.cpp

index e960057725d277b3630733f4bb037d7998593fa7..dfc1cce89d52f7cbfa8d5dde3a28e0df2a4d1454 100644 (file)
@@ -3701,6 +3701,7 @@ NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) {
   return nullptr;
 }
 
+namespace {
 class LookupVisibleHelper {
 public:
   LookupVisibleHelper(VisibleDeclConsumer &Consumer, bool IncludeDependentBases,
@@ -4025,6 +4026,7 @@ private:
   bool IncludeDependentBases;
   bool LoadExternal;
 };
+} // namespace
 
 void Sema::LookupVisibleDecls(Scope *S, LookupNameKind Kind,
                               VisibleDeclConsumer &Consumer,