summaryrefslogtreecommitdiffstats
path: root/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
commit9fadf2235fe09410022228e4967eec29e0b92ca7 (patch)
tree8e5d0d6f76939456d1af2d15dda03a5829347fbd /tools
parentecd2a2a00fca50bdfaaa353792d66ccac36afe18 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/libclang/CIndex.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp
index 74a17d21e0..98532fe525 100644
--- a/tools/libclang/CIndex.cpp
+++ b/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());
}