diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-10-01 20:24:22 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-10-01 20:24:22 +0000 |
commit | a3c4206e415963b3ac84327b1946dba98ec572e7 (patch) | |
tree | 5fc4b25426e5ba65e7fa95e5b4eac9acab4f252b /clang-tools-extra/test/clang-tidy/read_file_config.cpp | |
parent | 746eb09127267738b3b882d2cfb900ed9f41a5b1 (diff) | |
download | bcm5719-llvm-a3c4206e415963b3ac84327b1946dba98ec572e7.tar.gz bcm5719-llvm-a3c4206e415963b3ac84327b1946dba98ec572e7.zip |
[clang-tidy] Build it even without static analyzer
Conditionally compile the parts of clang-tidy which depend on the static
analyzer.
Funnily enough, I made the patch to exclude this from the build in 2013,
and it was committed with the comment that the tool should not be fully
excluded, but only the parts of it which depend on the analyzer should
be excluded.
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20130617/081797.html
This commit implements that idea.
Reviewed By: aaron.ballman
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D52334
llvm-svn: 343528
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/read_file_config.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/read_file_config.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/read_file_config.cpp b/clang-tools-extra/test/clang-tidy/read_file_config.cpp index 3635c214fcd..3e39b4d630e 100644 --- a/clang-tools-extra/test/clang-tidy/read_file_config.cpp +++ b/clang-tools-extra/test/clang-tidy/read_file_config.cpp @@ -1,3 +1,4 @@ +// REQUIRES: static-analyzer // RUN: mkdir -p %T/read-file-config/ // RUN: cp %s %T/read-file-config/test.cpp // RUN: echo 'Checks: "-*,modernize-use-nullptr"' > %T/read-file-config/.clang-tidy |