summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp
diff options
context:
space:
mode:
authorJulie Hockett <juliehockett@google.com>2018-05-09 22:28:18 +0000
committerJulie Hockett <juliehockett@google.com>2018-05-09 22:28:18 +0000
commitb11f8b3cbc714fd9977d72cce04bb5fec25e3378 (patch)
treeaa745c9bafed9af0c756676f12ff75a5039e8590 /clang-tools-extra/test/clang-tidy/fuchsia-restrict-system-includes-headers.cpp
parent0d2fc1a501c7f4e3be014eadc0761941ac2995ff (diff)
downloadbcm5719-llvm-b11f8b3cbc714fd9977d72cce04bb5fec25e3378.tar.gz
bcm5719-llvm-b11f8b3cbc714fd9977d72cce04bb5fec25e3378.zip
Revert "[clang-tidy] Adding RestrictSystemIncludes check to Fuchsia module"
This reverts commit r331930, which was landed by accident. llvm-svn: 331934
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.cpp20
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 895a3478b38..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/transitive2.h %s -check-prefix=CHECK-HEADER-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-HEADER-FIXES-NOT: #include <t.h>
-
-int main() {
- // f() is declared in r.h
-}
OpenPOWER on IntegriCloud