[PATCH] D97630: [clang-tidy] Added option to uniqueptr delete release check

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 28 08:04:55 PST 2021


njames93 created this revision.
njames93 added reviewers: aaron.ballman, alexfh, gribozavr2.
Herald added a subscriber: xazax.hun.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Adds an option, `PreferResetCall`, currently defaulted to `false`, to the check.
When `true` the check will refactor by calling the `reset` member function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97630

Files:
  clang-tools-extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.cpp
  clang-tools-extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.h
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
  clang-tools-extra/test/clang-tidy/checkers/readability-uniqueptr-delete-release.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97630.326968.patch
Type: text/x-patch
Size: 8818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210228/13303cd7/attachment.bin>


More information about the cfe-commits mailing list