Enable modernize-make-unique

pull/24453/head
Esun Kim 4 years ago
parent f5952d0646
commit 85ddf8d314
  1. 6
      .clang-tidy

@ -24,7 +24,7 @@ Checks: '-*,
misc-uniqueptr-reset-release, misc-uniqueptr-reset-release,
misc-unused-alias-decls, misc-unused-alias-decls,
-misc-unused-using-decls, -misc-unused-using-decls,
-modernize-make-unique, modernize-make-unique,
-modernize-redundant-void-arg, -modernize-redundant-void-arg,
modernize-replace-auto-ptr, modernize-replace-auto-ptr,
modernize-shrink-to-fit, modernize-shrink-to-fit,
@ -42,3 +42,7 @@ WarningsAsErrors: '*'
CheckOptions: CheckOptions:
- key: readability-function-size.StatementThreshold - key: readability-function-size.StatementThreshold
value: '450' value: '450'
- key: modernize-make-unique.MakeSmartPtrFunction
value: 'absl::make_unique'
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
value: 'absl/memory/memory.h'

Loading…
Cancel
Save