1b91a236eSAaron Ballman // RUN: %run_clang_tidy --help 2b91a236eSAaron Ballman // RUN: rm -rf %t 3b91a236eSAaron Ballman // RUN: mkdir %t 4b91a236eSAaron Ballman // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json 5b91a236eSAaron Ballman // RUN: echo "Checks: '-*,modernize-use-auto'" > %t/.clang-tidy 6b91a236eSAaron Ballman // RUN: echo "WarningsAsErrors: '*'" >> %t/.clang-tidy 7b91a236eSAaron Ballman // RUN: echo "CheckOptions:" >> %t/.clang-tidy 8*e8a3ddafSNathan James // RUN: echo " modernize-use-auto.MinTypeNameLength: '0'" >> %t/.clang-tidy 9b91a236eSAaron Ballman // RUN: cp "%s" "%t/test.cpp" 10b91a236eSAaron Ballman // RUN: cd "%t" 11b91a236eSAaron Ballman // RUN: not %run_clang_tidy "test.cpp" 12b91a236eSAaron Ballman main()13b91a236eSAaron Ballmanint main() 14b91a236eSAaron Ballman { 15b91a236eSAaron Ballman int* x = new int(); 16b91a236eSAaron Ballman delete x; 17b91a236eSAaron Ballman } 18