[all-commits] [llvm/llvm-project] fedd52: [clang-tidy]: Add cert-str34-c alias for bugprone-...
Tamás Zolnai via All-commits
all-commits at lists.llvm.org
Wed May 6 03:36:44 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fedd52682ec70fd13b08eeac99ee0954292af9da
https://github.com/llvm/llvm-project/commit/fedd52682ec70fd13b08eeac99ee0954292af9da
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: 2020-05-06 (Wed, 06 May 2020)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/SignedCharMisuseCheck.cpp
M clang-tools-extra/clang-tidy/bugprone/SignedCharMisuseCheck.h
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-signed-char-misuse.rst
A clang-tools-extra/docs/clang-tidy/checks/cert-str34-c.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/cert-str34-c.cpp
Log Message:
-----------
[clang-tidy]: Add cert-str34-c alias for bugprone-signed-char-misuse.
Summary:
Added `DiagnoseSignedUnsignedCharComparisons` option to
filter out unrelated use cases. The SEI cert catches explicit
integer casts (two use cases), while in the case of
`signed char` \ `unsigned char` comparison, we have implicit
conversions.
Reviewers: aaron.ballman
Reviewed By: aaron.ballman
Subscribers: xazax.hun, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79334
More information about the All-commits
mailing list