aaron.ballman added inline comments.

================
Comment at: clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp:329
+  EXPECT_TRUE(matches("class X {}; class Y : X {};", ClassHasBaseClassX));
+  EXPECT_TRUE(notMatches("class Z {}; class Y : Z {};", ClassHasBaseClassX));
+}
----------------
nick wrote:
> aaron.ballman wrote:
> > I'd like to see another test along these lines:
> > ```
> > struct Base {};
> > struct Intermediate : Base {};
> > struct Derived : Intermediate {};
> > ```
> > Where we test that `Derived` does not have a direct base relationship with 
> > `Base`, but does with `hasAnyBase`.
> I do not understand why it should be here. The point of this test is to 
> ensure that `hasType` can be used inside `cxxBaseSpecifier`.  The support was 
> added in D79063 without a test and I just fill the gaps. 
> 
Oh shoot, good point, we already *have* those tests. :-)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69218/new/

https://reviews.llvm.org/D69218

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to