[cfe-commits] [Patch] -Wignored-qualifiers should point to the first ignored qualifier

Hans Wennborg hans at chromium.org
Wed Jun 1 06:30:18 PDT 2011


In code such as "char* volatile const j()", Clang warns that "volatile
const" will be ignored, but the error currently points to the location
of "const". The attached patch makes the error point to the location
of the first ignored qualifier, and tries to simplify the code a bit.

I posted this to the wrong list before [1] and didn't receive any
response. I would be grateful for any feedback.

Thanks,
Hans


[1]: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-April/014809.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignored-qualifiers.patch
Type: text/x-patch
Size: 2283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110601/ba75f99b/attachment.bin>


More information about the cfe-commits mailing list