<div dir="ltr">Hi guys. I'm trying to get a SourceLocation for a couple of points in the source. So for:<div><br></div><div><font face="courier new, monospace">class Foo<b><HERE></b>: public Bar <b><AND HERE></b>{</font></div><div><font face="courier new, monospace"><br></font></div>Starting from a CXXRecordDecl (which I get from RecursiveASTVisitor::VisitCXXRecordDecl()), currently I am only able to get the location before the <i>class</i> keyword (with TagDecl::getInnerLocStart()) and after it (TagDecl::getOuterLocStart()).<div><br></div><div>I've been struggling with this for a while now, and the documentation really isn't helping. There are many missing enums and member functions in the docs. Am I supposed to use the lexer somehow? How? Am I supposed to use VisitTypeLoc()? I dunno, help!</div><div><br></div><div>This is for a source translation tool that translates a small subset of C++ to JS. So:</div><div><br></div><div><font face="courier new, monospace">class Foo: public Bar {</font></div><div><font face="courier new, monospace">    Foo(int x, float y) {</font></div><div><br></div><div>Becomes:</div><div><br></div><div><font face="courier new, monospace">function Foo(x, y) {</font></div><div><font face="courier new, monospace">...</font></div><div><font face="courier new, monospace">}</font></div><div><font face="courier new, monospace">// Do some inheritance stuff for Bar</font></div><div><br></div></div>