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

Issue 4747047: Better handle overloaded functions in typo correction (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by Kaelyn
Modified:
13 years, 3 months ago
Reviewers:
chandlerc, hwennborg
Visibility:
Public.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Simplify the TypoCorrection class a bit #

Total comments: 10

Patch Set 3 : More review based changes #

Total comments: 18

Patch Set 4 : More changes based on chandlerc's feedback #

Patch Set 5 : Remove a few unneeded constructors and the special KeywordDecl() stuff :) #

Patch Set 6 : Add a few more comments to TypoCorrection #

Patch Set 7 : Avoid a possible crash with template functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -38 lines) Patch
M include/clang/Sema/Sema.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M include/clang/Sema/TypoCorrection.h View 1 2 3 4 5 3 chunks +52 lines, -19 lines 0 comments Download
M lib/Sema/SemaExpr.cpp View 1 2 3 4 5 6 2 chunks +23 lines, -1 line 0 comments Download
M lib/Sema/SemaLookup.cpp View 1 2 3 4 5 chunks +39 lines, -9 lines 0 comments Download
M lib/Sema/SemaOverload.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M test/FixIt/typo-crash.cpp View 1 chunk +6 lines, -5 lines 0 comments Download
M test/SemaCXX/function-overload-typo-crash.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11
chandlerc
Some initial design comments on this approach. http://codereview.appspot.com/4747047/diff/1/include/clang/Sema/TypoCorrection.h File include/clang/Sema/TypoCorrection.h (right): http://codereview.appspot.com/4747047/diff/1/include/clang/Sema/TypoCorrection.h#newcode25 include/clang/Sema/TypoCorrection.h:25: typedef UnresolvedSet<4> ...
13 years, 3 months ago (2011-07-16 01:33:58 UTC) #1
Kaelyn
http://codereview.appspot.com/4747047/diff/1/include/clang/Sema/TypoCorrection.h File include/clang/Sema/TypoCorrection.h (right): http://codereview.appspot.com/4747047/diff/1/include/clang/Sema/TypoCorrection.h#newcode25 include/clang/Sema/TypoCorrection.h:25: typedef UnresolvedSet<4> CorrectionDeclSet; On 2011/07/16 01:33:58, chandlerc wrote: > ...
13 years, 3 months ago (2011-07-18 18:36:41 UTC) #2
chandlerc
This is getting closer! Thanks! http://codereview.appspot.com/4747047/diff/5001/include/clang/Sema/TypoCorrection.h File include/clang/Sema/TypoCorrection.h (right): http://codereview.appspot.com/4747047/diff/5001/include/clang/Sema/TypoCorrection.h#newcode83 include/clang/Sema/TypoCorrection.h:83: void setCorrectionDecl(NamedDecl *CDecl){ space ...
13 years, 3 months ago (2011-07-19 08:15:05 UTC) #3
Kaelyn
I've updated the patchset though I'm going to wait until it's a bit more final ...
13 years, 3 months ago (2011-07-19 17:52:24 UTC) #4
hwennborg
Thanks for fixing; these fixits are awesome! http://codereview.appspot.com/4747047/diff/10001/lib/Sema/SemaLookup.cpp File lib/Sema/SemaLookup.cpp (right): http://codereview.appspot.com/4747047/diff/10001/lib/Sema/SemaLookup.cpp#newcode3693 lib/Sema/SemaLookup.cpp:3693: // FIXME: ...
13 years, 3 months ago (2011-07-27 14:01:00 UTC) #5
Kaelyn
http://codereview.appspot.com/4747047/diff/10001/lib/Sema/SemaLookup.cpp File lib/Sema/SemaLookup.cpp (right): http://codereview.appspot.com/4747047/diff/10001/lib/Sema/SemaLookup.cpp#newcode3693 lib/Sema/SemaLookup.cpp:3693: // FIXME: This sets the CorrectionDecl to NULL for ...
13 years, 3 months ago (2011-07-27 23:33:55 UTC) #6
chandlerc
http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/Sema.h File include/clang/Sema/Sema.h (right): http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/Sema.h#newcode2209 include/clang/Sema/Sema.h:2209: Expr **Args = NULL, unsigned NumArgs = 0); Use ...
13 years, 3 months ago (2011-08-01 17:43:32 UTC) #7
Kaelyn
http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/Sema.h File include/clang/Sema/Sema.h (right): http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/Sema.h#newcode2209 include/clang/Sema/Sema.h:2209: Expr **Args = NULL, unsigned NumArgs = 0); On ...
13 years, 3 months ago (2011-08-01 18:22:10 UTC) #8
chandlerc
http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/TypoCorrection.h File include/clang/Sema/TypoCorrection.h (right): http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/TypoCorrection.h#newcode30 include/clang/Sema/TypoCorrection.h:30: CorrectionDecls(), On 2011/08/01 18:22:10, rikka wrote: > On 2011/08/01 ...
13 years, 3 months ago (2011-08-01 22:51:35 UTC) #9
Kaelyn
http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/TypoCorrection.h File include/clang/Sema/TypoCorrection.h (right): http://codereview.appspot.com/4747047/diff/10001/include/clang/Sema/TypoCorrection.h#newcode30 include/clang/Sema/TypoCorrection.h:30: CorrectionDecls(), On 2011/08/01 22:51:36, chandlerc wrote: > On 2011/08/01 ...
13 years, 3 months ago (2011-08-01 23:27:19 UTC) #10
Kaelyn
13 years, 3 months ago (2011-08-03 20:38:29 UTC) #11
The current patch has been submitted as r136807, with a separate patch adding
support for resolving overloaded template functions and using declarations
coming soon.
Sign in to reply to this message.

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