[all-commits] [llvm/llvm-project] e75a34: [clang-format] Use std::iota and reserve. NFC.
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Tue Feb 1 05:26:04 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e75a3428a92016b2689d5efb7ac95ae91761949d
https://github.com/llvm/llvm-project/commit/e75a3428a92016b2689d5efb7ac95ae91761949d
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
M clang/lib/Format/Format.cpp
Log Message:
-----------
[clang-format] Use std::iota and reserve. NFC.
This way we have at most 1 allocation even if the number of includes is greater than the on-stack size of the small vector.
More information about the All-commits
mailing list