[PATCH] D43120: [clang-tidy] New checker for exceptions that are created but not thrown
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 9 10:22:25 PST 2018
aaron.ballman added inline comments.
================
Comment at: clang-tidy/misc/ThrowKeywordMissingCheck.cpp:24
+
+ auto CtorInitializerList =
+ cxxConstructorDecl(hasAnyConstructorInitializer(anything()));
----------------
Eugene.Zelenko wrote:
> Please don't use auto where type could not be easily deduced.
`auto` is appropriate here because these are horrible to try to spell out manually.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D43120
More information about the cfe-commits
mailing list