summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-11-28 16:14:14 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-11-28 16:14:14 +0000
commit03e672ccab0eeb4ec685c6f6b3950cd177fadf1f (patch)
treedbb658165bb423799c82da410fd2c3ce71a252b9 /clang/tools
parent14bd3b9f213918f9d717f297496bfc5d3707bc3b (diff)
downloadbcm5719-llvm-03e672ccab0eeb4ec685c6f6b3950cd177fadf1f.tar.gz
bcm5719-llvm-03e672ccab0eeb4ec685c6f6b3950cd177fadf1f.zip
Refactor functions PrintTemplateArgumentList
These functions were defined as static members of TemplateSpecializationType. Now they are moved to namespace level. Previously there were different implementations for lists containing TemplateArgument and TemplateArgumentLoc, now these implementations share the same code. This change is a result of refactoring patch D40508. NFC. llvm-svn: 319178
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/libclang/CIndex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 74a17d21e02..98532fe525f 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -4718,12 +4718,12 @@ CXString clang_getCursorDisplayName(CXCursor C) {
// If the type was explicitly written, use that.
if (TypeSourceInfo *TSInfo = ClassSpec->getTypeAsWritten())
return cxstring::createDup(TSInfo->getType().getAsString(Policy));
-
+
SmallString<128> Str;
llvm::raw_svector_ostream OS(Str);
OS << *ClassSpec;
- TemplateSpecializationType::PrintTemplateArgumentList(
- OS, ClassSpec->getTemplateArgs().asArray(), Policy);
+ printTemplateArgumentList(OS, ClassSpec->getTemplateArgs().asArray(),
+ Policy);
return cxstring::createDup(OS.str());
}
OpenPOWER on IntegriCloud