Author: jdevlieghere Date: Thu Oct 17 14:23:35 2019 New Revision: 375172 URL: http://llvm.org/viewvc/llvm-project?rev=375172&view=rev Log: [test] Add a .clang-format file for the shell test.
The API tests have a .clang-format file that disables formatting altogether. While this is needed for some tests, it also leads to inconsistency between test files. The shell tests suffer from a similar problem: a test with a source-file extension (.c, .cpp) will get formatted, potentially breaking up lines and leading to invalid RUN commands. Rather than completely disabling formatting here, I propose to not enforce a line limit instead. That way tests will be consistent, but you can still have long run commands (as is not uncommon in LLVM either) and use breakpoints with patters that extend beyond 80 cols. Differential revision: https://reviews.llvm.org/D69058 Added: lldb/trunk/test/Shell/.clang-format Added: lldb/trunk/test/Shell/.clang-format URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/Shell/.clang-format?rev=375172&view=auto ============================================================================== --- lldb/trunk/test/Shell/.clang-format (added) +++ lldb/trunk/test/Shell/.clang-format Thu Oct 17 14:23:35 2019 @@ -0,0 +1,3 @@ +BasedOnStyle: LLVM +# We don't want clang-format to introduce line breaks in RUN commands. +ColumnLimit: 999 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits