[PATCH] D37390: [diagtool] Add list-warning-flags

2017-09-01 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. Can this be tested? Comment at: tools/diagtool/ListWarningFlags.cpp:36 + for (ArrayRef::iterator di = AllDiagnostics.begin(), +de = AllDiagnostics.end(); + di != de; ++di) { range-based

[PATCH] D37390: [diagtool] Add list-warning-flags

2017-09-01 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere created this revision. JDevlieghere added a project: clang. Herald added a subscriber: mgorny. This patch adds a new tool to diagnostic tool called `list-warning-flags` to display only warnings that have a corresponding -W flag. While we already have `list-warnings`, the output cont