summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools/dump_format_style.py
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2017-11-09 15:41:23 +0000
committerKrasimir Georgiev <krasimir@google.com>2017-11-09 15:41:23 +0000
commit818da9bb299cad1a75e5e31dbd96dabb22f54cb8 (patch)
tree1a7c9a1c5b4372a8532403a04a50f554432d27ab /clang/docs/tools/dump_format_style.py
parent1696bb65233cdbef0a1138175cd540fc1b86e540 (diff)
downloadbcm5719-llvm-818da9bb299cad1a75e5e31dbd96dabb22f54cb8.tar.gz
bcm5719-llvm-818da9bb299cad1a75e5e31dbd96dabb22f54cb8.zip
[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
Diffstat (limited to 'clang/docs/tools/dump_format_style.py')
-rwxr-xr-xclang/docs/tools/dump_format_style.py3
1 files changed, 2 insertions, 1 deletions
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::string>',
- 'std::vector<IncludeCategory>']:
+ 'std::vector<IncludeCategory>',
+ 'std::vector<RawStringFormat>']:
if enums.has_key(option.type):
option.enum = enums[option.type]
elif nested_structs.has_key(option.type):
OpenPOWER on IntegriCloud