summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/DiagnosticIDs.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix missing includes for llvm_unreachableDavid Blaikie2011-09-231-0/+1
| | | | llvm-svn: 140368
* Switch assert(0/false) llvm_unreachable.David Blaikie2011-09-231-1/+1
| | | | llvm-svn: 140367
* Implement '-Weverything', which enables all warnings except those explicitly ↵Ted Kremenek2011-08-181-7/+20
| | | | | | | | | | | | | | mapped to be ignored. Currently this includes -pedantic warnings as well; we'll need to consider whether these should be included. This works as expected with -Werror. Test cases were added to Sema/warn-unused-parameters.c, but they should probably be broken off into their own test file. llvm-svn: 137910
* Fix -ferror-limit= to properly emit notes following the last errorDouglas Gregor2011-08-171-4/+6
| | | | | | messages. Fi from David Blaikie, tests from Nikola Smiljanic! llvm-svn: 137851
* Fix C++0x narrowing conversion errors in Clang.Jeffrey Yasskin2011-08-131-2/+6
| | | | llvm-svn: 137552
* Provide diag_iterator for iterating over the built-in diagnostic IDs/names ↵Ted Kremenek2011-08-091-0/+29
| | | | | | in the internal table of DiagnosticIDs. llvm-svn: 137108
* Make DiagnosticErrorTrap keep a count of the errors that occurred so multipleArgyrios Kyrtzidis2011-07-291-4/+8
| | | | | | | | DiagnosticErrorTraps can be composed (e.g. a trap inside another trap). Fixes http://llvm.org/PR10462 & rdar://9852007. llvm-svn: 136447
* Clean up as many of the comments in Basic I can find to talk in terms ofChandler Carruth2011-07-261-2/+2
| | | | | | 'expansion' rather than 'instantiation' for macro source locations. llvm-svn: 136058
* Mechanically rename SourceManager::getInstantiationLoc andChandler Carruth2011-07-251-1/+1
| | | | | | | | FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part of the API and documentation update from 'instantiation' as the term for macros to 'expansion'. llvm-svn: 135914
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-32/+32
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Keep track of when "unrecoverable" errors occur, then allowDouglas Gregor2011-07-061-3/+5
| | | | | | | clang_saveTranslationUnit() to save a PCH file if the only errors it contains are recoverable errors. Fixes <rdar://problem/9727804>. llvm-svn: 134503
* Automatic Reference Counting.John McCall2011-06-151-0/+5
| | | | | | | | | | Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. llvm-svn: 133103
* Generate enumerators for diagnostic categories. Patch by Argyrios!John McCall2011-06-151-1/+23
| | | | | | Depends on LLVM r133093. llvm-svn: 133094
* StaticDiagNameIndex is never written to, place it into .rodata.Benjamin Kramer2011-06-141-2/+2
| | | | llvm-svn: 132990
* Put classes into anonymous namespaces.Benjamin Kramer2011-06-131-20/+26
| | | | llvm-svn: 132924
* A StringRef-ication of the DiagnosticIDs API and internals.Argyrios Kyrtzidis2011-05-251-64/+121
| | | | | | | | | Patch by Matthieu Monrocq with tweaks by me to avoid StringRefs in the static diagnostic data structures, which resulted in a huge global-var-init function. Depends on llvm commit r132046. llvm-svn: 132047
* Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837.Argyrios Kyrtzidis2011-04-211-0/+6
| | | | llvm-svn: 129951
* Move the check whether a diagnostic must be ignored because it is in a ↵Argyrios Kyrtzidis2011-04-211-26/+13
| | | | | | | | system header inside DiagnosticIDs::getDiagnosticLevel. llvm-svn: 129950
* Initial work to improve documentation for Clang's diagnostics, from Matthieu ↵Douglas Gregor2011-04-151-12/+87
| | | | | | Monrocq llvm-svn: 129614
* Teach TextDiagnosticPrinter to print out '-Werror' in addition to the ↵Ted Kremenek2011-02-251-3/+8
| | | | | | | | | | warning flag for a warning mapped to an error. For example: t.c:7:9: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses] llvm-svn: 126466
* If any Fix-Its attached to a diagnostic have invalid source locationsDouglas Gregor2011-02-031-0/+13
| | | | | | | or source locations that refer into a macro instantiation, delete all of the Fix-Its on that diagnostic. llvm-svn: 124833
* Separate the access-control diagnostics from other diagnostics that do not ↵Douglas Gregor2011-01-271-5/+9
| | | | | | have SFINAE behavior. llvm-svn: 124441
* Properly propagate #pragma diagnostic mappings from PCH but not command-line ↵Argyrios Kyrtzidis2011-01-141-1/+1
| | | | | | | | warning flags. Addresses rdar://8435969&8852495 llvm-svn: 123462
* Update AST reader/writer to handle new AppleKext.Fariborz Jahanian2011-01-071-1/+1
| | | | | | | | Fix an unexpected hickup caused by exceeding size of generated table (and a misleading comment). Improve on help message for -fapple-kext. llvm-svn: 123003
* Fix diagnostic pragmas.Argyrios Kyrtzidis2010-12-151-12/+34
| | | | | | | | | | | | Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state. Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect a lot of places, like C++ inline methods, template instantiations, the lexer, etc. Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location. Fixes rdar://8365684. llvm-svn: 121873
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-181-0/+547
-Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
OpenPOWER on IntegriCloud