<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>auto const& a = ...; // bind left</div><div>void foo(auto const& p) {}</div><div><br></div><div>vs</div><div><br></div><div>auto &a = ...; // bind right</div><div>void foo(auto &p) {}</div><div><br></div><div>Is this configuration supported? I seem to have some luck with it using PointerBindsToType from clang 3.9 on <a href="http://clangformat.com/">http://clangformat.com/</a> but now it seems to be have removed. I can't recall correctly if I ever got it working.</div><div><br></div><div>Regardless thanks!</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Adamson, Benjamin<br><a href="mailto:adamson.benjamin@gmail.com" target="_blank">adamson.benjamin@gmail.com</a></div></div>
</div></div>