<div dir="ltr"><div><div><div><div>Hi!<br><br></div>It looks like there is a consensus to accept the cross translation unit analysis patch into the clang static analyzer: <a href="https://reviews.llvm.org/D30691">https://reviews.llvm.org/D30691</a><br><br></div><div>There is one part of the patch that is independent of the static analyzer. The logic which can look up a function in an index and load a serialized AST that contains the definition of the function.<br></div><div>The lookup is cached, and after the AST is loaded, the function definition will be merged into the original AST.<br><br></div><div>Right now, in the current patch, this functionality is in the ASTContext. This is definitely not the right place to put this. So the question is, do you plan to utilize similar functionality in Clang tooling or clang tidy?<br><br></div><div>If yes, we might end up creating a new module for that (or add it to an existing commonly used one like libtooling?). If no, we will move the corresponding code to the static analyzer.<br><br></div><div>What do you think?  <br></div><div><br></div>In case you are interested in how it works, you can check out the EuroLLVM talk: <a href="http://llvm.org/devmtg/2017-03//2017/02/20/accepted-sessions.html#7">http://llvm.org/devmtg/2017-03//2017/02/20/accepted-sessions.html#7</a><br><br></div>Regards,<br></div>Gábor<br></div>