[cfe-dev] Accessing the MacroDefinitionRecord corresponding to an IdentifierInfo

Manuel Klimek via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 15 02:08:01 PDT 2015


On Thu, Oct 15, 2015 at 10:35 AM Milian Wolff via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello all,
>
> for my patch http://reviews.llvm.org/D13599, which adds a mapping between
> CXCodeCompleteResult and CXCursor, I am looking for a way to get my hands
> on a
> MacroDefinitionRecord that corresponds to an IdentifierInfo.
>
> See loc 566f in the patch set linked to abve, where I have a
> CodeCompletionResult of Kind RK_Macro and want to create a cursor for it.
> cxcursor::MakeCXCursor takes a MacroDefinitionRecord, but the Result only
> gives me an IdentifierInfo for the macro.
>

+Richard, who is usually your best bet for these kind of questions


>
> Any help appreciated, thanks!
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151015/c66fe03c/attachment.html>


More information about the cfe-dev mailing list