[cfe-dev] How to use compilerInstance to analyze multiple cpp file
klimek at google.com
Mon Dec 23 03:39:22 PST 2013
I'd suggest you either use http://clang.llvm.org/docs/LibTooling.html, or
look at the code in lib/Tooling, which supports exactly what you need; the
tl;dr is that it's not trivial to set up :)
On Thu, Dec 19, 2013 at 12:47 PM, lotay <158481612 at qq.com> wrote:
> Add one file as main FileEntry in the FileManager, and add other cpp file
> "normal" FileEntry-s (not the Main FileEntry).
> For example,
> main function locates in the Main.cpp, while Main.cpp include other header
> files, these header file "XXX.h" contain namespace, class and its methods
> declaration, while the implementation of these methods locate in "own"
> "XXX.cpp" files,
> The question is whether I can add these cpp files in the FileManager as
> "normal" FileEntrys.
> Thanks in advance.....
> View this message in context:
> Sent from the Clang Developers mailing list archive at Nabble.com.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev