[all-commits] [llvm/llvm-project] 11b879: [clang-format][NFC] Fix comment grammer in Continu...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Mon Oct 24 12:28:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11b8795bb94c3606d8eed6f45bc3e4fbb0683c14
      https://github.com/llvm/llvm-project/commit/11b8795bb94c3606d8eed6f45bc3e4fbb0683c14
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp

  Log Message:
  -----------
  [clang-format][NFC] Fix comment grammer in ContinuationIndenter

Now all comments (for which id makes sense) end with a punctuation.

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


  Commit: c5755f44f0cfcd90aa130497eb114f94182ebc69
      https://github.com/llvm/llvm-project/commit/c5755f44f0cfcd90aa130497eb114f94182ebc69
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

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

  Log Message:
  -----------
  [clang-format] Handle unions like structs and classes

There is no reason why unions should be handled differently, I think
they are just forgotten since they are not used that often.

No test case added, since that would be complicated to produce.

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


  Commit: 006bf8d817704eb8addd95d894152a6199dc0718
      https://github.com/llvm/llvm-project/commit/006bf8d817704eb8addd95d894152a6199dc0718
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

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

  Log Message:
  -----------
  [clang-format][NFC] Handle language specific stuff at the top...

... of TokenAnnotator::splitPenalty. That is in my eyes a bit clearer
in the workflow.

As a drive-by introduce (but not adapt anywhere else) isProto().

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


Compare: https://github.com/llvm/llvm-project/compare/440005b3c353...006bf8d81770


More information about the All-commits mailing list