llvm-project/clang/test/Tooling
Sam McCall bba729af3e [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer
Output generation options (like `-save-temps`) will make the analyzer not executed even `--analyze` option is provided in the driver arguments.
Besides, the original approach of adding `--analyze` option will not work when (more than one) `-fsyntax-only` options are provided in the driver arguments.

This patch fixes these two problems by using the syntax-only adjuster to remove output generation options and manually filter out redundant `-fsyntax-only` options.

In the new implementation, the adjusters added by `ClangTool` will not be removed but used as dependencies for clang-check adjusters for analyzer options.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D116329
2022-01-14 10:05:47 +01:00
..
Inputs
auto-detect-from-source-parent-of-cwd.cpp
auto-detect-from-source-parent.cpp
auto-detect-from-source.cpp
clang-check-analyze-save-temps.cpp [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer 2022-01-14 10:05:47 +01:00
clang-check-analyzer.cpp
clang-check-args.cpp
clang-check-ast-dump.cpp
clang-check-autodetect-dir.cpp
clang-check-builtin-headers.cpp
clang-check-chdir.cpp
clang-check-extra-arg.cpp
clang-check-fixit.cpp
clang-check-mac-libcxx-abspath.cpp
clang-check-mac-libcxx-fixed-compilation-db.cpp
clang-check-mac-libcxx-relpath.cpp
clang-check-pwd.cpp
clang-check-rel-path.cpp
clang-check-set-analyzer-output-path.cpp [clang] Allow clang-check to customize analyzer output file or dir name 2021-11-15 16:49:41 +01:00
clang-check-strip-o.cpp
clang-check-syntax-tree-dump.cpp
clang-check.cpp
clang-diff-args.test
clang-diff-ast.cpp
clang-diff-basic.cpp
clang-diff-bottomup.cpp
clang-diff-html.test
clang-diff-json.cpp
clang-diff-opt.cpp
clang-diff-topdown.cpp
fixed-database.cpp
lit.local.cfg
ms-asm-no-target.cpp
multi-jobs.cpp
pch.cpp