[PATCH] D16536: Fix crashing on user-defined conversion.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 25 08:39:16 PST 2016
aaron.ballman added a subscriber: aaron.ballman.
================
Comment at: clang-tidy/misc/VirtualNearMissCheck.cpp:175
@@ +174,3 @@
+/// operator TypeName()
+static bool isUserDefinedConversion(const CXXMethodDecl *MD) {
+ return StringRef(MD->getNameAsString()).find(StringRef("operator ")) !=
----------------
Why not `isa<CXXConversionDecl>(MD)` instead?
http://reviews.llvm.org/D16536
More information about the cfe-commits
mailing list