[PATCH] D14824: [PATCH] Add clang-tidy check for static or thread_local objects where construction may throw

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 30 16:04:08 PST 2015


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG


================
Comment at: clang-tidy/utils/Matchers.h:26
@@ -25,1 +25,3 @@
 
+AST_MATCHER(FunctionDecl, isNoThrow) {
+  const auto *FnTy = Node.getType()->getAs<FunctionProtoType>();
----------------
Anything wrong with putting this to the astmatchers library?


http://reviews.llvm.org/D14824





More information about the cfe-commits mailing list