]> granicus.if.org Git - clang/commit
[clang-format] Ignore case and stable sort using-declarations
authorKrasimir Georgiev <krasimir@google.com>
Fri, 22 Sep 2017 04:48:17 +0000 (04:48 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Fri, 22 Sep 2017 04:48:17 +0000 (04:48 +0000)
commitf87d7f14d48195ead20473bc44d24f9947916bd3
tree7b9db1569229de88acf4f4de28f203519a83ed74
parent2a1900ae5fffd7f1fddded6ce29869f01e8d174b
[clang-format] Ignore case and stable sort using-declarations

Summary:
This ignores case while sorting using-declarations, fixing a case where `_` would appear between lowercase and uppercase characters.
It also applies stable sort, so that replacements for the exact same using declarations are not generated.

Reviewers: klimek, alexfh

Reviewed By: alexfh

Subscribers: cfe-commits

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

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