r319290 - Use static function instead of anonymous namespace
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 28 21:10:12 PST 2017
Author: sepavloff
Date: Tue Nov 28 21:10:11 2017
New Revision: 319290
URL: http://llvm.org/viewvc/llvm-project?rev=319290&view=rev
Log:
Use static function instead of anonymous namespace
Modified:
cfe/trunk/lib/AST/TypePrinter.cpp
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=319290&r1=319289&r2=319290&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Tue Nov 28 21:10:11 2017
@@ -1529,10 +1529,9 @@ static const TemplateArgument &getArgume
return A.getArgument();
}
-namespace {
template<typename TA>
-void printTo(raw_ostream &OS, ArrayRef<TA> Args, const PrintingPolicy &Policy,
- bool SkipBrackets) {
+static void printTo(raw_ostream &OS, ArrayRef<TA> Args,
+ const PrintingPolicy &Policy, bool SkipBrackets) {
const char *Comma = Policy.MSVCFormatting ? "," : ", ";
if (!SkipBrackets)
OS << '<';
@@ -1576,7 +1575,6 @@ void printTo(raw_ostream &OS, ArrayRef<T
if (!SkipBrackets)
OS << '>';
}
-}
void clang::printTemplateArgumentList(raw_ostream &OS,
const TemplateArgumentListInfo &Args,
More information about the cfe-commits
mailing list