[cfe-commits] PATCH #1 for "[sema++] clang should give a fixit for */& mismatch"
Anna Zaks
ganna at apple.com
Thu Jul 14 19:26:39 PDT 2011
This patch is a first step towards providing FixItHints in case a function call is missing one/several * or & operators (See http://llvm.org/PR5941).
With this fix, the error message will display the function call. It will be followed by the list of notes - one for each possible candidate function declaration. If a function call can be fixed to match the particular declaration, a FixItHint will be provided along with the note.
I also bumped up the number of MaxFixItHints to 6 (we need 2 FixIts per incorrect argument).
The remaining steps are:
1) Use FixIts when determining the order in which the notes should be displayed.
2) Find out if the same FixIts can be used with errors other then "error: no matching function for call to foo".
Thanks,
Anna.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR5941_1.diff
Type: application/octet-stream
Size: 9368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110714/cb0524c8/attachment.obj>
More information about the cfe-commits
mailing list