Skip to content

Commit ac614ac

Browse files
committed
[NFC][clangd][test] add clang-tidy config to ensure test cases sandbox
Under previous test setup, the test result will be influenced by clang-tidy file in parent folder (between llvm-projects root and build folder). It is inconventient and leads some confusion. This PR wants to ensure sandbox to avoid outside's clang-tidy influenece test result.
1 parent bc0c4db commit ac614ac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
InheritParentConfig: false

clang-tools-extra/clangd/test/system-include-extractor.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
# RUN: echo 'printf "End of search list.\r\n" >&2' >> %t.dir/bin/my_driver.sh
3333
# RUN: chmod +x %t.dir/bin/my_driver.sh
3434

35+
# Create fake clang-tidy config to ensure sandbox
36+
# RUN: echo 'InheritParentConfig: false' >> %t.dir/.clang-tidy
37+
3538
# Create header files my/dir/a.h and my/dir2/b.h
3639
# RUN: mkdir -p %t.dir/my/dir
3740
# RUN: touch %t.dir/my/dir/a.h

0 commit comments

Comments
 (0)