[scan-build] Patch to scan-build tool to support "--target=<value>" flag
authorPetr Hosek <phosek@chromium.org>
Fri, 26 May 2017 19:25:32 +0000 (19:25 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 26 May 2017 19:25:32 +0000 (19:25 +0000)
commit5326bb4a7763515eb593bfc64c9207e984f07696
tree594c04e2eecb4a0b4451d4a52859137aab3f249e
parentffa786f465547520a54eaa3f1b26ad4cd5b4223e
[scan-build] Patch to scan-build tool to support "--target=<value>" flag

The scan-build script provided by clang can be used to detect defects in
code in the compile time. However, we discovered that the
"--target=<value>" flag in clang is not properly handled by this script,
which results in failures when analyzing projects that have used this
flag in their makefile.

This single line of change allows scan-build script to properly handle
the "--target=<value>" flag.

Patch by Haowei Wu

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

llvm-svn: 304025
clang/tools/scan-build/libexec/ccc-analyzer