If there is a typeish token before the requires, it can't be a requires expression.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang/lib/Format/UnwrappedLineParser.cpp | ||
---|---|---|
3185–3188 | Didn't want to duplicate the call. |
Paths
| Differential D128496
[clang-format] Further improve requires clause detection ClosedPublic Authored by HazardyKnusperkeks on Jun 23 2022, 11:11 PM.
Details Summary If there is a typeish token before the requires, it can't be a requires expression.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 24 2022, 1:16 AM HazardyKnusperkeks marked 4 inline comments as done. HazardyKnusperkeks added inline comments.
Closed by commit rGb3aeca3962bb: [clang-format] Further improve requires clause detection (authored by HazardyKnusperkeks). · Explain WhyJun 24 2022, 7:43 PM This revision was automatically updated to reflect the committed changes. HazardyKnusperkeks marked an inline comment as done.
Revision Contents
Diff 439630 clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
|
It's harder to understand with the default case at the top without a break. See below.