Follow on from D78879: [clang-format] [PR45357] Fix issue found with operator spacing to handle the more obscure to prevent spaces between operators
operator void *&(); operator void *&&(); operator void &*(); operator void &&*();
Paths
| Differential D79201
[clang-format] : Fix additional pointer alignment for overloaded operators ClosedPublic Authored by MyDeveloperDay on Apr 30 2020, 1:32 PM.
Details Summary Follow on from D78879: [clang-format] [PR45357] Fix issue found with operator spacing to handle the more obscure to prevent spaces between operators operator void *&(); operator void *&&(); operator void &*(); operator void &&*();
Diff Detail
Event TimelineComment Actions Looks OK but covers a lot of cases that can't happen, we should probably not test those at least :-)
This revision now requires changes to proceed.May 3 2020, 11:10 PM This revision is now accepted and ready to land.May 12 2020, 12:31 AM Closed by commit rGc82243d0675b: [clang-format] : Fix additional pointer alignment for overloaded operators (authored by MyDeveloperDay). · Explain WhyMay 13 2020, 10:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 263785 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Maybe left should only be star and right should be any?
T &* isn't a thing as far as I know, there are no pointers to references.
T && &, T & && etc don't occur as far as I know (and removing the space would seem dubious!)