[cfe-dev] Help Request: Libclang on Windows (C++11)
james.dennett at gmail.com
Tue Jun 2 17:26:29 PDT 2015
On Tue, Jun 2, 2015 at 1:50 PM, Bobby Anguelov <bobby.anguelov at outlook.com>
> I’m emailing this list in the hopes that someone might be able to help me.
> I am currently using libclang to do some very basic reflection of C++. I am
> creating a translation unit for a header and then visiting all the tree
> elements using the cursors, in some cases I fall back onto the qualtypes to
> get the necessary information out. The problem that I’m having right now is
> that the cursor type libclang return for std::vector (and other std types
> like std::map ) is incorrect. It looks like libclang can’t identify the
> type and falls back onto default int as I am getting a type spelling of
> “int” for fields of type std::vector.
> Given the example header file below:
> #include <vector>
> #include <string>
Typically this means your headers weren't found, so parsing might have
failed in other ways also. You might want to see if any diagnostics are
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev