[PATCH] D57100: [clang-tidy] refactor bugprone-exception-escape analysis into class
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 23 07:14:54 PST 2019
JonasToth created this revision.
JonasToth added reviewers: aaron.ballman, alexfh, hokein, baloghadamsoftware.
Herald added subscribers: cfe-commits, rnkovacs, xazax.hun, mgorny.
The check `bugprone-exception-escape` does an AST-based analysis to determine
if a function might throw an exception and warns based on that information.
The analysis part is refactored into a standalone class similiar to
`ExprMutAnalyzer` that is generally useful.
I intent to use that class in a new check to automatically introduce `noexcept`
if possible.
`bugprone-exception-escape` uses the consistent semicolon-separated list for
configuration now as well.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D57100
Files:
clang-tidy/bugprone/ExceptionEscapeCheck.cpp
clang-tidy/bugprone/ExceptionEscapeCheck.h
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExceptionAnalyzer.cpp
clang-tidy/utils/ExceptionAnalyzer.h
test/clang-tidy/bugprone-exception-escape.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57100.183098.patch
Type: text/x-patch
Size: 18550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190123/ebf32122/attachment-0001.bin>
More information about the cfe-commits
mailing list