]> granicus.if.org Git - clang/commit
Add new tool 'diag-build' for showing enabled warnings in a project.
authorJordan Rose <jordan_rose@apple.com>
Mon, 18 Jun 2012 21:31:37 +0000 (21:31 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 18 Jun 2012 21:31:37 +0000 (21:31 +0000)
commitdceccacff28d00717774300f5fe0067286ac65bf
tree048d58cc497f8385151335029cc4d5cd24b52c49
parent333e05f24717c79637e83806fd5142c752a86afa
Add new tool 'diag-build' for showing enabled warnings in a project.

diag-build acts as a wrapper for 'diagtool show-enabled', in the same way
that scan-build acts as a wrapper for the static analyzer. The common case is
simple: use 'diag-build make' or 'diag-build xcodebuild' to list the warnings
enabled for the first compilation command we see. Other build systems require
you to manually specify "dry-run" and "use $CC and $CXX"; if there is a build
system you are interested in, please add it to the switch statement.

diag-build is fairly stupid right now, but it serves its basic purpose.
Hopefully it can grow to meet any additional requirements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158682 91177308-0d34-0410-b5e6-96231b3b80d8
tools/diag-build/diag-build.sh [new file with mode: 0755]