[all-commits] [llvm/llvm-project] 8bfc14: [clang-tidy] Added option to uniqueptr delete rele...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Mar 1 13:52:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bfc14193170c95a49fca3e66aa077203783a137
      https://github.com/llvm/llvm-project/commit/8bfc14193170c95a49fca3e66aa077203783a137
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

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

  Log Message:
  -----------
  [clang-tidy] Added option to uniqueptr delete release check

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

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D97630




More information about the All-commits mailing list