Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(120)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 1220045: fixes clang pr7161

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 7 months ago by wan
Modified:
15 years, 7 months ago
Reviewers:
chandlerc
Base URL:
http://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 10

Patch Set 2 : snapshot 2 #

Patch Set 3 : snapshot 3 #

Created: 15 years, 7 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -92 lines) Patch
M include/clang/AST/RecursiveASTVisitor.h View 1 2 30 chunks +182 lines, -92 lines 0 comments Download
Total messages: 4
|
chandlerc
A bit spotty I'm afraid, I'm really tired. I'll try and give this a more ...
15 years, 7 months ago (2010年05月20日 05:36:55 UTC) #1
A bit spotty I'm afraid, I'm really tired. I'll try and give this a more
thorough review tomorrow afternoon, and hopefully get it committed then.
http://codereview.appspot.com/1220045/diff/1/2
File include/clang/AST/RecursiveASTVisitor.h (right):
http://codereview.appspot.com/1220045/diff/1/2#newcode39
include/clang/AST/RecursiveASTVisitor.h:39: // this class directly - use
RecursiveASTVisitor instead.
What's the motivation of two classes? I'm not seeing what it buys us here, but
that may just be because I've not tried to use it as much. Maybe adding this to 
the comment here would help.
http://codereview.appspot.com/1220045/diff/1/2#newcode682
include/clang/AST/RecursiveASTVisitor.h:682: /**
Per IRC, /// comments seem the way to go.
http://codereview.appspot.com/1220045/diff/1/2#newcode693
include/clang/AST/RecursiveASTVisitor.h:693: * Base::Visit* is called.
It would make more sense (to me) to return 'false' for don't keep recursing
through the AST, and 'true' for do keep going. Then the implementors of this
visitor needn't know anything about the base class calls.=
http://codereview.appspot.com/1220045/diff/1/2#newcode745
include/clang/AST/RecursiveASTVisitor.h:745: DEFINE_VISIT(FunctionProtoType, F,
{
Exception specifiers?
Sign in to reply to this message.
wan
Please take a look at snapshot 3. Thanks! http://codereview.appspot.com/1220045/diff/1/2 File include/clang/AST/RecursiveASTVisitor.h (right): http://codereview.appspot.com/1220045/diff/1/2#newcode39 include/clang/AST/RecursiveASTVisitor.h:39: // ...
15 years, 7 months ago (2010年05月20日 06:13:37 UTC) #2
Please take a look at snapshot 3. Thanks!
http://codereview.appspot.com/1220045/diff/1/2
File include/clang/AST/RecursiveASTVisitor.h (right):
http://codereview.appspot.com/1220045/diff/1/2#newcode39
include/clang/AST/RecursiveASTVisitor.h:39: // this class directly - use
RecursiveASTVisitor instead.
On 2010年05月20日 05:36:55, chandlerc wrote:
> What's the motivation of two classes? I'm not seeing what it buys us here, but
> that may just be because I've not tried to use it as much. Maybe adding this
to 
> the comment here would help.
Comment added.
http://codereview.appspot.com/1220045/diff/1/2#newcode682
include/clang/AST/RecursiveASTVisitor.h:682: /**
On 2010年05月20日 05:36:55, chandlerc wrote:
> Per IRC, /// comments seem the way to go.
Done.
http://codereview.appspot.com/1220045/diff/1/2#newcode693
include/clang/AST/RecursiveASTVisitor.h:693: * Base::Visit* is called.
On 2010年05月20日 05:36:55, chandlerc wrote:
> It would make more sense (to me) to return 'false' for don't keep recursing
> through the AST, and 'true' for do keep going.
I agree. Unfortunately this wasn't my decision to make. It's the existing
behavior.
http://codereview.appspot.com/1220045/diff/1/2#newcode745
include/clang/AST/RecursiveASTVisitor.h:745: DEFINE_VISIT(FunctionProtoType, F,
{
On 2010年05月20日 05:36:55, chandlerc wrote:
> Exception specifiers?
Done.
Sign in to reply to this message.
chandlerc
I've committed this upstream in r104315. I also tried to encourage subsequent review, I'd like ...
15 years, 7 months ago (2010年05月21日 10:32:45 UTC) #3
I've committed this upstream in r104315. I also tried to encourage subsequent
review, I'd like to make sure we get this API really well fleshed out as its
clearly a critical one in the AST.
http://codereview.appspot.com/1220045/diff/1/2
File include/clang/AST/RecursiveASTVisitor.h (right):
http://codereview.appspot.com/1220045/diff/1/2#newcode39
include/clang/AST/RecursiveASTVisitor.h:39: // this class directly - use
RecursiveASTVisitor instead.
On 2010年05月20日 06:13:37, wan wrote:
> On 2010年05月20日 05:36:55, chandlerc wrote:
> > What's the motivation of two classes? I'm not seeing what it buys us here,
but
> > that may just be because I've not tried to use it as much. Maybe adding this
> to 
> > the comment here would help.
> 
> Comment added.
Thanks. No clue why I didn't get this the first time around, not sure it really
needs this much commenting, but it can't hurt. =D
http://codereview.appspot.com/1220045/diff/1/2#newcode693
include/clang/AST/RecursiveASTVisitor.h:693: * Base::Visit* is called.
On 2010年05月20日 06:13:37, wan wrote:
> On 2010年05月20日 05:36:55, chandlerc wrote:
> > It would make more sense (to me) to return 'false' for don't keep recursing
> > through the AST, and 'true' for do keep going.
> 
> I agree. Unfortunately this wasn't my decision to make. It's the existing
> behavior.
We can always change that behavior. ;] Maybe ask folks on IRC sometime, Nick
even assumed that it *did* work this way for a while. Either way, this patch is
independent of that change.
Sign in to reply to this message.
wan
On Fri, May 21, 2010 at 3:32 AM, <chandlerc@gmail.com> wrote: > I've committed this upstream ...
15 years, 7 months ago (2010年05月21日 16:19:50 UTC) #4
On Fri, May 21, 2010 at 3:32 AM, <chandlerc@gmail.com> wrote:
> I've committed this upstream in r104315. I also tried to encourage
> subsequent review, I'd like to make sure we get this API really well
> fleshed out as its clearly a critical one in the AST.
Thanks!
> http://codereview.appspot.com/1220045/diff/1/2
> File include/clang/AST/RecursiveASTVisitor.h (right):
>
> http://codereview.appspot.com/1220045/diff/1/2#newcode39
> include/clang/AST/RecursiveASTVisitor.h:39: // this class directly - use
> RecursiveASTVisitor instead.
> On 2010年05月20日 06:13:37, wan wrote:
>>
>> On 2010年05月20日 05:36:55, chandlerc wrote:
>> > What's the motivation of two classes? I'm not seeing what it buys us
>
> here, but
>>
>> > that may just be because I've not tried to use it as much. Maybe
>
> adding this
>>
>> to
>> > the comment here would help.
>
>> Comment added.
>
> Thanks. No clue why I didn't get this the first time around, not sure it
> really needs this much commenting, but it can't hurt. =D
>
> http://codereview.appspot.com/1220045/diff/1/2#newcode693
> include/clang/AST/RecursiveASTVisitor.h:693: * Base::Visit* is called.
> On 2010年05月20日 06:13:37, wan wrote:
>>
>> On 2010年05月20日 05:36:55, chandlerc wrote:
>> > It would make more sense (to me) to return 'false' for don't keep
>
> recursing
>>
>> > through the AST, and 'true' for do keep going.
>
>> I agree. Unfortunately this wasn't my decision to make. It's the
>
> existing
>>
>> behavior.
>
> We can always change that behavior. ;] Maybe ask folks on IRC sometime,
> Nick even assumed that it *did* work this way for a while. Either way,
> this patch is independent of that change.
Yes, we can change the behavior if we are willing to break existing
clients. I don't feel strongly about the behavior, so I'm not sure if
it's worth the disruption.
-- 
Zhanyong
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /