[all-commits] [llvm/llvm-project] 4bcbb3: [clang-tidy] Add check 'cert-err33-c'.

Balázs Kéri via All-commits all-commits at lists.llvm.org
Tue Nov 2 03:26:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bcbb3d4d7a821a4ae29ec9333fe9d4c26240286
      https://github.com/llvm/llvm-project/commit/4bcbb3d4d7a821a4ae29ec9333fe9d4c26240286
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-return-value.rst
    A clang-tools-extra/docs/clang-tidy/checks/cert-err33-c.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/cert-err33-c.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list