<div dir="ltr"><div><div><div><div><div>Dear cfe-dev,<br><br></div>It looks like there is a general interest in the community to have support for writing tools that have cross translation capabilities unit based on Clang.<br><br>The Static Analyzer community is working towards adding cross translation unit analysis support for the Analyzer (<a href="https://reviews.llvm.org/D30691">https://reviews.llvm.org/D30691</a>). Some of the changes are independent of the Analyzer and could be reused in any tools that required cross-TU capabilities (<a href="https://reviews.llvm.org/D34512">https://reviews.llvm.org/D34512</a>).<br><br></div>For this reason, we considered adding this functionality to the LibTooling component. However, this would also introduce LibTooling as a dependency of the Clang binary, since the Static Analyzer is the part of Clang.<br></div><br></div>I run some quick benchmarks about the binary size (using static linking on Linux).<br><br>Release: 85457072 -> 85505864<br><div>Debug: 1777932672 -> 1779938696<br><br></div><div>The increase is about 0,1% in the worst case. This can also mean slightly increased link times and the clang binary needs to be recompiled when there is a tooling related change.<br><br>The question is, is it ok for the community to have this dependency or should we introduce a new component instead of putting this functionality in LibTooling?<br><br></div><div>Regards,<br></div><div>Gábor<br></div></div></div>