Before: void f() { MACRO(A * volatile a); }
After: void f() { MACRO(A *volatile a); }
Also check that the volatile and volatile__ aliases are handled.
Paths
| Differential D86708
[clang-format] Parse volatile as a pointer qualifier ClosedPublic Authored by arichardson on Aug 27 2020, 6:41 AM.
Details Summary Before: void f() { MACRO(A * volatile a); } Also check that the volatile and volatile__ aliases are handled.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 27 2020, 6:57 AM arichardson added a child revision: D86710: [clang-format] Parse restrict as a pointer qualifier.Aug 27 2020, 8:15 AM Closed by commit rG1908da2658fc: [clang-format] Parse volatile as a pointer qualifier (authored by arichardson). · Explain WhyAug 28 2020, 3:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 288571 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|