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.
PR5941_1.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
