[all-commits] [llvm/llvm-project] 10243d: [clang-format] Simplify use of StringRef::substr()...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Wed Feb 2 05:36:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10243d0dfd36b0fb912276b2686a038b952e03c8
      https://github.com/llvm/llvm-project/commit/10243d0dfd36b0fb912276b2686a038b952e03c8
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M clang/lib/Format/BreakableToken.cpp
    M clang/lib/Format/FormatTokenLexer.cpp

  Log Message:
  -----------
  [clang-format] Simplify use of StringRef::substr(). NFC.


  Commit: b3af2ef963b1c94ab40d940c5e2774a2ac9ec230
      https://github.com/llvm/llvm-project/commit/b3af2ef963b1c94ab40d940c5e2774a2ac9ec230
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

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

  Log Message:
  -----------
  [clang-format] Factor out loop variable. NFC.

* Break on the size of the used variable Content instead of Lines (even though both should have the same size).


  Commit: 630c736047a3191a5d3150bcc825064ab84e9fb5
      https://github.com/llvm/llvm-project/commit/630c736047a3191a5d3150bcc825064ab84e9fb5
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

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

  Log Message:
  -----------
  [clang-format] Elide unnecessary braces. NFC.


Compare: https://github.com/llvm/llvm-project/compare/29d1651d7ba5...630c736047a3


More information about the All-commits mailing list