[cfe-dev] "SkipFunctionBodies" causes isCursorDefinition == false for function definitions
Douglas Gregor
dgregor at apple.com
Sun Jul 22 20:20:12 PDT 2012
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.
- Doug
More information about the cfe-dev
mailing list