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

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


(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/clangd-dev/attachments/20180912/c205f8e3/attachment.html>


More information about the clangd-dev mailing list