diff options
author | Julie Hockett <juliehockett@google.com> | 2018-05-11 20:03:22 +0000 |
---|---|---|
committer | Julie Hockett <juliehockett@google.com> | 2018-05-11 20:03:22 +0000 |
commit | b262a0489b095a3e4470a6503ca3071390b3c60c (patch) | |
tree | e10ce14454a06d7dfcff9687dab67fab4f6ece3c /clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp | |
parent | eedb0c95a453ca7f84294032926de52db77e8abc (diff) | |
download | bcm5719-llvm-b262a0489b095a3e4470a6503ca3071390b3c60c.tar.gz bcm5719-llvm-b262a0489b095a3e4470a6503ca3071390b3c60c.zip |
Revert "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module"
This reverts commit r332125 for a failing test.
llvm-svn: 332131
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp b/clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp deleted file mode 100644 index 109e1d5a459..00000000000 --- a/clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// RUN: cp -r %S/Inputs/fuchsia-restrict-system-includes %T/Inputs -// RUN: %check_clang_tidy %s fuchsia-restrict-system-includes %t \ -// RUN: -- -config="{CheckOptions: [{key: fuchsia-restrict-system-includes.Includes, value: 'transitive.h,s.h'}]}" \ -// RUN: -system-headers -header-filter=.* \ -// RUN: -- -std=c++11 -I %T/Inputs/fuchsia-restrict-system-includes -isystem %T/Inputs/fuchsia-restrict-system-includes/system -// RUN: FileCheck -input-file=%T/Inputs/fuchsia-restrict-system-includes/transitive2.h %s -check-prefix=CHECK-FIXES - -// transitive.h includes <r.h> and <t.h> -#include <transitive.h> -// CHECK-MESSAGES: :1:1: warning: system include r.h not allowed, transitively included from {{(.*\/)*}}Inputs/fuchsia-restrict-system-includes/system/transitive.h -// CHECK-MESSAGES: :2:1: warning: system include t.h not allowed, transitively included from {{(.*\/)*}}Inputs/fuchsia-restrict-system-includes/system/transitive.h - -// transitive.h includes <s.h> and <t.h> -#include "transitive2.h" -// CHECK-MESSAGES: :2:1: warning: system include t.h not allowed, transitively included from {{(.*\/)*}}Inputs/fuchsia-restrict-system-includes/transitive2.h -// CHECK-FIXES-NOT: #include <t.h> - -int main() { - // f() is declared in r.h -} |