This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Require space before noexcept qualifier
ClosedPublic

Authored by rymiel on Dec 29 2022, 1:53 PM.

Details

Summary

This brings the noexcept qualifier more visually in line with the other
keyword qualifiers, such as "final" and "override".

Originally reported as https://github.com/llvm/llvm-project/issues/44542,
it was closed as "working by design" and reinforcing tests were added
as part of a218706cba90248be0c60bd6a8f10dbcf0270955. The exact spacing
depended on the PointerAlignment option, where the default value of
Right would leave no space.

This patch seeks to change this behaviour, regardless of the configured
PointerAlignment option (matching the previous behaviour of the Left
option).

Closes https://github.com/llvm/llvm-project/issues/59729

Diff Detail

Event Timeline

rymiel created this revision.Dec 29 2022, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2022, 1:53 PM
rymiel requested review of this revision.Dec 29 2022, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2022, 1:53 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rymiel added a project: Restricted Project.Dec 29 2022, 1:54 PM

But please wait for at least one of the others.

This revision is now accepted and ready to land.Dec 31 2022, 12:42 PM
owenpan accepted this revision.Jan 2 2023, 1:25 AM
MyDeveloperDay accepted this revision.Jan 3 2023, 2:50 AM

Nice! Thank you for another great patch!

This revision was automatically updated to reflect the committed changes.