[PATCH] D138583: Create unused non-trivially-destructible check in clang-tidy
Andrei via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 23 08:43:51 PST 2022
ankineri created this revision.
ankineri added a reviewer: sammccall.
Herald added a subscriber: carlosgalvezp.
Herald added a reviewer: njames93.
Herald added a project: All.
ankineri requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Adds a check to clang-tidy to ensure that some (`absl::Status` by default) non-trivially-destructible objects are used.
Example code that should trigger a warning:
{
absl::Status status = call_some_function();
}
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138583
Files:
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/clang-tidy/bugprone/UnusedNtdObjectCheck.cpp
clang-tools-extra/clang-tidy/bugprone/UnusedNtdObjectCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-ntd-object.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-ntd-object.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138583.477515.patch
Type: text/x-patch
Size: 14727 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221123/1a2e6cdf/attachment.bin>
More information about the cfe-commits
mailing list