Before: x = (foo *[[clang::attr]]) * v;
After: x = (foo *[[clang::attr]])*v;
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D86721
[clang-format] Parse double-square attributes as pointer qualifiers ClosedPublic Authored by arichardson on Aug 27 2020, 8:47 AM.
Details Summary Before: x = (foo *[[clang::attr]]) * v;
Diff Detail
Event Timelinearichardson added a parent revision: D86716: [clang-format] Detect pointer qualifiers in cast expressions.Aug 27 2020, 8:47 AM arichardson added a child revision: D86775: [clang-format] Parse __ptr32/__ptr64 as a pointer qualifier.Aug 28 2020, 4:36 AM This revision is now accepted and ready to land.Sep 1 2020, 11:09 AM Closed by commit rGd70e05c9e36a: [clang-format] Parse double-square attributes as pointer qualifiers (authored by arichardson). · Explain WhySep 2 2020, 10:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 289118 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Can you also add a test case for an attribute with an argument list, e.g.,