[all-commits] [llvm/llvm-project] 57b95a: [clang-format] Add better support for co-routinues
MyDeveloperDay via All-commits
all-commits at lists.llvm.org
Thu Dec 2 00:13:14 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 57b95aed2a04f00dc84c4c4926c506528081196d
https://github.com/llvm/llvm-project/commit/57b95aed2a04f00dc84c4c4926c506528081196d
Author: mydeveloperday <mydeveloperday at gmail.com>
Date: 2021-12-02 (Thu, 02 Dec 2021)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Format/TokenAnnotator.cpp
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Add better support for co-routinues
Responding to a Discord call to help {D113977} and heavily inspired by the unlanded {D34225} add some support to help coroutinues from not being formatted from
```for co_await(auto elt : seq)```
to
```
for
co_await(auto elt : seq)
```
Because of the dominance of clang-format in the C++ community, I don't think we should make it the blocker that prevents users from embracing the newer parts of the standard because we butcher the layout of some of the new constucts.
Reviewed By: HazardyKnusperkeks, Quuxplusone, ChuanqiXu
Differential Revision: https://reviews.llvm.org/D114859
More information about the All-commits
mailing list