[all-commits] [llvm/llvm-project] 545317: [clang-format] Use ranged for loops. NFC.
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Tue Feb 1 05:11:10 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 545317cb8eb96947ae20b432525f5667f816df49
https://github.com/llvm/llvm-project/commit/545317cb8eb96947ae20b432525f5667f816df49
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
M clang/lib/Format/ContinuationIndenter.cpp
M clang/lib/Format/Format.cpp
M clang/lib/Format/NamespaceEndCommentsFixer.cpp
M clang/lib/Format/TokenAnalyzer.cpp
M clang/lib/Format/TokenAnnotator.h
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/lib/Format/UsingDeclarationsSorter.cpp
M clang/lib/Format/WhitespaceManager.cpp
Log Message:
-----------
[clang-format] Use ranged for loops. NFC.
Commit: 34b4f00686ffa030fb0fed3bdd24b5e8588dae89
https://github.com/llvm/llvm-project/commit/34b4f00686ffa030fb0fed3bdd24b5e8588dae89
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
M clang/lib/Format/WhitespaceManager.cpp
Log Message:
-----------
[clang-format] De-pessimize appending newlines. NFC.
* Avoid repeatedly calling std::string::append(char) in a loop.
* Reserve before calling std::string::append(const char *) in a loop.
Compare: https://github.com/llvm/llvm-project/compare/8b7e99c41d61...34b4f00686ff
More information about the All-commits
mailing list