[cfe-commits] [Patch] Warn about C90 doubly-qualified types in more situations
Tim Northover
Tim.Northover at arm.com
Mon Apr 2 07:01:27 PDT 2012
Hi,
C90 annoyingly requires a diagnostic to be produced for any type that ends up
with two copies of the same type-qualifier. This warning is already produced
for cases which can be detected during parsing, but when it happens via a
typedef Sema needs to be involved.
I believe this patch implements the correct note, though I was uncertain how
best to test for C90 only compilation: is !C99 && !C++ & !ObjC correct?
Could someone take a look at the patch?
Thanks.
Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quals.diff
Type: text/x-patch
Size: 2622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120402/68543566/attachment.bin>
More information about the cfe-commits
mailing list