mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
clang-tidy param avoid malloc(0)
This commit is contained in:
@@ -16,9 +16,9 @@ Checks: '*
|
||||
,-clang-analyzer-optin.performance.Padding
|
||||
,-clang-analyzer-security.FloatLoopCounter
|
||||
,-clang-analyzer-security.insecureAPI.strcpy
|
||||
,-clang-analyzer-unix.API
|
||||
,-clang-analyzer-unix.cstring.BadSizeArg
|
||||
,-clang-analyzer-unix.Malloc
|
||||
,-clang-analyzer-unix.MallocSizeof
|
||||
,-cppcoreguidelines-c-copy-assignment-signature
|
||||
,-cppcoreguidelines-interfaces-global-init
|
||||
,-cppcoreguidelines-no-malloc
|
||||
@@ -59,6 +59,7 @@ Checks: '*
|
||||
,-modernize-use-equals-delete
|
||||
,-modernize-use-override
|
||||
,-modernize-use-using
|
||||
,-performance-inefficient-string-concatenation
|
||||
,-readability-avoid-const-params-in-decls
|
||||
,-readability-else-after-return
|
||||
,-readability-implicit-bool-cast
|
||||
@@ -66,8 +67,6 @@ Checks: '*
|
||||
,-readability-named-parameter
|
||||
,-readability-non-const-parameter
|
||||
,-readability-redundant-declaration
|
||||
,-performance-inefficient-string-concatenation
|
||||
,-clang-analyzer-unix.MallocSizeof
|
||||
,-readability-redundant-member-init
|
||||
,-readability-simplify-boolean-expr
|
||||
'
|
||||
@@ -86,4 +85,4 @@ CheckOptions:
|
||||
- key: readability-function-size.LineThreshold
|
||||
value: '4000'
|
||||
- key: readability-function-size.StatementThreshold
|
||||
value: '4000'
|
||||
value: '4000'
|
||||
|
||||
Reference in New Issue
Block a user