]> granicus.if.org Git - clang/commit
Give the RecursiveASTVisitor a configuration function
authorDouglas Gregor <dgregor@apple.com>
Mon, 20 Dec 2010 23:07:20 +0000 (23:07 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 20 Dec 2010 23:07:20 +0000 (23:07 +0000)
commita40bc724849f9cdc6a7706bc5d230685c3bdf63c
tree5404cf5e85689793832fa993d20ac739165dfaa1
parent984a58b6c6892671c88e112ce449b1da3f7de4ba
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
include/clang/AST/RecursiveASTVisitor.h
lib/Sema/SemaTemplateVariadic.cpp