================
Comment at: clang-tidy/google/GoogleTidyModule.cpp:35
@@ -34,1 +34,3 @@
       Result.Nodes.getNodeAs<CXXConstructorDecl>("construct");
+  if (Ctor != Ctor->getCanonicalDecl())
+    return;
----------------
Daniel Jasper wrote:
> Daniel Jasper wrote:
> > Using getCanonicalDecl() makes quite a few implicit assumptions. Why not 
> > just use "if (!Ctor->isOutOfLine())"?
> I mean without the "!" ;)
Aha, this is what I had been trying to find before I came up with the 
getCanonicalDecl version ;)


http://llvm-reviews.chandlerc.com/D2756
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to