[cfe-dev] const identified as built in type in clang

Laszlo Nagy rizsotto.mailinglist at gmail.com
Thu Oct 9 08:26:31 PDT 2014


hi Himanshu Mishra,

you might want to read this
<http://clang.llvm.org/docs/InternalsManual.html#the-ast-library> to get
answer for your question.

regards,
Laszlo

On Thu, Oct 9, 2014 at 1:42 PM, Himanshu Mishra <h.mishra at samsung.com>
wrote:

>  Hi,
>
>
>
> Actually i was trying to separate built in type from keywords using
> CXTypeKind. If it is in range from CXType_FirstBuiltIn to CXType_LastBuilIn
> but
>
> in case it is "const int x;" It return the const also as CXType_Int , But
> const is a keyword and not Built In Type. So is there any way to
> differentiate these kind of keywords
>
> from Builtin types. Problem will be with volatile, restrict and few other
> keywords like this.
>
>
>
> Regards,
>
> Himanshu Mishra
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141009/823d7ea4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 201410091712808_BEI0XT4N.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141009/823d7ea4/attachment.gif>


More information about the cfe-dev mailing list