[Static Analyzer] Add --analyzer-target option to scan-build.
authorTed Kremenek <kremenek@apple.com>
Sat, 8 Aug 2015 17:58:47 +0000 (17:58 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 8 Aug 2015 17:58:47 +0000 (17:58 +0000)
commit0270a08ebfcfe74e75d576fa4718c5fc6f44c6dc
tree6a0d5c3c15f7d494b94b850d013c16fd297650e0
parente880ae9e1a0e634621516eb22055f8e087a1702d
[Static Analyzer] Add --analyzer-target option to scan-build.

When interposing on a compiler doing cross-compilation, scan-build
does not infer the target triple needed to pass to clang for
doing static analysis.  The --analyzer-target option allows one
to manually specify the target triple used during static analysis
(and only static analysis) for such cases.

Patch by Honggyu Kim!

Reviewed in http://reviews.llvm.org/D10356.

llvm-svn: 244400
clang/tools/scan-build/ccc-analyzer
clang/tools/scan-build/scan-build