]> granicus.if.org Git - clang/commit
[clang-format] let PointerAlignment dictate spacing of function ref qualifiers
authorJacob Bandes-Storch <jacob@bandes-stor.ch>
Thu, 10 Aug 2017 01:30:22 +0000 (01:30 +0000)
committerJacob Bandes-Storch <jacob@bandes-stor.ch>
Thu, 10 Aug 2017 01:30:22 +0000 (01:30 +0000)
commita84910e5897a9e331f9dcdea4e85b902d544b18e
tree81d0df2a46b7c39e310833496df8e1e4576ee1ea
parentecdef4b2066533fd9e1250aa670a858a537e8da5
[clang-format] let PointerAlignment dictate spacing of function ref qualifiers

Summary: The original changes for ref qualifiers in rL272537 and rL272548 allowed function const+ref qualifier spacing to diverge from the spacing used for variables. It seems more consistent for `T const& x;` to match `void foo() const&;`.

Reviewers: djasper

Reviewed By: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D34324

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp