[all-commits] [llvm/llvm-project] 2d8e90: [clang-format][NFC] Rename Left to OpeningParen...

Björn Schäpers via All-commits all-commits at lists.llvm.org
Mon Mar 14 04:45:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d8e907016ef323ed1a9e2e70c558eb9c3568b06
      https://github.com/llvm/llvm-project/commit/2d8e907016ef323ed1a9e2e70c558eb9c3568b06
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

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

  Log Message:
  -----------
  [clang-format][NFC] Rename Left to OpeningParen...

in TokenAnnotator::parseParens(). Left is misleading since we have a
loop and Left is not adjusted.

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


  Commit: acd17a2be81a33abf4350e31ae1747dcb0f12332
      https://github.com/llvm/llvm-project/commit/acd17a2be81a33abf4350e31ae1747dcb0f12332
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Fix crash on invalid requires expression

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

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


  Commit: b7494a1d72c16a4d1f9cc8d4b3eba36934c35664
      https://github.com/llvm/llvm-project/commit/b7494a1d72c16a4d1f9cc8d4b3eba36934c35664
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

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

  Log Message:
  -----------
  [clang-format][NFC] Left renamed to OpeningBrace...

in TokenAnnotator::parseBrace. Left is misleading, because we have a
loop and Left does not move.

Also return early.

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


  Commit: 35abbf166d4ad13e4a89095307bb6e4b2e96e0b3
      https://github.com/llvm/llvm-project/commit/35abbf166d4ad13e4a89095307bb6e4b2e96e0b3
  Author: Björn Schäpers <bjoern at hazardy.de>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

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

  Log Message:
  -----------
  [clang-format] Fix crash on asm block with label

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

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


Compare: https://github.com/llvm/llvm-project/compare/9879c555f210...35abbf166d4a


More information about the All-commits mailing list