[all-commits] [llvm/llvm-project] 617277: [clang-format][NFC] Moved configuration parsing te...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Tue Nov 15 22:02:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 617277e7cbdaea6881425c7a1a5b1cf4b1d4b507
      https://github.com/llvm/llvm-project/commit/617277e7cbdaea6881425c7a1a5b1cf4b1d4b507
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M clang/unittests/Format/CMakeLists.txt
    A clang/unittests/Format/ConfigParseTest.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format][NFC] Moved configuration parsing tests in own file

I want to reduce the size of ForatTest.cpp with its still wopping 25k
lines it is a burden on the compiler and editor (mine is clangd
powered).

This are tests which are really serving a different purpose than
formatting.

I've copied the code and made the following changes:
- Dropped the ; at the end of some macros, all macro "invocations"
  already have their own ;.
- Dropped the _F, we don't need a fxiture here.

Differential Revisison: https://reviews.llvm.org/D137823


  Commit: 40c1476e3ae24766426802a61b15f374285c443b
      https://github.com/llvm/llvm-project/commit/40c1476e3ae24766426802a61b15f374285c443b
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h

  Log Message:
  -----------
  [clang-format][NFC] Improve documentation on ReflowComments

Fixes https://github.com/llvm/llvm-project/issues/58403

Differential Revision: https://reviews.llvm.org/D137865


  Commit: cb01befda5479b0368d40582f046eec44fda3cec
      https://github.com/llvm/llvm-project/commit/cb01befda5479b0368d40582f046eec44fda3cec
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/include/clang/Format/Format.h

  Log Message:
  -----------
  [clang-format][NFC] Improve documentation of FixNamespaceComments

Fixes https://github.com/llvm/llvm-project/issues/55162


Compare: https://github.com/llvm/llvm-project/compare/409eaff5dd55...cb01befda547


More information about the All-commits mailing list