Benjamin Kramer
2f5db8b3db
Header guard canonicalization, clang part.
...
Modifications made by clang-tidy with minor tweaks.
llvm-svn: 215557
2014-08-13 16:25:19 +00:00
Benjamin Kramer
12152ab92e
Add missing header guards.
...
llvm-svn: 215202
2014-08-08 13:24:19 +00:00
Craig Topper
69186e731f
[C++11] Use 'nullptr'. Tools edition.
...
llvm-svn: 210422
2014-06-08 08:38:04 +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
Craig Topper
d80c17e060
Merge diagnostic group tables to reduce data size and relocation entries.
...
The individual group and subgroups tables are now two large tables. The option table stores an index into these two tables instead of pointers. This reduces the size of the options tabe since it doesn't need to store pointers. It also reduces the number of relocations needed.
My build shows this reducing DiagnosticsIDs.o and the clang binary by ~20.5K. It also removes ~400 relocation entries from DiagnosticIDs.o.
llvm-svn: 189438
2013-08-28 04:02:50 +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
Jordan Rose
2fe20dca2a
[diagtool] Re-add show-enabled, minimizing the code pulled in from Frontend.
...
Now correctly builds with both GNU make and CMake.
llvm-svn: 157932
2012-06-04 16:57:50 +00:00
Jordan Rose
573649eb8b
[diagtool] Pull show-enabled back out for now.
...
Need to figure out how to get Frontend's warning parsing without bringing
in all of Frontend.
llvm-svn: 157847
2012-06-01 22:23:02 +00:00
Jordan Rose
d617e06997
[diagtool] Add 'show-enabled', which displays which warnings are enabled.
...
show-enabled uses the command line you give it to build a CompilerInstance,
so any flags you pass will be processed as if running clang proper.
llvm-svn: 157842
2012-06-01 21:23:17 +00:00