Update clang utilities
This commit is contained in:
parent
ab95699400
commit
a221bd2653
|
@ -24,7 +24,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for clang-check v15.0.2 (https://clang.llvm.org/docs/ClangCheck.html)
|
# Completion script for clang-check v20.1.2 (https://clang.llvm.org/docs/ClangCheck.html)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -37,6 +37,8 @@
|
||||||
_arguments \
|
_arguments \
|
||||||
'(- *)--help[Display available options]' \
|
'(- *)--help[Display available options]' \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
|
'(- *)--help-list[Display list of available options]' \
|
||||||
|
'(- *)--help-list-hidden[Display list of more available options]' \
|
||||||
'(- *)--version[Display the version of this program]' \
|
'(- *)--version[Display the version of this program]' \
|
||||||
'--analyze[Run static analysis engine]' \
|
'--analyze[Run static analysis engine]' \
|
||||||
'--analyzer-output-path=[Write output to file]: :_files' \
|
'--analyzer-output-path=[Write output to file]: :_files' \
|
||||||
|
@ -49,6 +51,8 @@ _arguments \
|
||||||
'--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \
|
'--fix-what-you-can[Apply fix-it advice even in the presence of unfixable errors]' \
|
||||||
'--fixit[Apply fix-it advice to the input source]' \
|
'--fixit[Apply fix-it advice to the input source]' \
|
||||||
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
||||||
|
'--print-all-options[Print all option values after command line parsing]' \
|
||||||
|
'--print-options[Print non-default options after command line parsing]' \
|
||||||
'--syntax-tree-dump[dump the syntax tree]' \
|
'--syntax-tree-dump[dump the syntax tree]' \
|
||||||
'--tokens-dump[dump the preprocessed tokens]' \
|
'--tokens-dump[dump the preprocessed tokens]' \
|
||||||
'*: :_files'
|
'*: :_files'
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for clang-format v15.0.2 (https://clang.llvm.org/docs/ClangFormat.html)
|
# Completion script for clang-format v20.1.2 (https://clang.llvm.org/docs/ClangFormat.html)
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -41,24 +41,31 @@ _arguments \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
'(- *)--help-list[Display list of available options]' \
|
'(- *)--help-list[Display list of available options]' \
|
||||||
'(- *)--help-list-hidden[Display list of more available options]' \
|
'(- *)--help-list-hidden[Display list of more available options]' \
|
||||||
|
'--Wclang-format-violations[Warnings about individual formatting changes needed]' \
|
||||||
'--Werror=[If set, changes formatting warnings to errors]' \
|
'--Werror=[If set, changes formatting warnings to errors]' \
|
||||||
'*--Wno-error=[If set, do not error out on the specified warning type]:warn' \
|
'*--Wno-error=[If set, do not error out on the specified warning type]:warn' \
|
||||||
'--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \
|
'--assume-filename=[Set filename used to determine the language and to find .clang-format file]: :_files' \
|
||||||
'--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \
|
'--cursor=[The position of the cursor when invoking clang-format from an editor integration]:pos' \
|
||||||
'(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \
|
'(-n --dry-run)'{-n,--dry-run}'[If set, do not actually make the formatting changes]' \
|
||||||
'--dump-config[Dump configuration options to stdout and exit]' \
|
'--dump-config[Dump configuration options to stdout and exit]' \
|
||||||
|
'--fail-on-incomplete-format[If set, fail with exit code 1 on incomplete format]' \
|
||||||
'--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \
|
'--fallback-style=[The name of the predefined style used as a fallback]: :'"($styles)" \
|
||||||
'--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \
|
'--ferror-limit=[Set the maximum number of clang-format errors to emit before stopping]:limit' \
|
||||||
'*--files=[Provide a list of files to run clang-format]: :_files' \
|
'*--files=[Provide a list of files to run clang-format]: :_files' \
|
||||||
|
'--fno-color-diagnostics[If set, not to print diagnostics in color]' \
|
||||||
'-i[Inplace edit files, if specified]' \
|
'-i[Inplace edit files, if specified]' \
|
||||||
'--length=[Format a range of this length(in bytes)]:bytes' \
|
'--length=[Format a range of this length(in bytes)]:bytes' \
|
||||||
'--lines=[format a range of lines]:format' \
|
'--lines=[format a range of lines]:format' \
|
||||||
|
'--list-ignored[List ignored files]' \
|
||||||
'--offset=[Format a range starting at this byte offset]' \
|
'--offset=[Format a range starting at this byte offset]' \
|
||||||
'--output-replacements-xml[Output replacements as XML]' \
|
'--output-replacements-xml[Output replacements as XML]' \
|
||||||
|
'--print-all-options[Print all option values after command line parsing]' \
|
||||||
|
'--print-options[Print non default options after command line parsing]' \
|
||||||
'--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \
|
'--qualifier-alignment=[If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag]' \
|
||||||
'--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \
|
'--sort-includes[If set, overrides the include sorting behavior determined by the SortIncludes style flag]' \
|
||||||
'--style=[Set coding style]: :'"($styles)" \
|
'--style=[Set coding style]: :'"($styles)" \
|
||||||
'--verbose[If set, show the list of processed files]' \
|
'--verbose[If set, show the list of processed files]' \
|
||||||
|
'(- *)--version[Display the version of this program]' \
|
||||||
'*: :_files'
|
'*: :_files'
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
|
|
|
@ -41,12 +41,14 @@ _arguments \
|
||||||
'(- *)--help-hidden[Display available more options]' \
|
'(- *)--help-hidden[Display available more options]' \
|
||||||
'(- *)--help-list[Display list of available options]' \
|
'(- *)--help-list[Display list of available options]' \
|
||||||
'(- *)--help-list-hidden[Display list of more available options]' \
|
'(- *)--help-list-hidden[Display list of more available options]' \
|
||||||
|
'--allow-no-checks[Allow empty enabled checks]' \
|
||||||
'--checks=[Comma-separated list of globs with optional "-" prefix]:checks' \
|
'--checks=[Comma-separated list of globs with optional "-" prefix]:checks' \
|
||||||
'--config=[Specifies a configuration in YAML/JSON format]:conf' \
|
'--config=[Specifies a configuration in YAML/JSON format]:conf' \
|
||||||
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
'--config-file=[Specify the path of .clang-tidy or custom config-file]: :_files' \
|
||||||
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
'--dump-config[Dumps configuration in the YAML format to stdout]' \
|
||||||
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
'--enable-check-profile[Enable per-check timing profiles, and print a report to stderr]' \
|
||||||
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
|
'--enable-module-headers-parsing[Enable preprocessor-level module header parsing for C++20 and above]' \
|
||||||
|
'--exclude-header-filter=[Regular expression of headers to exclude diagnostics from]:filter' \
|
||||||
'--explain-config[For each enabled check explains, where it is enabled]' \
|
'--explain-config[For each enabled check explains, where it is enabled]' \
|
||||||
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
'--export-fixes=[YAML file to store suggested fixes in]: :_files' \
|
||||||
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
'*--extra-arg[Additional argument to append to the compiler command line]:arg' \
|
||||||
|
@ -54,16 +56,19 @@ _arguments \
|
||||||
'--fix[Apply suggested fixes]' \
|
'--fix[Apply suggested fixes]' \
|
||||||
'--fix-errors[Apply suggested fixes even if compilation errors were found]' \
|
'--fix-errors[Apply suggested fixes even if compilation errors were found]' \
|
||||||
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
'--fix-notes[If a warning has no fix, but a single fix can be found through an associated diagnostic node, apply the fix]' \
|
||||||
'--format-style=[Style for formatting code around applied fixes]: :(llvm google webkit mozilla)' \
|
'--format-style=[Style for formatting code around applied fixes]: :(none file llvm google webkit mozilla)' \
|
||||||
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
'--header-filter=[Regular expression matching the names of the headers to output diagnostics from]:regexp' \
|
||||||
'--line-filter=[List of files with line ranges to filter the warnings]' \
|
'--line-filter=[List of files with line ranges to filter the warnings]' \
|
||||||
'(- *)--list-checks[List all enabled checks and exit]' \
|
'(- *)--list-checks[List all enabled checks and exit]' \
|
||||||
'--load=[Load the specified plugin]: :_files' \
|
'--load=[Load the specified plugin]: :_files' \
|
||||||
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
'-p[Build directory where compile_commands.json is]: :_files -/' \
|
||||||
|
'--print-all-options[Print all option values after command line parsing]' \
|
||||||
|
'--print-options[Print non default options after command line parsing]' \
|
||||||
'--quiet[Run clang-tidy in quiet mode]' \
|
'--quiet[Run clang-tidy in quiet mode]' \
|
||||||
'--store-check-profile=[These per-TU profiles are instead stored as JSON]:prefix' \
|
'--store-check-profile=[These per-TU profiles are instead stored as JSON]:prefix' \
|
||||||
'--system-headers[Display the errors from system headers]' \
|
'--system-headers[Display the errors from system headers]' \
|
||||||
'--use-color[Use colors in diagnostics]' \
|
'--use-color[Use colors in diagnostics]' \
|
||||||
|
'(- *)--version[Display the version of this program]' \
|
||||||
'--verify-config[Check the config files to ensure each check and option is recognized]' \
|
'--verify-config[Check the config files to ensure each check and option is recognized]' \
|
||||||
'--vfsoverlay=[Overlay the virtual filesystem described by file over the real file system]: :_files' \
|
'--vfsoverlay=[Overlay the virtual filesystem described by file over the real file system]: :_files' \
|
||||||
'--warnings-as-errors=[Upgrades warning to errors]:check' \
|
'--warnings-as-errors=[Upgrades warning to errors]:check' \
|
||||||
|
|
Loading…
Reference in New Issue