summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the Clang tblgen backends from LLVM.Peter Collingbourne2011-10-061-378/+0
| | | | llvm-svn: 141293
* Move TableGen's parser and entry point into a libraryPeter Collingbourne2011-10-011-1/+1
| | | | | | This is the first step towards splitting LLVM and Clang's tblgen executables. llvm-svn: 140951
* tblgen/ClangDiagnostics: Add support for split default warning "no-werror" andDaniel Dunbar2011-09-291-1/+17
| | | | | | "show-in-system-header" bits, which I will be adding in Clang shortly. llvm-svn: 140741
* Unconstify InitsDavid Greene2011-07-291-3/+3
| | | | | | Remove const qualifiers from Init references, per Chris' request. llvm-svn: 136531
* [AVX] Constify InitsDavid Greene2011-07-291-3/+3
| | | | | | | Make references to Inits const everywhere. This is the final step before making them unique. llvm-svn: 136485
* Revert r134921, 134917, 134908 and 134907. They're causing failuresEric Christopher2011-07-111-5/+3
| | | | | | in multiple buildbots. llvm-svn: 134936
* [AVX] Make Inits FoldableDavid Greene2011-07-111-3/+5
| | | | | | | | | | | | | | | | | | Manage Inits in a FoldingSet. This provides several benefits: - Memory for Inits is properly managed - Duplicate Inits are folded into Flyweights, saving memory - It enforces const-correctness, protecting against certain classes of bugs The above benefits allow Inits to be used in more contexts, which in turn provides more dynamism to TableGen. This enhanced capability will be used by the AVX code generator to a fold common patterns together. llvm-svn: 134907
* Update the Clang diagnostic emitter to emit IDs for diagnostic categories.John McCall2011-06-151-1/+11
| | | | | | Patch by Argyrios Kyrtzidis. llvm-svn: 133093
* [tablegen] A couple of changes to ClangDiagnosticEmmitter.Argyrios Kyrtzidis2011-05-251-2/+4
| | | | | | | -Emit an empty warning option as string ("") instead of 0. -For diagnostic names also emit the size of the string. llvm-svn: 132046
* Remove unused STL header includes.Jay Foad2011-04-231-1/+0
| | | | llvm-svn: 130068
* Initial work to improve documentation for Clang's diagnostics, from Matthieu ↵Douglas Gregor2011-04-151-1/+56
| | | | | | Monrocq llvm-svn: 129613
* Wrap the struct in an anonymous namespace.Argyrios Kyrtzidis2011-02-131-0/+2
| | | | llvm-svn: 125452
* Clang: separate the access-control diagnostics from other diagnostics that ↵Douglas Gregor2011-01-271-1/+7
| | | | | | do not have SFINAE behavior. llvm-svn: 124440
* eliminate the Records global variable, patch by Garrison Venn!Chris Lattner2010-12-131-7/+9
| | | | llvm-svn: 121659
* diaggroup categories should take precedence over diag-specific groups.Chris Lattner2010-05-241-8/+9
| | | | llvm-svn: 104567
* Update tablegen to generate shorts instead of chars for subgroup arrays.Chandler Carruth2010-05-131-1/+1
| | | | llvm-svn: 103704
* add the ability to associate 'category' names with clang diagnosticsChris Lattner2010-05-041-3/+118
| | | | | | | | | and diagnostic groups. This allows the compiler to group diagnostics together (e.g. "Logic Warning", "Format String Warning", etc) like the static analyzer does. This is not exposed through anything in the compiler yet. llvm-svn: 103050
* Add an extra newline to separate PP directives from the contentsKovarththanan Rajaratnam2010-03-181-1/+1
| | | | llvm-svn: 98820
* Use raw_ostream::write_escaped instead of EscapeString.Daniel Dunbar2009-10-171-10/+6
| | | | llvm-svn: 84356
* Replace std::iostreams with raw_ostream in TableGen.Daniel Dunbar2009-07-031-3/+2
| | | | | | | | - Sorry, I can't help myself. - No intended functionality change. llvm-svn: 74742
* Add output of the SFINAE bit for Clang's diagnosticsDouglas Gregor2009-06-141-0/+6
| | | | llvm-svn: 73331
* prove diagnostic -> group mapping information.Chris Lattner2009-04-161-1/+13
| | | | llvm-svn: 69270
* encode subgroups into the clang .inc file. -Wall now works!Chris Lattner2009-04-161-11/+30
| | | | llvm-svn: 69257
* start producing subgroup info.Chris Lattner2009-04-161-8/+31
| | | | llvm-svn: 69249
* make sure that empty diag groups get known by clang.Chris Lattner2009-04-151-2/+8
| | | | llvm-svn: 69235
* implement support for writing out diagnostic group tables.Chris Lattner2009-04-151-137/+51
| | | | llvm-svn: 69219
* use UppercaseString instead of EmitAllCapsChris Lattner2009-04-151-16/+7
| | | | llvm-svn: 69213
* use escape string.Chris Lattner2009-04-151-13/+6
| | | | llvm-svn: 69212
* rename -gen-clang-diags-options -> -gen-clang-diag-groupsChris Lattner2009-04-151-1/+1
| | | | llvm-svn: 69208
* don't infer diag class from parenting relations, make it an explicit fieldChris Lattner2009-04-151-15/+1
| | | | | | in the record. llvm-svn: 69176
* include the default mapping in the clang diagnostic .inc files.Chris Lattner2009-04-151-7/+2
| | | | llvm-svn: 69173
* minor cleanupsChris Lattner2009-04-151-17/+11
| | | | llvm-svn: 69152
* Constify method to make VC++ happy. Patch by Brian Diekelman!Ted Kremenek2009-04-011-2/+2
| | | | llvm-svn: 68222
* fix a few spelling errors and typosJim Grosbach2009-03-261-1/+1
| | | | llvm-svn: 67758
* Add sanity check in Clang TableGen backend to check if 'Component' is a string.Ted Kremenek2009-03-231-1/+1
| | | | llvm-svn: 67565
* Fix regression in 'tblgen -gen-clang-diags-defs': Emit the diagnostic kind ↵Ted Kremenek2009-03-191-1/+2
| | | | | | instead of "DIAGNOSTICCONTROLLED". llvm-svn: 67305
* tblgen -gen-clang-diags-options: Output OptionTable entries in lexicographicTed Kremenek2009-03-181-7/+19
| | | | | | order. llvm-svn: 67244
* 'tblgen -gen-clang-diags-options' now outputs the OptionTable:Ted Kremenek2009-03-181-5/+19
| | | | | | | | | | | static const WarningOption OptionTable[] = { {"unused-macros", DIAGS(UnusedMacrosDiags)} ... }; This table is not yet properly sorted. llvm-svn: 67242
* Add another Clang TableGen-backend (-gen-clang-diags-options) for emittingTed Kremenek2009-03-181-0/+101
| | | | | | | | | | | | declarations for controlling groups of warnings. Currently this transforms: def UnusedMacrosDiags : Option<"unused-macros", [pp_macro_not_used]>; into: static const diag::kind UnusedMacrosDiags[] = { diag::pp_macro_not_used }; llvm-svn: 67239
* Add (hidden) TableGen command option '-clang-component' which specifies theTed Kremenek2009-03-131-9/+33
| | | | | | | | | component's warnings to process for '-gen-clang-diags-defs'. Also, when the component is specified, generate a '#if' prologue at the top of the generated .def file (to match the current files). llvm-svn: 66975
* Add initial implementation of a TableGen backend for converting Clang-warningsTed Kremenek2009-03-131-0/+84
tablegen files to the original .def preprocessor include files. This is my first TableGen backend; I don't claim that it is awesome. llvm-svn: 66971
OpenPOWER on IntegriCloud