/* Retrieve the parent context of the given completion string. The parent context of a completion string is the semantic parent of the declaration (if any) that the code completion represents. For example, a code completion for an Objective-C method would have the method's class or protocol as its context. Parameter completion_string The code completion string whose parent is being queried. Parameter kind DEPRECATED: always set to CXCursor_NotImplemented if non-NULL. Returns The name of the completion parent, e.g., "NSObject" if the completion string represents a method in the NSObject class. */ func (cs CompletionString) Parent(kind *CursorKind) string { var cp_kind C.enum_CXCursorKind if kind != nil { cp_kind = C.enum_CXCursorKind(*kind) } o := cxstring{C.clang_getCompletionParent(cs.c, &cp_kind)} defer o.Dispose() return o.String() }
/** * \brief Retrieve the parent context of the given completion string. * * The parent context of a completion string is the semantic parent of * the declaration (if any) that the code completion represents. For example, * a code completion for an Objective-C method would have the method's class * or protocol as its context. * * \param completion_string The code completion string whose parent is * being queried. * * \param kind DEPRECATED: always set to CXCursor_NotImplemented if non-NULL. * * \returns The name of the completion parent, e.g., "NSObject" if * the completion string represents a method in the NSObject class. */ func (cs CompletionString) CompletionParent() string { o := cxstring{C.clang_getCompletionParent(cs.c, nil)} defer o.Dispose() return o.String() }