clang-tidy: add new global nits
Per discussion on cxx@chromium.org, these nits sound like a good deal to land. Bug: 1016926 Change-Id: Iec646df3a6644b6fa4cb76a734d4f620cb92e78b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2207377 Commit-Queue: George Burgess <gbiv@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#770229}
This commit is contained in:

committed by
Commit Bot

parent
3e46211c53
commit
d4c5e82aef
11
.clang-tidy
11
.clang-tidy
@ -4,17 +4,28 @@
|
||||
google-build-explicit-make-pair,
|
||||
google-explicit-constructor,
|
||||
google-readability-casting,
|
||||
modernize-avoid-bind,
|
||||
modernize-loop-convert,
|
||||
modernize-make-shared,
|
||||
modernize-make-unique,
|
||||
modernize-redundant-void-arg,
|
||||
modernize-replace-random-shuffle,
|
||||
modernize-shrink-to-fit,
|
||||
modernize-use-bool-literals,
|
||||
modernize-use-default-member-init,
|
||||
modernize-use-emplace,
|
||||
modernize-use-equals-default,
|
||||
modernize-use-equals-delete,
|
||||
modernize-use-noexcept,
|
||||
modernize-use-nullptr,
|
||||
modernize-use-override,
|
||||
modernize-use-transparent-functors,
|
||||
readability-redundant-member-init'
|
||||
CheckOptions:
|
||||
# This relaxes modernize-use-emplace in some cases; we might want to make it
|
||||
# more aggressive in the future. See discussion on
|
||||
# https://groups.google.com/a/chromium.org/g/cxx/c/noMMTNYiM0w .
|
||||
- key: modernize-use-emplace.IgnoreImplicitConstructors
|
||||
value: 1
|
||||
...
|
||||
|
||||
|
Reference in New Issue
Block a user