[PATCH] D14824: [PATCH] Add clang-tidy check for static or thread_local objects where construction may throw
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 06:09:11 PST 2015
aaron.ballman closed this revision.
aaron.ballman added a comment.
Commit in r254415.
================
Comment at: clang-tidy/utils/Matchers.h:26
@@ -25,1 +25,3 @@
+AST_MATCHER(FunctionDecl, isNoThrow) {
+ const auto *FnTy = Node.getType()->getAs<FunctionProtoType>();
----------------
alexfh wrote:
> Anything wrong with putting this to the astmatchers library?
I may move that there post-commit because it seems general-purpose enough for that.
http://reviews.llvm.org/D14824
More information about the cfe-commits
mailing list