Skip to content

Commit c89a3d7

Browse files
committed
[lldb][NFC] Format 'type' commands in Options.td
llvm-svn: 366426
1 parent 0cadf7b commit c89a3d7

File tree

1 file changed

+98
-46
lines changed

1 file changed

+98
-46
lines changed

lldb/source/Commands/Options.td

+98-46
Original file line numberDiff line numberDiff line change
@@ -139,82 +139,134 @@ let Command = "thread plan list" in {
139139
}
140140

141141
let Command = "type summary add" in {
142-
def type_summary_add_category : Option<"category", "w">, Arg<"Name">, Desc<"Add this to the given category instead of the default one.">;
143-
def type_summary_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, Desc<"If true, cascade through typedef chains.">;
144-
def type_summary_add_no_value : Option<"no-value", "v">, Desc<"Don't show the value, just show the summary, for this type.">;
145-
def type_summary_add_skip_pointers : Option<"skip-pointers", "p">, Desc<"Don't use this format for pointers-to-type objects.">;
146-
def type_summary_add_skip_references : Option<"skip-references", "r">, Desc<"Don't use this format for references-to-type objects.">;
147-
def type_summary_add_regex : Option<"regex", "x">, Desc<"Type names are actually regular expressions.">;
148-
def type_summary_add_inline_children : Option<"inline-children", "c">, Group<1>, Required, Desc<"If true, inline all child values into summary string.">;
149-
def type_summary_add_omit_names : Option<"omit-names", "O">, Group<1>, Desc<"If true, omit value names in the summary display.">;
150-
def type_summary_add_summary_string : Option<"summary-string", "s">, Group<2>, Arg<"SummaryString">, Required, Desc<"Summary string used to display text and object contents.">;
151-
def type_summary_add_python_script : Option<"python-script", "o">, Group<3>, Arg<"PythonScript">, Desc<"Give a one-liner Python script as part of the command.">;
152-
def type_summary_add_python_function : Option<"python-function", "F">, Group<3>, Arg<"PythonFunction">, Desc<"Give the name of a Python function to use for this type.">;
153-
def type_summary_add_input_python : Option<"input-python", "P">, Group<3>, Desc<"Input Python code to use for this type manually.">;
154-
def type_summary_add_expand : Option<"expand", "e">, Groups<[2,3]>, Desc<"Expand aggregate data types to show children on separate lines.">;
155-
def type_summary_add_hide_empty : Option<"hide-empty", "h">, Groups<[2,3]>, Desc<"Do not expand aggregate data types with no children.">;
156-
def type_summary_add_name : Option<"name", "n">, Groups<[2,3]>, Arg<"Name">, Desc<"A name for this summary string.">;
142+
def type_summary_add_category : Option<"category", "w">, Arg<"Name">,
143+
Desc<"Add this to the given category instead of the default one.">;
144+
def type_summary_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
145+
Desc<"If true, cascade through typedef chains.">;
146+
def type_summary_add_no_value : Option<"no-value", "v">,
147+
Desc<"Don't show the value, just show the summary, for this type.">;
148+
def type_summary_add_skip_pointers : Option<"skip-pointers", "p">,
149+
Desc<"Don't use this format for pointers-to-type objects.">;
150+
def type_summary_add_skip_references : Option<"skip-references", "r">,
151+
Desc<"Don't use this format for references-to-type objects.">;
152+
def type_summary_add_regex : Option<"regex", "x">,
153+
Desc<"Type names are actually regular expressions.">;
154+
def type_summary_add_inline_children : Option<"inline-children", "c">,
155+
Group<1>, Required,
156+
Desc<"If true, inline all child values into summary string.">;
157+
def type_summary_add_omit_names : Option<"omit-names", "O">, Group<1>,
158+
Desc<"If true, omit value names in the summary display.">;
159+
def type_summary_add_summary_string : Option<"summary-string", "s">, Group<2>,
160+
Arg<"SummaryString">, Required,
161+
Desc<"Summary string used to display text and object contents.">;
162+
def type_summary_add_python_script : Option<"python-script", "o">, Group<3>,
163+
Arg<"PythonScript">,
164+
Desc<"Give a one-liner Python script as part of the command.">;
165+
def type_summary_add_python_function : Option<"python-function", "F">,
166+
Group<3>, Arg<"PythonFunction">,
167+
Desc<"Give the name of a Python function to use for this type.">;
168+
def type_summary_add_input_python : Option<"input-python", "P">, Group<3>,
169+
Desc<"Input Python code to use for this type manually.">;
170+
def type_summary_add_expand : Option<"expand", "e">, Groups<[2,3]>,
171+
Desc<"Expand aggregate data types to show children on separate lines.">;
172+
def type_summary_add_hide_empty : Option<"hide-empty", "h">, Groups<[2,3]>,
173+
Desc<"Do not expand aggregate data types with no children.">;
174+
def type_summary_add_name : Option<"name", "n">, Groups<[2,3]>, Arg<"Name">,
175+
Desc<"A name for this summary string.">;
157176
}
158177

159178
let Command = "type synth add" in {
160-
def type_synth_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, Desc<"If true, cascade through typedef chains.">;
161-
def type_synth_add_skip_pointers : Option<"skip-pointers", "p">, Desc<"Don't use this format for pointers-to-type objects.">;
162-
def type_synth_add_skip_references : Option<"skip-references", "r">, Desc<"Don't use this format for references-to-type objects.">;
163-
def type_synth_add_category : Option<"category", "w">, Arg<"Name">, Desc<"Add this to the given category instead of the default one.">;
164-
def type_synth_add_python_class : Option<"python-class", "l">, Group<2>, Arg<"PythonClass">, Desc<"Use this Python class to produce synthetic children.">;
165-
def type_synth_add_input_python : Option<"input-python", "P">, Group<3>, Desc<"Type Python code to generate a class that provides synthetic children.">;
166-
def type_synth_add_regex : Option<"regex", "x">, Desc<"Type names are actually regular expressions.">;
179+
def type_synth_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
180+
Desc<"If true, cascade through typedef chains.">;
181+
def type_synth_add_skip_pointers : Option<"skip-pointers", "p">,
182+
Desc<"Don't use this format for pointers-to-type objects.">;
183+
def type_synth_add_skip_references : Option<"skip-references", "r">,
184+
Desc<"Don't use this format for references-to-type objects.">;
185+
def type_synth_add_category : Option<"category", "w">, Arg<"Name">,
186+
Desc<"Add this to the given category instead of the default one.">;
187+
def type_synth_add_python_class : Option<"python-class", "l">, Group<2>,
188+
Arg<"PythonClass">,
189+
Desc<"Use this Python class to produce synthetic children.">;
190+
def type_synth_add_input_python : Option<"input-python", "P">, Group<3>,
191+
Desc<"Type Python code to generate a class that provides synthetic "
192+
"children.">;
193+
def type_synth_add_regex : Option<"regex", "x">,
194+
Desc<"Type names are actually regular expressions.">;
167195
}
168196

169197
let Command = "type format add" in {
170-
def type_format_add_category : Option<"category", "w">, Arg<"Name">, Desc<"Add this to the given category instead of the default one.">;
171-
def type_format_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, Desc<"If true, cascade through typedef chains.">;
172-
def type_format_add_skip_pointers : Option<"skip-pointers", "p">, Desc<"Don't use this format for pointers-to-type objects.">;
173-
def type_format_add_skip_references : Option<"skip-references", "r">, Desc<"Don't use this format for references-to-type objects.">;
174-
def type_format_add_regex : Option<"regex", "x">, Desc<"Type names are actually regular expressions.">;
175-
def type_format_add_type : Option<"type", "t">, Group<2>, Arg<"Name">, Desc<"Format variables as if they were of this type.">;
198+
def type_format_add_category : Option<"category", "w">, Arg<"Name">,
199+
Desc<"Add this to the given category instead of the default one.">;
200+
def type_format_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
201+
Desc<"If true, cascade through typedef chains.">;
202+
def type_format_add_skip_pointers : Option<"skip-pointers", "p">,
203+
Desc<"Don't use this format for pointers-to-type objects.">;
204+
def type_format_add_skip_references : Option<"skip-references", "r">,
205+
Desc<"Don't use this format for references-to-type objects.">;
206+
def type_format_add_regex : Option<"regex", "x">,
207+
Desc<"Type names are actually regular expressions.">;
208+
def type_format_add_type : Option<"type", "t">, Group<2>, Arg<"Name">,
209+
Desc<"Format variables as if they were of this type.">;
176210
}
177211

178212
let Command = "type formatter delete" in {
179-
def type_formatter_delete_all : Option<"all", "a">, Group<1>, Desc<"Delete from every category.">;
180-
def type_formatter_delete_category : Option<"category", "w">, Group<2>, Arg<"Name">, Desc<"Delete from given category.">;
181-
def type_formatter_delete_language : Option<"language", "l">, Group<3>, Arg<"Language">, Desc<"Delete from given language's category.">;
213+
def type_formatter_delete_all : Option<"all", "a">, Group<1>,
214+
Desc<"Delete from every category.">;
215+
def type_formatter_delete_category : Option<"category", "w">, Group<2>,
216+
Arg<"Name">, Desc<"Delete from given category.">;
217+
def type_formatter_delete_language : Option<"language", "l">, Group<3>,
218+
Arg<"Language">, Desc<"Delete from given language's category.">;
182219
}
183220

184221
let Command = "type formatter clear" in {
185-
def type_formatter_clear_all : Option<"all", "a">, Desc<"Clear every category.">;
222+
def type_formatter_clear_all : Option<"all", "a">,
223+
Desc<"Clear every category.">;
186224
}
187225

188226
let Command = "type formatter list" in {
189-
def type_formatter_list_category_regex : Option<"category-regex", "w">, Group<1>, Arg<"Name">, Desc<"Only show categories matching this filter.">;
190-
def type_formatter_list_language : Option<"language", "l">, Group<2>, Arg<"Language">, Desc<"Only show the category for a specific language.">;
227+
def type_formatter_list_category_regex : Option<"category-regex", "w">,
228+
Group<1>, Arg<"Name">, Desc<"Only show categories matching this filter.">;
229+
def type_formatter_list_language : Option<"language", "l">, Group<2>,
230+
Arg<"Language">, Desc<"Only show the category for a specific language.">;
191231
}
192232

193233
let Command = "type category define" in {
194-
def type_category_define_enabled : Option<"enabled", "e">, Desc<"If specified, this category will be created enabled.">;
195-
def type_category_define_language : Option<"language", "l">, Arg<"Language">, Desc<"Specify the language that this category is supported for.">;
234+
def type_category_define_enabled : Option<"enabled", "e">,
235+
Desc<"If specified, this category will be created enabled.">;
236+
def type_category_define_language : Option<"language", "l">, Arg<"Language">,
237+
Desc<"Specify the language that this category is supported for.">;
196238
}
197239

198240
let Command = "type category enable" in {
199-
def type_category_enable_language : Option<"language", "l">, Arg<"Language">, Desc<"Enable the category for this language.">;
241+
def type_category_enable_language : Option<"language", "l">, Arg<"Language">,
242+
Desc<"Enable the category for this language.">;
200243
}
201244

202245
let Command = "type category disable" in {
203-
def type_category_disable_language : Option<"language", "l">, Arg<"Language">, Desc<"Enable the category for this language.">;
246+
def type_category_disable_language : Option<"language", "l">, Arg<"Language">,
247+
Desc<"Enable the category for this language.">;
204248
}
205249

206250
let Command = "type filter add" in {
207-
def type_filter_add_cascade : Option<"cascade", "C">, Arg<"Boolean">, Desc<"If true, cascade through typedef chains.">;
208-
def type_filter_add_skip_pointers : Option<"skip-pointers", "p">, Desc<"Don't use this format for pointers-to-type objects.">;
209-
def type_filter_add_skip_references : Option<"skip-references", "r">, Desc<"Don't use this format for references-to-type objects.">;
210-
def type_filter_add_category : Option<"category", "w">, Arg<"Name">, Desc<"Add this to the given category instead of the default one.">;
211-
def type_filter_add_child : Option<"child", "c">, Arg<"ExpressionPath">, Desc<"Include this expression path in the synthetic view.">;
212-
def type_filter_add_regex : Option<"regex", "x">, Desc<"Type names are actually regular expressions.">;
251+
def type_filter_add_cascade : Option<"cascade", "C">, Arg<"Boolean">,
252+
Desc<"If true, cascade through typedef chains.">;
253+
def type_filter_add_skip_pointers : Option<"skip-pointers", "p">,
254+
Desc<"Don't use this format for pointers-to-type objects.">;
255+
def type_filter_add_skip_references : Option<"skip-references", "r">,
256+
Desc<"Don't use this format for references-to-type objects.">;
257+
def type_filter_add_category : Option<"category", "w">, Arg<"Name">,
258+
Desc<"Add this to the given category instead of the default one.">;
259+
def type_filter_add_child : Option<"child", "c">, Arg<"ExpressionPath">,
260+
Desc<"Include this expression path in the synthetic view.">;
261+
def type_filter_add_regex : Option<"regex", "x">,
262+
Desc<"Type names are actually regular expressions.">;
213263
}
214264

215265
let Command = "type lookup" in {
216-
def type_lookup_show_help : Option<"show-help", "h">, Desc<"Display available help for types">;
217-
def type_lookup_language : Option<"language", "l">, Arg<"Language">, Desc<"Which language's types should the search scope be">;
266+
def type_lookup_show_help : Option<"show-help", "h">,
267+
Desc<"Display available help for types">;
268+
def type_lookup_language : Option<"language", "l">, Arg<"Language">,
269+
Desc<"Which language's types should the search scope be">;
218270
}
219271

220272
let Command = "watchpoint list" in {

0 commit comments

Comments
 (0)