mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-04 13:34:24 +08:00
chore(clang-tidy): add more modernize clang-tidy checks (#3049)
* Add more modernize clang-tidy checks * Enable a few more
This commit is contained in:
15
.clang-tidy
15
.clang-tidy
@@ -2,12 +2,17 @@ FormatStyle: file
|
||||
|
||||
Checks: '
|
||||
llvm-namespace-comment,
|
||||
modernize-use-override,
|
||||
readability-container-size-empty,
|
||||
modernize-use-using,
|
||||
modernize-use-equals-default,
|
||||
modernize-avoid-bind,
|
||||
modernize-replace-auto-ptr,
|
||||
modernize-replace-disallow-copy-and-assign-macro,
|
||||
modernize-shrink-to-fit,
|
||||
modernize-use-auto,
|
||||
modernize-use-equals-default,
|
||||
modernize-use-equals-delete,
|
||||
modernize-use-emplace,
|
||||
modernize-use-override,
|
||||
modernize-use-using,
|
||||
readability-container-size-empty,
|
||||
'
|
||||
|
||||
CheckOptions:
|
||||
@@ -15,3 +20,5 @@ CheckOptions:
|
||||
value: 'exception_ptr$;'
|
||||
|
||||
HeaderFilterRegex: 'pybind11/.*h'
|
||||
|
||||
WarningsAsErrors: '*'
|
||||
|
||||
Reference in New Issue
Block a user