]> granicus.if.org Git - clang/commit
[clang-format] Sort using-declarations case sensitively with a special case for '_'
authorKrasimir Georgiev <krasimir@google.com>
Fri, 3 Nov 2017 14:38:07 +0000 (14:38 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Fri, 3 Nov 2017 14:38:07 +0000 (14:38 +0000)
commit65464028eeba52041750efe82a35567dc77b3453
treec460510cb345d77312bf63ab664ad87f80910f03
parent16962ce7c214f12f7362c41bfbe79689bc07ea2f
[clang-format] Sort using-declarations case sensitively with a special case for '_'

Summary:
This makes clang-format sort using declarations case-sensitive with the
exception that '_' comes just before 'A'. This is better than the current case
insensitive version, because it groups uppercase names in the same namespace
together.

Reviewers: bkramer

Reviewed By: bkramer

Subscribers: cfe-commits, klimek

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

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