[cfe-dev] [libTooling] Custom vfs::FileSystem for ClangTool
poleski.maciej at gmail.com
Thu May 28 03:12:01 PDT 2015
Dnia czwartek, 28 maja 2015 09:32:04 piszesz:
> > The general problem is that I have some file system abstraction in IDE
> > (KDevelop - DocumentController) and want to provide custom VFS on top of
> > this abstraction for Tooling (possibly ClangTool). This would make file
> > accesses from Clang be consistent with IDE accesses.
> And you're saying it's not possible to set that up by providing the
> contents of the files in the tooling interfaces for overlay? Can you expand
> on why?
Using ClangTool::mapVirtualFile? It is possible but I'm a bit worried about performance in such a case. This would require loading all input files into memory. On big code bases this could be a problem.
More information about the cfe-dev