<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>Hi, I would like to use clang-tidy to analyze the inheritance relationship between classes defined in a c++ file. I was going to use</div><div>¡°it=CXXRecordDecl->bases_begin()---CXXRecordDecl->bases_end()</div><div>it->getBeginLoc().getRawEncoding()¡±</div><div>to solve the problem.</div><div>For example, for the graph below, I wanted to first get the location encoding of B, assuming it was b, and then when analyzing D, get the base location encoding of D which is also the location encoding of B, d. I originally thought that b==d,so I can identify a relation between B and D, however, this was not the case. So I would like to know if there is any other way that I can establish a relationship with its parent class when I get the cxxRecordDecl of D.</div><br><img src="cid:2D37415F@F6290601.E08EDD61.png" style="" id="img_insert_164190979400105136720689284733"><div>thank you very much!<br><br></div>