alexfh added inline comments. ================ Comment at: clang-tidy/cert/ThrownExceptionTypeCheck.cpp:36 @@ +35,3 @@ + bool Diag = false; + for (const auto *Ctor : RD->ctors()) { + if (Ctor->isCopyConstructor()) { ---------------- I'd slightly prefer this check to be expressed as a matcher:
cxxThrowExpr(has(cxxConstructExpr(hasDeclaration(<insert your isNothrow() matcher here>)))) Which is also a more correct thing to do and doesn't seem to be "a lot harder" ;) http://reviews.llvm.org/D14619 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits