diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-20 23:07:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-20 23:07:20 +0000 |
commit | a40bc724849f9cdc6a7706bc5d230685c3bdf63c (patch) | |
tree | 5404cf5e85689793832fa993d20ac739165dfaa1 /lib/Sema/SemaTemplateVariadic.cpp | |
parent | 984a58b6c6892671c88e112ce449b1da3f7de4ba (diff) |
Give the RecursiveASTVisitor a configuration function
shouldWalkTypesOfTypeLocs() that determines whether it should walk the
Types within TypeLocs. This walk is redundant, but perhaps required
for some clients. Disabling this redundant walk in the unexpanded
parameter pack finder produces better results, because we get
parameter packs with source location info *unless* such source
location information isn't available.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateVariadic.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateVariadic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateVariadic.cpp b/lib/Sema/SemaTemplateVariadic.cpp index e71c2334ca..681bc8d072 100644 --- a/lib/Sema/SemaTemplateVariadic.cpp +++ b/lib/Sema/SemaTemplateVariadic.cpp @@ -38,6 +38,8 @@ namespace { llvm::SmallVectorImpl<UnexpandedParameterPack> &Unexpanded) : Unexpanded(Unexpanded) { } + bool shouldWalkTypesOfTypeLocs() const { return false; } + //------------------------------------------------------------------------ // Recording occurrences of (unexpanded) parameter packs. //------------------------------------------------------------------------ |