]> granicus.if.org Git - clang/commitdiff
Put class into an anonymous namespace.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Nov 2010 19:56:37 +0000 (19:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Nov 2010 19:56:37 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118293 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Decl.cpp

index c6c7649bdac1d5f57341b5c20224beba0ba29ff6..c88f79b29fafff53825713f70035d5567e47b04a 100644 (file)
@@ -75,6 +75,7 @@ static LVPair merge(LVPair L, LinkageInfo R) {
                 minVisibility(L.second, R.visibility()));
 }
 
+namespace {
 /// Flags controlling the computation of linkage and visibility.
 struct LVFlags {
   bool ConsiderGlobalVisibility;
@@ -93,6 +94,7 @@ struct LVFlags {
     return F;
   }
 };
+} // end anonymous namespace
 
 /// \brief Get the most restrictive linkage for the types in the given
 /// template parameter list.