<div dir="ltr">Hello,<div><br></div><div>is there a particular reason why clang::ast_matchers::match (<a href="http://clang.llvm.org/doxygen/classclang_1_1ast__matchers_1_1MatchFinder.html#a8b5a0b1b4d21c32009ad9e75ef8d5502">http://clang.llvm.org/doxygen/classclang_1_1ast__matchers_1_1MatchFinder.html#a8b5a0b1b4d21c32009ad9e75ef8d5502</a>) requires a non-const reference to a clang::ASTContext, but the matchresuly only has a const clang::ASTContext *field? This makes it hard to further apply matchers on the match result.</div><div><br></div><div>At least conceptually, shouldn't the AST matcher not modify the AST it operates on (and therefore be able to accept a const context)? </div><div>If  the AST matcher has state that some matchers might modify, should we instead return a mutable ASTContext in matchresult? </div><div><br></div><div>Regards,</div><div>Julian </div></div>