Fixed the comments, left only the doc URL
This commit is contained in:
parent
a767578d44
commit
70cd1d5a57
@ -7,51 +7,8 @@ call ale#Set('c_clangtidy_executable', 'clang-tidy')
|
|||||||
" The number of checks that can be applied to C files is limited in contrast to
|
" The number of checks that can be applied to C files is limited in contrast to
|
||||||
" C++
|
" C++
|
||||||
"
|
"
|
||||||
" Here is an incomplete list of C-compatible checks for clang-tidy version 6:
|
" Consult the check list in clang-tidy's documentation:
|
||||||
" bugprone-suspicious-memset-usage
|
" http://clang.llvm.org/extra/clang-tidy/checks/list.html
|
||||||
" cert-env33-c
|
|
||||||
" cert-err34-c
|
|
||||||
" cert-flp30-c
|
|
||||||
" google-runtime-int
|
|
||||||
" llvm-header-guard
|
|
||||||
" llvm-include-order
|
|
||||||
" misc-argument-comment
|
|
||||||
" misc-assert-side-effect
|
|
||||||
" misc-bool-pointer-implicit-conversion
|
|
||||||
" misc-definitions-in-headers
|
|
||||||
" misc-incorrect-roundings
|
|
||||||
" misc-macro-parentheses
|
|
||||||
" misc-macro-repeated-side-effects
|
|
||||||
" misc-misplaced-const
|
|
||||||
" misc-misplaced-widening-cast
|
|
||||||
" misc-multiple-statement-macro
|
|
||||||
" misc-non-copyable-objects
|
|
||||||
" misc-redundant-expression
|
|
||||||
" misc-sizeof-expression
|
|
||||||
" misc-static-assert
|
|
||||||
" misc-string-literal-with-embedded-nul
|
|
||||||
" misc-suspicious-enum-usage
|
|
||||||
" misc-suspicious-missing-comma
|
|
||||||
" misc-suspicious-semicolon
|
|
||||||
" misc-suspicious-string-compare
|
|
||||||
" misc-swapped-arguments
|
|
||||||
" modernize-redundant-void-arg
|
|
||||||
" modernize-use-bool-literals
|
|
||||||
" performance-type-promotion-in-math-fn
|
|
||||||
" readability-braces-around-statements
|
|
||||||
" readability-else-after-return
|
|
||||||
" readability-function-size
|
|
||||||
" readability-identifier-naming
|
|
||||||
" readability-implicit-bool-cast
|
|
||||||
" readability-inconsistent-declaration-parameter-name
|
|
||||||
" readability-misleading-indentation
|
|
||||||
" readability-misplaced-array-index
|
|
||||||
" readability-named-parameter
|
|
||||||
" readability-non-const-parameter
|
|
||||||
" readability-redundant-control-flow
|
|
||||||
" readability-redundant-declaration
|
|
||||||
" readability-redundant-function-ptr-dereference
|
|
||||||
" readability-simplify-boolean-expr
|
|
||||||
|
|
||||||
call ale#Set('c_clangtidy_checks', ['*'])
|
call ale#Set('c_clangtidy_checks', ['*'])
|
||||||
" Set this option to manually set some options for clang-tidy.
|
" Set this option to manually set some options for clang-tidy.
|
||||||
|
@ -75,53 +75,8 @@ g:ale_c_clangtidy_checks *g:ale_c_clangtidy_checks*
|
|||||||
option to an empty List.
|
option to an empty List.
|
||||||
|
|
||||||
Not all of clangtidy checks are applicable for C. You should consult the
|
Not all of clangtidy checks are applicable for C. You should consult the
|
||||||
clang documentation for an up-to-date list of compatible checks.
|
clang documentation for an up-to-date list of compatible checks:
|
||||||
|
http://clang.llvm.org/extra/clang-tidy/checks/list.html
|
||||||
Here's an (incomplete) list of C-compatible checks, for clang-tidy version 6:
|
|
||||||
bugprone-suspicious-memset-usage
|
|
||||||
cert-env33-c
|
|
||||||
cert-err34-c
|
|
||||||
cert-flp30-c
|
|
||||||
google-runtime-int
|
|
||||||
llvm-header-guard
|
|
||||||
llvm-include-order
|
|
||||||
misc-argument-comment
|
|
||||||
misc-assert-side-effect
|
|
||||||
misc-bool-pointer-implicit-conversion
|
|
||||||
misc-definitions-in-headers
|
|
||||||
misc-incorrect-roundings
|
|
||||||
misc-macro-parentheses
|
|
||||||
misc-macro-repeated-side-effects
|
|
||||||
misc-misplaced-const
|
|
||||||
misc-misplaced-widening-cast
|
|
||||||
misc-multiple-statement-macro
|
|
||||||
misc-non-copyable-objects
|
|
||||||
misc-redundant-expression
|
|
||||||
misc-sizeof-expression
|
|
||||||
misc-static-assert
|
|
||||||
misc-string-literal-with-embedded-nul
|
|
||||||
misc-suspicious-enum-usage
|
|
||||||
misc-suspicious-missing-comma
|
|
||||||
misc-suspicious-semicolon
|
|
||||||
misc-suspicious-string-compare
|
|
||||||
misc-swapped-arguments
|
|
||||||
modernize-redundant-void-arg
|
|
||||||
modernize-use-bool-literals
|
|
||||||
performance-type-promotion-in-math-fn
|
|
||||||
readability-braces-around-statements
|
|
||||||
readability-else-after-return
|
|
||||||
readability-function-size
|
|
||||||
readability-identifier-naming
|
|
||||||
readability-implicit-bool-cast
|
|
||||||
readability-inconsistent-declaration-parameter-name
|
|
||||||
readability-misleading-indentation
|
|
||||||
readability-misplaced-array-index
|
|
||||||
readability-named-parameter
|
|
||||||
readability-non-const-parameter
|
|
||||||
readability-redundant-control-flow
|
|
||||||
readability-redundant-declaration
|
|
||||||
readability-redundant-function-ptr-dereference
|
|
||||||
readability-simplify-boolean-expr
|
|
||||||
|
|
||||||
|
|
||||||
g:ale_c_clangtidy_executable *g:ale_c_clangtidy_executable*
|
g:ale_c_clangtidy_executable *g:ale_c_clangtidy_executable*
|
||||||
|
Loading…
Reference in New Issue
Block a user