[all-commits] [llvm/llvm-project] a0f6c6: [test] Add a .clang-format file for the shell test.

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Oct 17 14:22:26 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a0f6c6434cc4fa98c83e57c9fb6608fb3248dc48
      https://github.com/llvm/llvm-project/commit/a0f6c6434cc4fa98c83e57c9fb6608fb3248dc48
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2019-10-17 (Thu, 17 Oct 2019)

  Changed paths:
    A lldb/test/Shell/.clang-format

  Log Message:
  -----------
  [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

llvm-svn: 375172




More information about the All-commits mailing list