summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc/Warnings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move clang-cc.h to lib/Frontend/Utils.h, and move the associated .cpp Eli Friedman2009-05-191-106/+0
| | | | | | files to lib/Frontend. llvm-svn: 72099
* Move the warning options from Warnings.cpp to clang-cc.cpp.Eli Friedman2009-05-191-16/+9
| | | | llvm-svn: 72089
* move group twiddling options into Diagnostic.cpp instead ofChris Lattner2009-04-191-49/+1
| | | | | | | Warnings.cpp. Warnings.cpp now doesn't need to #include tblgen produced output directly. llvm-svn: 69559
* Fix PR4007: clang doesn't know -Werror-foo is the same as -Werror=fooChris Lattner2009-04-191-2/+3
| | | | llvm-svn: 69557
* implement framework for -fdiagnostics-show-option, but tblgen isn'tChris Lattner2009-04-161-1/+0
| | | | | | passing down the right info yet. llvm-svn: 69268
* move handling of -pedantic and -pedantic-errors into Diagnostics,Chris Lattner2009-04-161-52/+14
| | | | | | | out of Warnings.cpp. This simplifies warnings.cpp and makes it more efficient. llvm-svn: 69266
* arrange for -Wno-error=foo warnings to be immune to -Werror as Chris Lattner2009-04-161-1/+1
| | | | | | they are supposed to be. llvm-svn: 69265
* when tblgen fills in all the subgroup info, clang is ready for it.Chris Lattner2009-04-161-11/+24
| | | | | | This depends on r69249 of llvm. llvm-svn: 69250
* make unknown warnings a warning, not an error.Chris Lattner2009-04-151-4/+5
| | | | llvm-svn: 69239
* add support for -Wextra and -WChris Lattner2009-04-151-1/+1
| | | | llvm-svn: 69236
* use tablgen-generated warning groups.Chris Lattner2009-04-151-49/+13
| | | | llvm-svn: 69221
* now that we've decoupled diagnostic classes from default mappings,Chris Lattner2009-04-151-17/+0
| | | | | | | move the remaining default mapping exceptions from C++ code into the .td files. llvm-svn: 69183
* rename variable in comment, not just in code :).Chris Lattner2009-04-151-3/+3
| | | | llvm-svn: 69166
* Rejigger how -pedantic and -pedantic-errors work and their interactionChris Lattner2009-04-151-5/+53
| | | | | | | | | | | | | | | | with other diagnostic mapping. In the new scheme, -Wfoo or -Wno-foo or -Werror=foo all override the -pedantic options, and __extension__ robustly silences all extension diagnostics in their scope. An added bonus of this change is that MAP_DEFAULT goes away, meaning that per-diagnostic mapping information can now be stored in 2 bits, doubling the density of the Diagnostic::DiagMapping array. This also substantially simplifies Diagnostic::getDiagnosticLevel. OTOH, this temporarily introduces some "macro intensive" code in Diagnostic.cpp. This will be addressed in a later patch. llvm-svn: 69154
* remove some commented out -Wstrict-selector-match stuff.Chris Lattner2009-04-151-3/+0
| | | | llvm-svn: 69148
* clean up error messages.Chris Lattner2009-04-151-4/+5
| | | | llvm-svn: 69142
* Add support for -Werror=foo and -Wno-error=fooChris Lattner2009-04-151-10/+12
| | | | llvm-svn: 69138
* refactor a bunch of the warning parsing stuff to simplify it. This removes theChris Lattner2009-04-151-102/+56
| | | | | | -Wfoo=ignore syntax. GCC supports -Wno-foo, no need to invent our own stuff. llvm-svn: 69136
* add support for -W[no-]extra-tokensChris Lattner2009-04-141-1/+3
| | | | llvm-svn: 69071
* add some #includes for better compatibility with gcc 4.4,Chris Lattner2009-04-111-0/+1
| | | | | | thanks to Tobias Stadler for pointing this out. llvm-svn: 68868
* add support for -Wtrigraphs and -Wno-trigraphs.Chris Lattner2009-04-081-16/+15
| | | | llvm-svn: 68649
* Implement -Wmissing-prototypes. Fixes PR3911.Douglas Gregor2009-03-311-0/+5
| | | | llvm-svn: 68110
* Add support for -Wdeprecated-declarations.Steve Naroff2009-03-311-0/+3
| | | | | | This fixes <rdar://problem/6712496> Unable to disable deprecated warning. llvm-svn: 68108
* Implement -Wno-pointer-sign.Eli Friedman2009-03-301-0/+4
| | | | llvm-svn: 68062
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-0/+222
Again, I tried to update cmake but it is untested. llvm-svn: 67605
OpenPOWER on IntegriCloud