ΒΆenum CXCursorKind
clang_codeCompleteGetContainerKind(
    CXCodeCompleteResults* Results,
    unsigned int* IsIncomplete)

Description

Returns the cursor kind for the container for the current code completion context. The container is only guaranteed to be set for contexts where a container exists (i.e. member accesses or Objective-C message sends); if there is not a container, this function will return CXCursor_InvalidCode.

Declared at: clang/include/clang-c/Index.h:5952

Parameters

CXCodeCompleteResults* Results
the code completion results to query
unsigned int* IsIncomplete
on return, this value will be false if Clang has complete information about the container. If Clang does not have complete information, this value will be true.

Returns

the container kind, or CXCursor_InvalidCode if there is not a container