This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Parse __ptr32/__ptr64 as a pointer qualifier
ClosedPublic

Authored by arichardson on Aug 28 2020, 4:36 AM.

Details

Summary

Before:
x = (foo *ptr32) * v;
MACRO(A *
ptr32 a);
x = (foo *ptr64) * v;
MACRO(A *
ptr64 a);

After:
x = (foo *ptr32)*v;
MACRO(A *
ptr32 a);
x = (foo *ptr64)*v;
MACRO(A *
ptr64 a);

Depends on D86721 (to apply cleanly)

Diff Detail

Event Timeline

arichardson created this revision.Aug 28 2020, 4:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2020, 4:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
arichardson requested review of this revision.Aug 28 2020, 4:36 AM

rebase and add one more testcase

This revision is now accepted and ready to land.Sep 4 2020, 7:53 AM