This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Space between attribute closing parenthesis and qualified type colon.
ClosedPublic

Authored by curdeius on Jan 21 2022, 8:21 AM.

Diff Detail

Event Timeline

curdeius requested review of this revision.Jan 21 2022, 8:21 AM
curdeius created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 21 2022, 8:21 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Is there any case where we want not a space after such paren (except it is also a paren)?

if (Left.is(TT_AttributeParen))
  return Right.isNot(TT_attributeParen);

At least a semicolon as the attribute can be at the end of a declaration.
I don't know all possible contexts of attributes TBH.

MyDeveloperDay added a project: Restricted Project.Jan 22 2022, 3:43 PM
This revision is now accepted and ready to land.Jan 23 2022, 9:44 PM
owenpan accepted this revision.Jan 23 2022, 11:39 PM
MyDeveloperDay accepted this revision.Jan 24 2022, 12:22 AM