[cfe-dev] "SkipFunctionBodies" causes isCursorDefinition == false for function definitions

David Röthlisberger david at rothlis.net
Sat Jul 21 11:21:31 PDT 2012


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.

Thanks,
Dave.




More information about the cfe-dev mailing list