[cfe-dev] "SkipFunctionBodies" causes isCursorDefinition == false for function definitions
David Röthlisberger
david at rothlis.net
Wed Jul 25 00:22:25 PDT 2012
On 23 Jul 2012, at 04:20, Douglas Gregor wrote:
>
> On Jul 21, 2012, at 11:21 AM, David Röthlisberger <david at rothlis.net> wrote:
>
>> When I pass CXTranslationUnit_SkipFunctionBodies to
>> clang_parseTranslationUnit, clang_isCursorDefinition returns false for
>> function definitions.
>>
>> Is this a bug? It certainly is inconvenient when using libclang for
>> ctags-style indexing.
>>
>> If it's a bug I'll work on submitting a test case.
>
> Yes, this is a bug.
I raised http://www.llvm.org/bugs/show_bug.cgi?id=13453
with a test case attached.
Cheers,
Dave.
More information about the cfe-dev
mailing list