<div dir="ltr"><div dir="ltr">On Wed, 10 Feb 2021 at 10:49, David Blaikie via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'd guess 'bases()' probably gives direct base classes and vbases()<br>
probably gives direct virtual base classes, eg:<br>
<br>
struct x : y, virtual z { };<br>
<br>
probably 'bases()' contains 'y' and 'vbases()' contains 'z' - but test<br>
it and find out?<br></blockquote><div><br></div><div>bases() gives all direct bases (whether virtual or not), and vbases() gives all virtual bases (whether direct or not).</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Wed, Feb 10, 2021 at 4:51 AM Deep Majumder via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hello everyone,<br>
> While trying to iterate over the base classes of a class/struct represented by a CXXRecordDecl, I found two methods: one is bases() and the other is bases().<br>
> Is it that bases() returns all instantiable base classes, while vbases() returns all abstract base classes? Or is it something different?<br>
> Warm regards,<br>
> Deep<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>