HomePhabricator

[clang-scan-deps] Support for clang --analyze in clang-scan-deps

Description

[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

Details

Committed
jkorousOct 14 2019, 1:15 PM
Differential Revision
D68093: [clang-scan-deps][static analyzer] Support for clang --analyze in scan-deps
Branches
Unknown
Tags
Unknown