clang_format¶
ClangFormat ¶
Bases: Tool[_R]
Methods:
| Name | Description |
|---|---|
__call__ |
OVERVIEW: A tool to format |
Attributes:
| Name | Type | Description |
|---|---|---|
argv |
ClangFormat[Argv]
|
|
__call__ ¶
__call__(*args: str | PathLike[str], Werror: Flag = ..., Wno_error: Value = ..., assume_filename: Value = ..., cursor: Value = ..., dry_run: Flag = ..., dump_config: Flag = ..., fail_on_incomplete_format: Flag = ..., fallback_style: Value = ..., ferror_limit: Value = ..., files: Value = ..., help_list: Flag = ..., i: Flag = ..., length: Value = ..., lines: Value = ..., n: Flag = ..., offset: Value = ..., output_replacements_xml: Flag = ..., qualifier_alignment: Value = ..., sort_includes: Flag = ..., style: Value = ..., verbose: Flag = ..., **flags: Any) -> _R
OVERVIEW: A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Werror
|
Flag
|
|
...
|
Wno_error
|
Value
|
|
...
|
assume_filename
|
Value
|
|
...
|
cursor
|
Value
|
|
...
|
dry_run
|
Flag
|
|
...
|
dump_config
|
Flag
|
|
...
|
fail_on_incomplete_format
|
Flag
|
|
...
|
fallback_style
|
Value
|
|
...
|
ferror_limit
|
Value
|
|
...
|
files
|
Value
|
|
...
|
help_list
|
Flag
|
|
...
|
i
|
Flag
|
|
...
|
length
|
Value
|
|
...
|
lines
|
Value
|
|
...
|
n
|
Flag
|
|
...
|
offset
|
Value
|
|
...
|
output_replacements_xml
|
Flag
|
|
...
|
qualifier_alignment
|
Value
|
determined by the QualifierAlignment style flag. |
...
|
sort_includes
|
Flag
|
|
...
|
style
|
Value
|
|
...
|
verbose
|
Flag
|
|
...
|