From 818da9bb299cad1a75e5e31dbd96dabb22f54cb8 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Thu, 9 Nov 2017 15:41:23 +0000 Subject: [clang-format] Sort using declarations by splitting on '::' Summary: This patch improves using declarations sorting. Reviewers: bkramer Reviewed By: bkramer Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D39786 llvm-svn: 317794 --- clang/docs/tools/dump_format_style.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/docs/tools') diff --git a/clang/docs/tools/dump_format_style.py b/clang/docs/tools/dump_format_style.py index e2571f46448..1ca050e062b 100755 --- a/clang/docs/tools/dump_format_style.py +++ b/clang/docs/tools/dump_format_style.py @@ -177,7 +177,8 @@ def read_options(header): for option in options: if not option.type in ['bool', 'unsigned', 'int', 'std::string', 'std::vector', - 'std::vector']: + 'std::vector', + 'std::vector']: if enums.has_key(option.type): option.enum = enums[option.type] elif nested_structs.has_key(option.type): -- cgit v1.2.3