[PATCH] D114859: [clang-format] Add better support for co-routinues
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 1 02:57:40 PST 2021
MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: curdeius, HazardyKnusperkeks, Quuxplusone, ChuanqiXu, EricWF.
MyDeveloperDay added projects: clang, clang-format.
MyDeveloperDay requested review of this revision.
Responding to a Discord call to help D113977: [Coroutine] Warn deprecated 'std::experimental::coro' uses <https://reviews.llvm.org/D113977> and heavily inspired by the unlanded D34225: [clang-format] Teach clang-format how to handle C++ coroutines <https://reviews.llvm.org/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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114859
Files:
clang/docs/ReleaseNotes.rst
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114859.390967.patch
Type: text/x-patch
Size: 3496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211201/46c550fd/attachment-0001.bin>
More information about the cfe-commits
mailing list