[clang-tools-extra] fc4a8bf - [clang-tidy] Move the misc system header dir to Inputs subdir, NFC.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 5 04:57:12 PDT 2023


Author: Haojian Wu
Date: 2023-06-05T13:57:01+02:00
New Revision: fc4a8bf7da7d3837d371fda24d3f2c0f9ef54a5b

URL: https://github.com/llvm/llvm-project/commit/fc4a8bf7da7d3837d371fda24d3f2c0f9ef54a5b
DIFF: https://github.com/llvm/llvm-project/commit/fc4a8bf7da7d3837d371fda24d3f2c0f9ef54a5b.diff

LOG: [clang-tidy] Move the misc system header dir to Inputs subdir, NFC.

Follows the existing patterns, and makes life easier for bazel build
system.

Added: 
    clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h
    clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h

Modified: 
    clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp

Removed: 
    clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h
    clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h


################################################################################
diff  --git a/clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h b/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h
similarity index 100%
rename from clang-tools-extra/test/clang-tidy/checkers/misc/system/string.h
rename to clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/string.h

diff  --git a/clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h b/clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h
similarity index 100%
rename from clang-tools-extra/test/clang-tidy/checkers/misc/system/vector.h
rename to clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/system/vector.h

diff  --git a/clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp b/clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp
index 0f4c7a8f4ad1c..ed12600d96911 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp
@@ -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"


        


More information about the cfe-commits mailing list