summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-25 21:28:56 +0300
committerEd Tanous <ed@tanous.net>2022-02-11 23:30:05 +0300
commite05aec50f10116e6dda7e377bc61799aa5b7c166 (patch)
tree964aedffefcc787029c571a83889247caa0d3968 /.clang-tidy
parent213ffc701d838bece5893cda23475e7518bd6955 (diff)
downloadbmcweb-e05aec50f10116e6dda7e377bc61799aa5b7c166.tar.xz
Add readability-redundant-* checks
There's a number of redundancies in our code that clang can sanitize out. Fix the existing problems, and enable the checks. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ie63d7b7f0777b702fbf1b23a24e1bed7b4f5183b
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy7
1 files changed, 7 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 953c78e780..23cc7aea1f 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -276,6 +276,13 @@ readability-deleted-default,
readability-else-after-return,
readability-named-parameter,
readability-redundant-control-flow,
+readability-redundant-declaration,
+readability-redundant-function-ptr-dereference,
+readability-redundant-member-init,
+readability-redundant-preprocessor,
+readability-redundant-smartptr-get,
+readability-redundant-string-cstr,
+readability-redundant-string-init,
readability-identifier-naming'
WarningsAsErrors: '*'