diff options
| author | David Blaikie <dblaikie@gmail.com> | 2012-05-30 20:45:14 +0000 | 
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2012-05-30 20:45:14 +0000 | 
| commit | 7e6ad4627571cb1b744996f74c980d72a7ce74a4 (patch) | |
| tree | 8cf6e0398dca2f90f409ea209e5f878d89662e95 /clang/lib/Frontend/HeaderIncludeGen.cpp | |
| parent | 177b855ed71a9cd029f6b36eadf32befa4ace9e7 (diff) | |
| download | bcm5719-llvm-7e6ad4627571cb1b744996f74c980d72a7ce74a4.tar.gz bcm5719-llvm-7e6ad4627571cb1b744996f74c980d72a7ce74a4.zip | |
Disable -Wunique-enum for anonymous enums.
This is a large class of false positives where anonymous enums are used to
declare constants (see Clang's Diagnostics.h for example). A small number of
true positives could probably be found in this bucket by still warning if the
anonymous enum is used in a declarator (enum { ... } x;) but so far we don't
believe this to be a source of significant benefit so I haven't bothered to
preserve those cases.
General offline review/acknowledgment by rtrieu.
llvm-svn: 157713
Diffstat (limited to 'clang/lib/Frontend/HeaderIncludeGen.cpp')
0 files changed, 0 insertions, 0 deletions

