[clang-tidy] Extend cert-oop57-cpp to check non-zero memset values
authorEndre Fülöp <endre.fulop@sigmatechnology.se>
Sun, 22 May 2022 21:28:10 +0000 (23:28 +0200)
committerEndre Fülöp <endre.fulop@sigmatechnology.se>
Wed, 1 Jun 2022 06:23:23 +0000 (08:23 +0200)
commite290fcef111c24ed833c9768809eb900a21c94e0
tree2b6309a3d179d2f9947c57d2e152a3c29c9bb8cf
parent1c459a20ea5626264d867aaf65882c9cc6d0bf8a
[clang-tidy] Extend cert-oop57-cpp to check non-zero memset values

Clang Tidy check cert-oop57-cpp now checks for arbitrary-valued
arguments in memset expressions containing non-trivially
default-constructible instances. Previously it only checked literal 0 values.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D126186
clang-tools-extra/clang-tidy/cert/NonTrivialTypesLibcMemoryCallsCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/cert-oop57-cpp.cpp