Alp Toker
b2636c4ae1
diagtool: refactor TreeView to resemble C++
...
Replace lots of old-school parameter passing with neat class members.
No attempt made yet to modernize loops, but it's a start.
llvm-svn: 211327
2014-06-20 00:06:42 +00:00
Alp Toker
1b3f344713
diagtool: simplify TreeView diagnostic classification
...
This utility doesn't need to know about the specifics of diagnostic levels.
llvm-svn: 211323
2014-06-19 23:00:52 +00:00
Craig Topper
da7cf8ab2b
Move individual group name strings from the OptionTable into one big char array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o.
...
llvm-svn: 189568
2013-08-29 05:18:04 +00:00
Craig Topper
a3891a7568
Reorder and shrink size of NameLen field in diagnostic group table. Shaves ~4K from clang binary.
...
llvm-svn: 189445
2013-08-28 06:01:10 +00:00
Chandler Carruth
cc0694c8a4
Sort #include lines for tools/...
...
Completely automated with sort_includes.py
llvm-svn: 169240
2012-12-04 09:25:21 +00:00
Douglas Gregor
811db4eac4
Make DiagnosticOptions intrusively reference-counted, and make sure
...
the various stakeholders bump up the reference count. In particular,
the diagnostics engine now keeps the DiagnosticOptions object alive.
llvm-svn: 166508
2012-10-23 22:26:28 +00:00
Ted Kremenek
450f9f29b2
Add color output to 'diagtool tree' to show what warnings are enabled by default.
...
llvm-svn: 165338
2012-10-05 22:07:14 +00:00
Jordan Rose
473e877c43
[diagtool] Add a new "tree" command to shows warnings activated by a flag.
...
% diagtool tree -Wunused-value
-Wunused-value
-Wunused-comparison
warn_unused_comparison
-Wunused-result
warn_unused_result
warn_unused_call
warn_unused_container_subscript_expr
warn_unused_expr
warn_unused_property_expr
warn_unused_voidptr
llvm-svn: 159093
2012-06-24 00:07:45 +00:00