diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-20 16:52:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-20 16:52:59 +0000 |
commit | 87dd697dcc8ecb64df73ae64d61b8c80ff0c157c (patch) | |
tree | 0222a2df7114ce46f1829744c97ebd08a5b736ad /tools/libclang/CIndex.cpp | |
parent | a9150cdac3d666671fce74cac621d68cc0ade17d (diff) |
Clean up the handling of template argument packs, especially in the
area of printing template arguments. The functionality changes here
are limited to cases of variadic templates that aren't yet enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndex.cpp')
-rw-r--r-- | tools/libclang/CIndex.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index ca6efe8d88..b6b5922feb 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -1224,12 +1224,9 @@ bool CursorVisitor::VisitTemplateArgumentLoc(const TemplateArgumentLoc &TAL) { switch (TAL.getArgument().getKind()) { case TemplateArgument::Null: case TemplateArgument::Integral: - return false; - case TemplateArgument::Pack: - // FIXME: Implement when variadic templates come along. return false; - + case TemplateArgument::Type: if (TypeSourceInfo *TSInfo = TAL.getTypeSourceInfo()) return Visit(TSInfo->getTypeLoc()); |