[PATCH] D148697: [clang-tidy] Handle more cases of functions which should always be noexcept

André Schackier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 19 03:00:25 PDT 2023


AMS21 created this revision.
AMS21 added reviewers: PiotrZSL, njames93.
Herald added subscribers: carlosgalvezp, kbarton, xazax.hun, nemanjai.
Herald added a project: All.
AMS21 requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Renamed `performance-noexcept-move-constructor` -> `performance-noexcept-special-functions`
to reflect that it now also handles default constructors, destructors and swap functions.
Add check alias `cppcoreguidelines-noexcept-special-functions`.

This fixes llvm#62154


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148697

Files:
  clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
  clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
  clang-tools-extra/clang-tidy/performance/CMakeLists.txt
  clang-tools-extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
  clang-tools-extra/clang-tidy/performance/NoexceptMoveConstructorCheck.h
  clang-tools-extra/clang-tidy/performance/NoexceptSpecialFunctionsCheck.cpp
  clang-tools-extra/clang-tidy/performance/NoexceptSpecialFunctionsCheck.h
  clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
  clang-tools-extra/clang-tidy/utils/ExceptionSpecAnalyzer.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/noexcept-special-functions.rst
  clang-tools-extra/docs/clang-tidy/checks/hicpp/noexcept-move.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/performance/noexcept-move-constructor.rst
  clang-tools-extra/docs/clang-tidy/checks/performance/noexcept-special-functions.rst
  clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-move-constructor-fix.cpp
  clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-move-constructor.cpp
  clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-special-functions-fix.cpp
  clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-special-functions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148697.514879.patch
Type: text/x-patch
Size: 57115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230419/e3c4f2a6/attachment-0001.bin>


More information about the cfe-commits mailing list