<div dir="ltr">As the AST is not really a Tree as it seems to have circular references, working with the AST is sometimes a bit messy (eg. cloning).<div><br></div><div>A while ago Stroustroup pointed me to Gabriel Dos Reis' work on a different approach to represent C++-AST: <a href="https://mailtrack.io/trace/link/a5c184fad2cf94fbf0449fa233263072ebc34ea8?url=https%3A%2F%2Fgithub.com%2FGabrielDosReis%2Fipr&signature=9a19f2a0a41d5ceb">https://github.com/GabrielDosReis/ipr</a></div><div><br></div><div>Did anyone try to integrate his work into clang or has an opinion to share ?<br></div><img width="0" height="0" class="mailtrack-img" src="https://mailtrack.io/trace/mail/96ca32a20993f41b338d6ad7c9912d81a9b4e624.png?u=931501"></div>