During call stack analysis skip called noexcept functions
as they wont throw exceptions, they will crash.
Check will emit warnings for those functions separately.
Fixes: #43667, #49151, #51596, #54668, #54956
Paths
| Differential D153458
[clang-tidy] Model noexcept more properly in bugprone-exception-escape ClosedPublic Authored by PiotrZSL on Jun 21 2023, 12:50 PM.
Details Summary During call stack analysis skip called noexcept functions Fixes: #43667, #49151, #51596, #54668, #54956
Diff Detail
Event Timeline
Comment Actions Looks good, great to see all these issues fixed! Have a couple small comments.
This revision is now accepted and ready to land.Jul 17 2023, 4:02 AM Closed by commit rG27245077643a: [clang-tidy] Model noexcept more properly in bugprone-exception-escape (authored by PiotrZSL). · Explain WhyJul 17 2023, 8:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 541077 clang-tools-extra/clang-tidy/utils/ExceptionAnalyzer.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp
|
Put this in the anonymous namespace above please to remain consistent.