[PATCH] D157188: [clang-tidy] Add bugprone-new-bool-conversion
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 5 02:42:43 PDT 2023
PiotrZSL created this revision.
PiotrZSL added reviewers: njames93, carlosgalvezp.
Herald added a subscriber: xazax.hun.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Detects cases where the result of a new expression is used as a bool.
Fixes: #64461
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157188
Files:
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/clang-tidy/bugprone/NewBoolConversionCheck.cpp
clang-tools-extra/clang-tidy/bugprone/NewBoolConversionCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/new-bool-conversion.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/new-bool-conversion.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157188.547469.patch
Type: text/x-patch
Size: 10679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230805/721d6c9b/attachment-0001.bin>
More information about the cfe-commits
mailing list