[clang-tidy] Move the misc system header dir to Inputs subdir, NFC.
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 5 Jun 2023 11:52:15 +0000 (13:52 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 5 Jun 2023 11:57:01 +0000 (13:57 +0200)
Follows the existing patterns, and makes life easier for bazel build
system.

clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h [deleted file]
clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h [deleted file]

diff --git a/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h b/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h
new file mode 100644 (file)
index 0000000..9b23b42
--- /dev/null
@@ -0,0 +1,2 @@
+#pragma once
+namespace std { class string {}; }
diff --git a/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h b/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h
new file mode 100644 (file)
index 0000000..2d7bb69
--- /dev/null
@@ -0,0 +1,4 @@
+#pragma once
+#include <string.h>
+
+namespace std { class vector {}; }
index 0f4c7a8f4ad1c69b8b2fb3cb65f2b1e12303b2c0..ed12600d96911958de3d047ed32e9a6a72fe427a 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy %s misc-include-cleaner %t -- -- -I%S/Inputs -isystem%S/system
+// RUN: %check_clang_tidy %s misc-include-cleaner %t -- -- -I%S/Inputs -isystem%S/Inputs/system
 #include "bar.h"
 // CHECK-FIXES: {{^}}#include "baz.h"{{$}}
 #include "foo.h"
diff --git a/clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h b/clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h
deleted file mode 100644 (file)
index 9b23b42..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#pragma once
-namespace std { class string {}; }
diff --git a/clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h b/clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h
deleted file mode 100644 (file)
index 2d7bb69..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#pragma once
-#include <string.h>
-
-namespace std { class vector {}; }