summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools/dump_format_style.py
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-04-09 14:05:49 +0000
committerDaniel Jasper <djasper@google.com>2014-04-09 14:05:49 +0000
commitb55248278f1a74db0862a2604beadb72d76faf6f (patch)
treed4637da44d8a0606521f310ffbd56b4f7c066d5a /clang/docs/tools/dump_format_style.py
parent82185a20886c570224588bbb956a8de7d82f4030 (diff)
downloadbcm5719-llvm-b55248278f1a74db0862a2604beadb72d76faf6f.tar.gz
bcm5719-llvm-b55248278f1a74db0862a2604beadb72d76faf6f.zip
clang-format: Update flag documentation, and generation script.
llvm-svn: 205853
Diffstat (limited to 'clang/docs/tools/dump_format_style.py')
-rwxr-xr-x[-rw-r--r--]clang/docs/tools/dump_format_style.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/docs/tools/dump_format_style.py b/clang/docs/tools/dump_format_style.py
index addda2abc2c..66bad8bb4e7 100644..100755
--- a/clang/docs/tools/dump_format_style.py
+++ b/clang/docs/tools/dump_format_style.py
@@ -98,7 +98,7 @@ def read_options(header):
enum = Enum(name, comment)
elif line.endswith(';'):
state = State.InStruct
- field_type, field_name = re.match(r'([:\w]+)\s+(\w+);', line).groups()
+ field_type, field_name = re.match(r'([<>:\w]+)\s+(\w+);', line).groups()
option = Option(str(field_name), str(field_type), comment)
options.append(option)
else:
@@ -122,7 +122,8 @@ def read_options(header):
raise Exception('Not finished by the end of file')
for option in options:
- if not option.type in ['bool', 'unsigned', 'int', 'std::string']:
+ if not option.type in ['bool', 'unsigned', 'int', 'std::string',
+ 'std::vector<std::string>']:
if enums.has_key(option.type):
option.enum = enums[option.type]
else:
OpenPOWER on IntegriCloud