[all-commits] [llvm/llvm-project] 7ebb00: [clang-format][NFC] Simplify if in ContinuationInd...
Björn Schäpers via All-commits
all-commits at lists.llvm.org
Tue Feb 22 13:09:21 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ebb00a22e7ec78a3090ecc15f59d247e0f390db
https://github.com/llvm/llvm-project/commit/7ebb00a22e7ec78a3090ecc15f59d247e0f390db
Author: Björn Schäpers <bjoern at hazardy.de>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M clang/lib/Format/ContinuationIndenter.cpp
Log Message:
-----------
[clang-format][NFC] Simplify if in ContinuationIndenter::addTokenOCL
Setting a boolean within an if and only using it in the very next if is
a bit confusing. Merge it into one if.
Differential Revision: https://reviews.llvm.org/D120237
Commit: 923c3755ea809275d6c06caf547525452568eb5f
https://github.com/llvm/llvm-project/commit/923c3755ea809275d6c06caf547525452568eb5f
Author: Björn Schäpers <bjoern at hazardy.de>
Date: 2022-02-22 (Tue, 22 Feb 2022)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Don't break semi after requires clause ...
..regardless of the chosen style.
Fixes https://github.com/llvm/llvm-project/issues/53818
Differential Revision: https://reviews.llvm.org/D120278
Compare: https://github.com/llvm/llvm-project/compare/9b1ae9f67fb3...923c3755ea80
More information about the All-commits
mailing list