diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-25 01:12:57 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-25 01:12:57 +0000 |
commit | 8ef4887b15a46fd75bebf2e17ca38e550b0b9eda (patch) | |
tree | f2c719e92d26e4eb97241a9762398a122344ea05 /clang-tools-extra/test/clang-tidy | |
parent | 08154bf3d2539a3a74af6a4a3822c566ab329b14 (diff) | |
download | bcm5719-llvm-8ef4887b15a46fd75bebf2e17ca38e550b0b9eda.tar.gz bcm5719-llvm-8ef4887b15a46fd75bebf2e17ca38e550b0b9eda.zip |
check-clang-tools: Introduce the feature "target-headers".
For now, it just detects that host is non-Windows and target is msvc.
FIXME: It should be probable for cross compilations. Detect whether target's headers would be available.
llvm-svn: 261814
Diffstat (limited to 'clang-tools-extra/test/clang-tidy')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp | 1 | ||||
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp b/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp index a7c28a55e5e..137f0c91801 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx03.cpp @@ -1,4 +1,5 @@ // RUN: %check_clang_tidy %s modernize-deprecated-headers %t -- -- -std=c++03 -isystem %S/Inputs/Headers +// REQUIRES: target-headers #include <assert.h> #include <complex.h> diff --git a/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp b/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp index 5be4293c007..ae6c6ba3246 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-deprecated-headers-cxx11.cpp @@ -1,4 +1,5 @@ // RUN: %check_clang_tidy %s modernize-deprecated-headers %t -- -- -std=c++11 -isystem %S/Inputs/Headers +// REQUIRES: target-headers #include <assert.h> #include <complex.h> |