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

Issue 4810092: Refactor UsualArithmeticConversions() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by rtrieu
Modified:
12 years, 8 months ago
Reviewers:
Sean Hunt
Base URL:
https://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Description

Committed at 139033

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comments #

Patch Set 3 : Invert return value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -245 lines) Patch
M lib/Sema/SemaExpr.cpp View 1 2 2 chunks +285 lines, -245 lines 0 comments Download

Messages

Total messages: 2
Sean Hunt
I like the nature of this refactor, but some specific curns are highlighted. http://codereview.appspot.com/4810092/diff/1/lib/Sema/SemaExpr.cpp File ...
12 years, 9 months ago (2011-08-09 23:18:14 UTC) #1
rtrieu
12 years, 9 months ago (2011-08-10 22:23:42 UTC) #2
http://codereview.appspot.com/4810092/diff/1/lib/Sema/SemaExpr.cpp
File lib/Sema/SemaExpr.cpp (right):

http://codereview.appspot.com/4810092/diff/1/lib/Sema/SemaExpr.cpp#newcode532
lib/Sema/SemaExpr.cpp:532: ExprResult &complexExpr,
On 2011/08/09 23:18:15, Sean Hunt wrote:
> For all these functions, it would be good to put something in the
documentation
> indicating the fact that these functions change arguments, and also that they
> are a part of usual arithmetic conversions. This might be mistaken for a
general
> int -> complex float conversion otherwise. I'd suggest putting it in the name
if
> possible, but that might be tricky due to the length. Perhaps you could drop
> 'float' out of 'complex float'?

I added to the comments that these are helper functions to
UsualArithmeticConversions().  Dropping changing 'complex float' to just
'complex'  might get some confusion with the 'complex int' case further down.

I'm not sure why it is needed to point out that the arguments might be modified.
 They are passed in by reference as a ExprResult instead of as a Expr*.  Many of
the other functions that modify arguments also don't explicitly say they do so.
Sign in to reply to this message.

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