[all-commits] [llvm/llvm-project] 6219b7: [clang-tidy] Do not emit bugprone-exception-escape...
Deniz Evrenci via All-commits
all-commits at lists.llvm.org
Tue May 30 10:48:33 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6219b7c61a942fb8b6d931b4aac021d293cdde4d
https://github.com/llvm/llvm-project/commit/6219b7c61a942fb8b6d931b4aac021d293cdde4d
Author: Deniz Evrenci <denizevrenci at gmail.com>
Date: 2023-05-30 (Tue, 30 May 2023)
Changed paths:
M clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape-coro.cpp
M clang/include/clang/AST/StmtCXX.h
Log Message:
-----------
[clang-tidy] Do not emit bugprone-exception-escape warnings from coroutines
All exceptions thrown in coroutine bodies are caught and
unhandled_exception member of the coroutine promise type is called.
In accordance with the existing rules of diagnostics related to
exceptions thrown in functions marked noexcept, even if the promise
type's constructor, get_return_object, or unhandled_exception
throws, diagnostics should not be emitted.
Fixes #61905.
Reviewed By: PiotrZSL, ChuanqiXu
Differential Revision: https://reviews.llvm.org/D147417
More information about the All-commits
mailing list