llvm-project/clang/test/ClangScanDeps/Inputs/static-analyzer-cdb.json
Sylvain Audi 8c16c8b7ef Reland "[clang-scan-deps] Add support for clang-cl"
This reverts commit 199c39748292cbc89cd148a0d8364ebb1014ec38.
This time, clang-scan-deps's search for output argument in clang-cl command line will now ignore arguments preceded by "-Xclang".
That way, it won't detect a /o argument in "-Xclang -ivfsoverlay -Xclang /opt/subpath"

Initial patch description:
clang-scan-deps contains some command line parsing and modifications.
This patch adds support for clang-cl command options.

Differential Revision: https://reviews.llvm.org/D92191
2021-04-21 07:56:39 -04:00

13 lines
267 B
JSON

[
{
"directory": "DIR",
"command": "clang --analyze DIR/static-analyzer_clang.c",
"file": "DIR/static-analyzer_clang.c"
},
{
"directory": "DIR",
"command": "clang-cl --analyze -- DIR/static-analyzer_clangcl.c",
"file": "DIR/static-analyzer_clangcl.c"
}
]