[cfe-dev] [clangd-dev] How to identify a Clang QualType is a function pointer?

Sam McCall via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 12 07:12:23 PDT 2018


Doh, of course I meant cfe-dev.
On Wed, Sep 12, 2018 at 4:04 PM Sam McCall <sammccall at google.com> wrote:

> (bcc clangd-dev, I think you want clang-dev)
>
> QType->isFunctionPointerType()?
>
> On Wed, Sep 12, 2018 at 3:55 PM Mustakimur Rahman Khandaker (Mustakim) via
> clangd-dev <clangd-dev at lists.llvm.org> wrote:
>
>> Hi
>> I am trying to identify a function pointer connected to any expression. I
>> am working in Clang code. Assume, I know the QualType of the value, and now
>> want to know if the value is originally a function pointer type, not any
>> other. Like I want to distinguish between *void (*)()* and *int **. Can
>> anyone suggest what functionality (standard, not want to use getAsString
>> and parse it) I can use?
>> ................
>> Mustakim
>> [image: Open Tracking]_______________________________________________
>> clangd-dev mailing list
>> clangd-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180912/a4752678/attachment.html>


More information about the cfe-dev mailing list