[PATCH] D75364: [clang-format] Handle macros in function params and return value
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 4 10:04:37 PDT 2020
MyDeveloperDay added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:313
+ // for example:
+ // void f(volatile ElfW(Addr)* addr = nullptr);
+ if (HasStarToken) {
----------------
I assume it could be almost anything?
void f(volatile ElfW(Addr)& addr);
void f(volatile ElfW(Addr)&& addr);
void f(volatile ElfW(Addr) const & addr);
void f(volatile ElfW(Addr,foo)* addr);
void f(volatile ElfW(Addr,ElfW(Addr) *foo)* addr);
? you seem to handle only the * case
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75364/new/
https://reviews.llvm.org/D75364
More information about the cfe-commits
mailing list