[all-commits] [llvm/llvm-project] ff40c3: [clang-tidy] Allow explicit throwing in bugprone-e...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Tue Jul 18 14:11:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ff40c34881772e0641027327cd1791f4acacf6ff
https://github.com/llvm/llvm-project/commit/ff40c34881772e0641027327cd1791f4acacf6ff
Author: Piotr Zegar <me at piotrzegar.pl>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/ExceptionEscapeCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/bugprone/exception-escape.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-coro.cpp
M clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp
M clang/include/clang/Basic/ExceptionSpecificationType.h
Log Message:
-----------
[clang-tidy] Allow explicit throwing in bugprone-exception-escape for special functions
Functions declared explicitly with noexcept(false) or throw(exception)
will be excluded from the analysis, as even though it is not recommended for
functions like swap, main, move constructors and assignment operators,
and destructors, it is a clear indication of the developer's intention and
should be respected.
Fixes: #40583, #55143
Reviewed By: carlosgalvezp
Differential Revision: https://reviews.llvm.org/D153423
More information about the All-commits
mailing list