summaryrefslogtreecommitdiffstats
path: root/clang/tools/diagtool/ListWarnings.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [diagtool] Remove unneeded header includes.Richard Trieu2018-11-281-1/+0
| | | | llvm-svn: 347726
* [NFC] Loop modernization in diagtoolJonas Devlieghere2017-09-051-31/+25
| | | | | | Precommit for https://reviews.llvm.org/D37390 llvm-svn: 312545
* Revert r240270 ("Fixed/added namespace ending comments using clang-tidy").Alexander Kornienko2015-06-221-1/+1
| | | | llvm-svn: 240353
* Fixed/added namespace ending comments using clang-tidy. NFCAlexander Kornienko2015-06-221-1/+1
| | | | | | | | | | | | The patch is generated using this command: $ tools/extra/clang-tidy/tool/run-clang-tidy.py -fix \ -checks=-*,llvm-namespace-comment -header-filter='llvm/.*|clang/.*' \ work/llvm/tools/clang To reduce churn, not touching namespaces spanning less than 10 lines. llvm-svn: 240270
* clang-format a recent commit I madeDavid Blaikie2014-11-191-4/+3
| | | | llvm-svn: 222317
* Standardize on StringMap::insert, removing uses of StringMap::GetOrCreateValue.David Blaikie2014-11-191-2/+2
| | | | llvm-svn: 222306
* Sort #include lines for tools/...Chandler Carruth2012-12-041-3/+3
| | | | | | Completely automated with sort_includes.py llvm-svn: 169240
* Enhance 'diagtool list-warnings' to report number of diagnostics covered ↵Ted Kremenek2012-07-071-0/+4
| | | | | | directly under -Wpedantic, and enhance warning-flags.c test to test that this set does not grow. llvm-svn: 159893
* [diagtool] Add a new "tree" command to shows warnings activated by a flag.Jordan Rose2012-06-241-6/+6
| | | | | | | | | | | | | | | | % 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
* [diagtool] Re-add show-enabled, minimizing the code pulled in from Frontend.Jordan Rose2012-06-041-24/+3
| | | | | | Now correctly builds with both GNU make and CMake. llvm-svn: 157932
* [diagtool] Pull show-enabled back out for now.Jordan Rose2012-06-011-3/+24
| | | | | | | Need to figure out how to get Frontend's warning parsing without bringing in all of Frontend. llvm-svn: 157847
* [diagtool] Add 'show-enabled', which displays which warnings are enabled.Jordan Rose2012-06-011-24/+3
| | | | | | | 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
* Provide common include for all diagnostic headers.David Blaikie2012-02-151-19/+1
| | | | | | Reviewed by Ted Kremenek. llvm-svn: 150616
* Remove the unuseful -fdiagnostics-show-nameDavid Blaikie2012-02-151-7/+45
| | | | | | | | | | | | | | This option was added in r129614 and doesn't have any use case that I'm aware of. It's possible that external tools are using these names - and if that's the case we can certainly reassess the functionality, but for now it lets us shave out a few unneeded bits from clang. Move the "StaticDiagNameIndex" table into the only remaining consumer, diagtool. This removes the actual diagnostic name strings from clang entirely. Reviewed by Chris Lattner & Ted Kremenek. llvm-svn: 150612
* Rename Diagnostic to DiagnosticsEngine as per issue 5397David Blaikie2011-09-251-1/+1
| | | | llvm-svn: 140478
* The diagtool registration system tries to use a global variable from a methodNick Lewycky2011-08-121-1/+1
| | | | | | | called on another global variable. Use ManagedStatic to ensure that the global we register with actually exists when we need it. llvm-svn: 137406
* Add 'diagtool' to the 'tools/' directory. diagtool is a new tool (WIP) for ↵Ted Kremenek2011-08-091-0/+106
analyzing and working with clang diagnostics. Some interesting stats from 'diagtool list-warnings' on the current version of clang: Percentage of warnings with flags: 48.79% Number of unique flags: 148 Average number of diagnostics per flag: 2.041 llvm-svn: 137109
OpenPOWER on IntegriCloud