777650d799
So far we create our DeclCollector in the CIFactory and then tried to get this variable back in the IncrementalParser by casting the ASTConsumer of our compiler instance to a DeclCollector. This strategy fails as soon as we want to have multiple collectors and start using the clang multiplexer as this call will now fail (e.g. in this case to have another ASTConsumer that looks in the C++ modules case for what libraries we need to link - and the best way to add this is via the multiplexed ASTConsumer that clang provides). This patch moves the responsibility for the DeclCollector to the caller that relies on getting a DeclCollector back, which is in this case the constructor of IncrementalParser. |
||
---|---|---|
.. | ||
Interpreter | ||
MetaProcessor | ||
UserInterface | ||
Utils | ||
CMakeLists.txt |