This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Set requires expression params as not an expression
ClosedPublic

Authored by rymiel on Dec 19 2022, 11:36 AM.

Details

Summary

Previously, the parens of a requires expression's "parameters" were not
explicitly set, meaning they ended up as whatever the outer scope was.
This is a problem in some cases though, since the process of determining
star/amp checks if the token is inside of an expression context

This patch always makes sure the context between those parens are always
set to not be an expression

Fixes https://github.com/llvm/llvm-project/issues/59600

Diff Detail

Event Timeline

rymiel created this revision.Dec 19 2022, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 11:36 AM
rymiel requested review of this revision.Dec 19 2022, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2022, 11:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rymiel added a project: Restricted Project.Dec 19 2022, 11:37 AM
rymiel updated this revision to Diff 484040.Dec 19 2022, 12:41 PM

Small spacing typo

This revision is now accepted and ready to land.Dec 19 2022, 1:24 PM
owenpan accepted this revision.Dec 19 2022, 1:51 PM
This revision was landed with ongoing or failed builds.Dec 22 2022, 4:23 PM
This revision was automatically updated to reflect the committed changes.