Accessing the MacroDefinitionRecord corresponding to an IdentifierInfo

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.

Any help appreciated, thanks!

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