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/mpi-buffer-deref.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/mpi-buffer-deref.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp b/clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp index 67304d23010..47d58a5a6c4 100644 --- a/clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp +++ b/clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp @@ -1,3 +1,4 @@ +// REQUIRES: static-analyzer // RUN: %check_clang_tidy %s mpi-buffer-deref %t -- -- -I %S/Inputs/mpi-type-mismatch #include "mpimock.h" |