This revision was automatically updated to reflect the committed changes.
Closed by commit rC342721: [CodeComplete] Generate completion fix-its for C
code as well (authored by yvvan, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D52261
Files:
lib/Parse/ParseExpr.cpp
test/C
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
Thanks! LGTM!
https://reviews.llvm.org/D52261
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin
yvvan updated this revision to Diff 166407.
yvvan added a comment.
Provide CorrectedBase = Base for C code
https://reviews.llvm.org/D52261
Files:
lib/Parse/ParseExpr.cpp
test/CodeCompletion/member-access.c
Index: test/CodeCompletion/member-access.c
yvvan added a comment.
You're right actually. The fix is much simpler than I expected :)
https://reviews.llvm.org/D52261
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ilya-biryukov added a comment.
In https://reviews.llvm.org/D52261#1240143, @yvvan wrote:
> I tried that first but did not I find a way just to copy an expression (we
> basically need the same expr for such case). Do you know how to properly
> generate a copy of expression or some other way to g
yvvan added a comment.
I tried that first but did not I find a way just to copy an expression (we
basically need the same expr for such case). Do you know how to properly
generate a copy of expression or some other way to get the same expression?
https://reviews.llvm.org/D52261
ilya-biryukov added a comment.
It's the responsibility of the caller to provide a corrected expression, this
keeps the completion function simpler. I suggest we stick to this contract.
We do something in `getLangOpts().CPlusPlus` case to create a corrected
expression, let's just implement a simi
yvvan updated this revision to Diff 166110.
yvvan added a comment.
Test is added
https://reviews.llvm.org/D52261
Files:
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/member-access.c
Index: test/CodeCompletion/member-access.c
=
yvvan created this revision.
yvvan added reviewers: nik, ilya-biryukov.
Current completion fix-its approach does not provide OtherOpBase for C code.
But we can easily proceed in this case taking the original Base type.
https://reviews.llvm.org/D52261
Files:
lib/Sema/SemaCodeComplete.cpp
In