[PATCH] D131318: [clang-tidy] Add llvm-derefencing-dyn-cast check
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 6 02:06:44 PDT 2022
njames93 created this revision.
njames93 added reviewers: aaron.ballman, JonasToth, LegalizeAdulthood, alexfh.
Herald added subscribers: carlosgalvezp, xazax.hun, mgorny.
Herald added a project: All.
njames93 requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Add a check that aims to prevent dereferencing casts that may return nullptr.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131318
Files:
clang-tools-extra/clang-tidy/llvm/CMakeLists.txt
clang-tools-extra/clang-tidy/llvm/DereferencingDynCastCheck.cpp
clang-tools-extra/clang-tidy/llvm/DereferencingDynCastCheck.h
clang-tools-extra/clang-tidy/llvm/LLVMTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/llvm/dereferencing-dyn-cast.rst
clang-tools-extra/test/clang-tidy/checkers/llvm/dereferencing-dyn-cast.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131318.450501.patch
Type: text/x-patch
Size: 11181 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220806/c066c949/attachment.bin>
More information about the cfe-commits
mailing list