[clang-tidy] Add check 'cert-err33-c'.
authorBalázs Kéri <1.int32@gmail.com>
Tue, 2 Nov 2021 09:30:14 +0000 (10:30 +0100)
committerBalázs Kéri <1.int32@gmail.com>
Tue, 2 Nov 2021 10:38:47 +0000 (11:38 +0100)
commit4bcbb3d4d7a821a4ae29ec9333fe9d4c26240286
treef6f0e9fd2684ac1f3ac7f96b5ba54ca02b68a258
parent1ca35fc89e68fb2d0276856d8621bb5e68600919
[clang-tidy] Add check 'cert-err33-c'.

The CERT rule ERR33-C can be modeled partially by the existing check
'bugprone-unused-return-value'. The existing check is reused with
a fixed set of checked functions.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D112409
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-return-value.rst
clang-tools-extra/docs/clang-tidy/checks/cert-err33-c.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/cert-err33-c.c [new file with mode: 0644]