[all-commits] [llvm/llvm-project] 663360: [clang-format] Address fixme

Björn Schäpers via All-commits all-commits at lists.llvm.org
Tue Nov 9 12:52:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66336056911ec1377837ebfe323814521f78d367
      https://github.com/llvm/llvm-project/commit/66336056911ec1377837ebfe323814521f78d367
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.h
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/UnwrappedLineParser.h

  Log Message:
  -----------
  [clang-format] Address fixme

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


  Commit: 6facafe7da59eb02e8c1519670b503efda2f4b58
      https://github.com/llvm/llvm-project/commit/6facafe7da59eb02e8c1519670b503efda2f4b58
  Author: C. Rayroud <rayroudc at gmail.com>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M clang/docs/ClangFormatStyleOptions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Format/Format.h
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Refactor SpaceBeforeParens to add options

The coding style of some projects requires to have more control on space
before opening parentheses.
The goal is to add the support of clang-format to more projects.
For example adding a space only for function definitions or
declarations.
This revision adds SpaceBeforeParensOptions to configure each option
independently from one another.

Differentiel Revision: https://reviews.llvm.org/D110833


Compare: https://github.com/llvm/llvm-project/compare/7f92a1a84b96...6facafe7da59


More information about the All-commits mailing list