[PATCH] Add Distance parameter to ASTNodeKind::isBaseOf.

Peter Collingbourne peter at pcc.me.uk
Tue Nov 19 00:56:22 PST 2013



================
Comment at: unittests/AST/ASTTypeTraitsTest.cpp:46
@@ +45,3 @@
+  Distance = 0;
+  EXPECT_TRUE(DNT<VarDecl>().isBaseOf(DNT<ParmVarDecl>(), &Distance));
+  EXPECT_EQ(1u, Distance);
----------------
Samuel Benzaquen wrote:
> Please add one where Distance > 1.
Done.


http://llvm-reviews.chandlerc.com/D2209



More information about the cfe-commits mailing list