[diagtool] Add a 'find-diagnostic-id' subcommand that converts a name of
authorAlex Lorenz <arphaman@gmail.com>
Wed, 12 Jul 2017 16:41:49 +0000 (16:41 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 12 Jul 2017 16:41:49 +0000 (16:41 +0000)
commitada11923fa4e1a7de31ac33ce68db7d129e49718
treeebd9d448d8b0c4f262870f8d7ddff737da03ad65
parenta9a1b403bcabdd72c4fc7b80df05042c0ebd3b95
[diagtool] Add a 'find-diagnostic-id' subcommand that converts a name of
the diagnostic to its enum value

This will be used by a script that invokes clang in a debugger and forces it
to stop when it reports a particular diagnostic.

Differential Revision: https://reviews.llvm.org/D35306

llvm-svn: 307813
clang/test/Misc/find-diagnostic-id.c [new file with mode: 0644]
clang/tools/diagtool/CMakeLists.txt
clang/tools/diagtool/FindDiagnosticID.cpp [new file with mode: 0644]