diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 20:36:26 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:00:37 +0300 |
commit | 4ecc618ff610fd9044d6067b764570135b243c4b (patch) | |
tree | 571086aaa0be8d392daf6d634d9a6d3066a21725 /.clang-tidy | |
parent | 9b6ffca5c1cafcc5406cf835390153a370dec4f6 (diff) | |
download | bmcweb-4ecc618ff610fd9044d6067b764570135b243c4b.tar.xz |
Enable const_cast checks
const_cast is an anti pattern. There are a few places we need to do it
for interacting with C APIs, so enable the checks, and ignore the
existing uses.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: If1748213992b97f5e3e04cf9b86a6fcafbb7cf06
Diffstat (limited to '.clang-tidy')
-rw-r--r-- | .clang-tidy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy index 85fc555ac5..462c5bf4af 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -206,6 +206,7 @@ cppcoreguidelines-interfaces-global-init, cppcoreguidelines-macro-usage, cppcoreguidelines-pro-bounds-array-to-pointer-decay, cppcoreguidelines-pro-bounds-pointer-arithmetic, +cppcoreguidelines-pro-type-const-cast, cppcoreguidelines-pro-type-member-init, cppcoreguidelines-pro-type-reinterpret-cast, cppcoreguidelines-special-member-functions, |