[PATCH] Improve diagnostic message for misplaced square brackets
rtrieu at google.com
Tue May 13 15:44:22 PDT 2014
Switching to a recursive solution for misplaced brackets. Upon seeing a bracket before the identifier, parse the brackets and store the info. Call ParseDirectDeclarator again to continue parsing. After that returns, attach the bracket info the Declarator and emit the misplaced bracket error with fix-it hint to move the brackets after the identifier. Additionally, store the location of the beginning of the brackets so that other error messages may point to a better location.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13088 bytes
Desc: not available
More information about the cfe-commits