[Lldb-commits] [lldb] r375172 - [test] Add a .clang-format file for the shell test.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 17 14:23:35 PDT 2019


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




More information about the lldb-commits mailing list