This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Detect amp type as TT_PointerOrReference in function annotations
Needs RevisionPublic

Authored by Uran198 on May 30 2018, 2:02 AM.

Details

Diff Detail

Repository
rC Clang

Event Timeline

Uran198 created this revision.May 30 2018, 2:02 AM
krasimir added inline comments.Jun 6 2018, 6:17 AM
lib/Format/TokenAnnotator.cpp
1566

I'd also check for volatile here, for example for (+ add it as test):

auto x() volatile& noexcept -> bool {}
1590

Sorry, I don't follow which of the added tests exercise which of the added cases. Could you please elaborate?

unittests/Format/FormatTest.cpp
6164

Do you have a real-world example of this kind of macro? I'd leave it off if not.

krasimir requested changes to this revision.Jun 7 2018, 2:30 AM
This revision now requires changes to proceed.Jun 7 2018, 2:30 AM