From: Benjamin Kramer Date: Fri, 5 Nov 2010 19:56:37 +0000 (+0000) Subject: Put class into an anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=752c2e930a3ec30b5e338845fd5e7baae532ee69;p=clang Put class into an anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118293 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index c6c7649bda..c88f79b29f 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -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.