diff options
author | Daniel Jasper <djasper@google.com> | 2014-02-13 12:51:50 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-02-13 12:51:50 +0000 |
commit | ee107adb7daeb6195729e31b4743f87651f84dc7 (patch) | |
tree | 2eb845c1783a8f3d36903744744aab3b55e3db5a /clang/docs/tools/dump_format_style.py | |
parent | 07526fb4a05410b4af6810b4773a46f083b68cae (diff) | |
download | bcm5719-llvm-ee107adb7daeb6195729e31b4743f87651f84dc7.tar.gz bcm5719-llvm-ee107adb7daeb6195729e31b4743f87651f84dc7.zip |
clang-format: Improve documentation of DerivePointerBinding.
For reference: llvm.org/PR18690.
Also updated generated help page and page creation script.
llvm-svn: 201323
Diffstat (limited to 'clang/docs/tools/dump_format_style.py')
-rw-r--r-- | clang/docs/tools/dump_format_style.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/tools/dump_format_style.py b/clang/docs/tools/dump_format_style.py index 0c8ca6d610f..addda2abc2c 100644 --- 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,7 @@ 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']: + if not option.type in ['bool', 'unsigned', 'int', 'std::string']: if enums.has_key(option.type): option.enum = enums[option.type] else: |