mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 16:36:07 +00:00

In D128337, The spelling of CheckOptions was updated to support a more natural dictionary syntax. This patch is just updating all test files to use the new syntax. Reviewed By: PiotrZSL Differential Revision: https://reviews.llvm.org/D130209
18 lines
599 B
C++
18 lines
599 B
C++
// RUN: %run_clang_tidy --help
|
|
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
|
|
// RUN: echo "Checks: '-*,modernize-use-auto'" > %t/.clang-tidy
|
|
// RUN: echo "WarningsAsErrors: '*'" >> %t/.clang-tidy
|
|
// RUN: echo "CheckOptions:" >> %t/.clang-tidy
|
|
// RUN: echo " modernize-use-auto.MinTypeNameLength: '0'" >> %t/.clang-tidy
|
|
// RUN: cp "%s" "%t/test.cpp"
|
|
// RUN: cd "%t"
|
|
// RUN: not %run_clang_tidy "test.cpp"
|
|
|
|
int main()
|
|
{
|
|
int* x = new int();
|
|
delete x;
|
|
}
|