SuccessChanges

Summary

  1. [clang-scan-deps] Support for clang --analyze in clang-scan-deps (details)
Commit c5d14b5c6fa9e003ef2037dcd3601c8339b1e42f by Jan Korous
[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
llvm-svn: 374815
The file was modifiedclang/include/clang/Lex/PreprocessorOptions.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/Frontend/InitPreprocessor.cpp
The file was addedclang/test/Analysis/preprocessor-setup.c
The file was addedclang/test/ClangScanDeps/Inputs/static-analyzer-cdb.json
The file was modifiedclang-tools-extra/clang-tidy/ClangTidy.cpp
The file was modifiedllvm/utils/lit/lit/llvm/config.py
The file was modifiedclang/include/clang/Driver/CC1Options.td
The file was addedclang/test/ClangScanDeps/static-analyzer.c
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp