[PATCH] D16310: new clang-tidy checker misc-long-cast
Daniel Marjamäki via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 28 00:38:16 PST 2016
danielmarjamaki marked an inline comment as done.
================
Comment at: clang-tidy/misc/MisplacedWideningCastCheck.cpp:33
@@ +32,3 @@
+ Finder->addMatcher(varDecl(has(Cast)), this);
+ Finder->addMatcher(binaryOperator(hasOperatorName("="), hasRHS(Cast)), this);
+}
----------------
I have refactored these expressions in latest patch. I did not know I have to use stmt().
http://reviews.llvm.org/D16310
More information about the cfe-commits
mailing list