]> granicus.if.org Git - llvm/commit
[clang-scan-deps] Support for clang --analyze in clang-scan-deps
authorJan Korous <jkorous@apple.com>
Mon, 14 Oct 2019 20:15:01 +0000 (20:15 +0000)
committerJan Korous <jkorous@apple.com>
Mon, 14 Oct 2019 20:15:01 +0000 (20:15 +0000)
commitcd6a99c88b4f5bf6027bef12db48e65f91a4f0d2
treedd5d0ac114831f5026258e375c4375b7f8911210
parent9ef9df39b3b35e921db21f8a6b00ec1fbe9e8ed5
[clang-scan-deps] Support for clang --analyze in clang-scan-deps

The goal is to have 100% fidelity in clang-scan-deps behavior when
--analyze is present in compilation command.

At the same time I don't want to break clang-tidy which expects
__static_analyzer__ macro defined as built-in.

I introduce new cc1 options (-setup-static-analyzer) that controls
the macro definition and is conditionally set in driver.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374815 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/llvm/config.py