Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4888)

Issue 1700049: RecursiveASTVisitor with TypeLoc traversal (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by nlewycky
Modified:
13 years, 9 months ago
Reviewers:
DougGregor, csilvers
CC:
csilvers1
Base URL:
http://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Description

Add basic TypeLoc traversal to RecursiveASTVisitor. Also moves existing traversals that have easy access to TypeLoc's to using that alternate traversal. The default visitors just call back into the Type visitors so there should be no breakage of compatibility with client code while we sort out the missing pieces of TypeLocs. The implementation falls back to Type traversal when necessary.

Patch Set 1 #

Patch Set 2 : Also update TraverseTemplateArgumentLocsHelper #

Total comments: 8

Patch Set 3 : Also fix TypeLoc FIXME in TemplateTemplateParmDecl #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -13 lines) Patch
include/clang/AST/RecursiveASTVisitor.h View 1 2 13 chunks +292 lines, -13 lines 1 comment Download

Messages

Total messages: 6
csilvers
It's a bit difficult for me to do diffs from home, but I was so ...
13 years, 9 months ago (2010-07-04 15:50:42 UTC) #1
nlewycky
Thanks for the weekend review! http://codereview.appspot.com/1700049/diff/2001/3001 File include/clang/AST/RecursiveASTVisitor.h (right): http://codereview.appspot.com/1700049/diff/2001/3001#newcode310 include/clang/AST/RecursiveASTVisitor.h:310: // methods call into ...
13 years, 9 months ago (2010-07-04 17:17:36 UTC) #2
nlewycky
Also fix TypeLoc FIXME in TemplateTemplateParmDecl
13 years, 9 months ago (2010-07-04 21:02:20 UTC) #3
csilvers
I'm obviously not the best person to review this code, since I'm only starting to ...
13 years, 9 months ago (2010-07-04 21:18:41 UTC) #4
nlewycky
http://codereview.appspot.com/1700049/diff/2001/3001 File include/clang/AST/RecursiveASTVisitor.h (right): http://codereview.appspot.com/1700049/diff/2001/3001#newcode1108 include/clang/AST/RecursiveASTVisitor.h:1108: TRY_TO(TraverseType(D->getDefaultArgument())); On 2010/07/04 21:18:41, csilvers wrote: > You can ...
13 years, 9 months ago (2010-07-04 21:25:56 UTC) #5
DougGregor
13 years, 9 months ago (2010-07-06 17:51:45 UTC) #6
Looks good, please go ahead and commit.

http://codereview.appspot.com/1700049/diff/9001/10001
File include/clang/AST/RecursiveASTVisitor.h (right):

http://codereview.appspot.com/1700049/diff/9001/10001#newcode829
include/clang/AST/RecursiveASTVisitor.h:829: // Note that we have the
ParmVarDecl's here. Do we want to use them?
The lack of source location information for exception specifications is this
bug:

  http://llvm.org/bugs/show_bug.cgi?id=5719

And IMO, yes, we do want to walk the ParmVarDecls here.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b