Index: clang/docs/tools/dump_format_style.py =================================================================== --- clang/docs/tools/dump_format_style.py +++ clang/docs/tools/dump_format_style.py @@ -267,6 +267,9 @@ name = re.sub(r'struct\s+(\w+)\s*\{', '\\1', line) nested_struct = NestedStruct(name, comment) elif line.endswith(';'): + prefix = '// ' + if line.startswith(prefix): + line = line[len(prefix):] state = State.InStruct field_type, field_name = re.match(r'([<>:\w(,\s)]+)\s+(\w+);', line).groups() Index: clang/include/clang/Format/Format.h =================================================================== --- clang/include/clang/Format/Format.h +++ clang/include/clang/Format/Format.h @@ -395,6 +395,11 @@ /// \version 9 bool AllowAllArgumentsOnNextLine; + /// This option is **deprecated**. See ``NextLine`` of + /// ``PackConstructorInitializers``. + /// \version 9 + // bool AllowAllConstructorInitializersOnNextLine; + /// If the function declaration doesn't fit on a line, /// allow putting all parameters of a function declaration onto /// the next line even if ``BinPackParameters`` is ``false``. @@ -1878,6 +1883,11 @@ /// \version 5 bool CompactNamespaces; + /// This option is **deprecated**. See ``CurrentLine`` of + /// ``PackConstructorInitializers``. + /// \version 3.7 + // bool ConstructorInitializerAllOnOneLineOrOnePerLine; + /// The number of characters to use for indentation of constructor /// initializer lists as well as inheritance lists. /// \version 3.7