<div dir="ltr"><div>Hi everyone, </div><div><br></div><div>I am just starting out with Clang and working for a project where I am trying to generate and compare ASTs to measure code similarity.</div><div><br></div><div>I figured around a way using Clang to get the AST, but it turns out I am expected to use Libtooling. Anyone have an example where I can parse C++ code to generate an AST using Libtooling. Also, would love design suggestions regarding comparing tree similarity. any examples with explanations would be really helpful. </div><div><br></div><div>Thanking you.</div><div><br></div><div>Sincerely,</div><div>Saurav</div></div>