From: Serge Pavlov Date: Wed, 29 Nov 2017 05:10:11 +0000 (+0000) Subject: Use static function instead of anonymous namespace X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e350683cfbb0697ecfe866ce6ed8de800296cb6b;p=clang Use static function instead of anonymous namespace git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319290 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index 612af4749e..35e0b75f3c 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -1529,10 +1529,9 @@ static const TemplateArgument &getArgument(const TemplateArgumentLoc &A) { return A.getArgument(); } -namespace { template -void printTo(raw_ostream &OS, ArrayRef Args, const PrintingPolicy &Policy, - bool SkipBrackets) { +static void printTo(raw_ostream &OS, ArrayRef Args, + const PrintingPolicy &Policy, bool SkipBrackets) { const char *Comma = Policy.MSVCFormatting ? "," : ", "; if (!SkipBrackets) OS << '<'; @@ -1576,7 +1575,6 @@ void printTo(raw_ostream &OS, ArrayRef Args, const PrintingPolicy &Policy, if (!SkipBrackets) OS << '>'; } -} void clang::printTemplateArgumentList(raw_ostream &OS, const TemplateArgumentListInfo &Args,