[cfe-dev] clang-format pointer alignment question
benjamin adamson via cfe-dev
cfe-dev at lists.llvm.org
Wed Feb 28 17:36:22 PST 2018
Hi,
I find myself failing to figure out how to configure clang-format to align
pointers/references to the right when no const/volatile modifier is
involved, but align it to the left when no CV is involved.
auto const& a = ...; // bind left
void foo(auto const& p) {}
vs
auto &a = ...; // bind right
void foo(auto &p) {}
Is this configuration supported? I seem to have some luck with it using
PointerBindsToType from clang 3.9 on http://clangformat.com/ but now it
seems to be have removed. I can't recall correctly if I ever got it working.
Regardless thanks!
--
Adamson, Benjamin
adamson.benjamin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180228/df317ad6/attachment.html>
More information about the cfe-dev
mailing list