enum CodeCompletionContext::Kind

Declared at: clang/include/clang/Sema/CodeCompleteConsumer.h:189

Enumerators

NameValueComment
CCC_Other0An unspecified code-completion context.
CCC_OtherWithMacros1An unspecified code-completion context where we should also add macro completions.
CCC_TopLevel2Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope.
CCC_ObjCInterface3Code completion occurred within an Objective-C interface, protocol, or category interface.
CCC_ObjCImplementation4Code completion occurred within an Objective-C implementation or category implementation.
CCC_ObjCIvarList5Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation.
CCC_ClassStructUnion6Code completion occurred within a class, struct, or union.
CCC_Statement7Code completion occurred where a statement (or declaration) is expected in a function, method, or block.
CCC_Expression8Code completion occurred where an expression is expected.
CCC_ObjCMessageReceiver9Code completion occurred where an Objective-C message receiver is expected.
CCC_DotMemberAccess10Code completion occurred on the right-hand side of a member access expression using the dot operator.The results of this completion are the members of the type being accessed. The type itself is available via\c CodeCompletionContext::getType().
CCC_ArrowMemberAccess11Code completion occurred on the right-hand side of a member access expression using the arrow operator.The results of this completion are the members of the type being accessed. The type itself is available via\c CodeCompletionContext::getType().
CCC_ObjCPropertyAccess12Code completion occurred on the right-hand side of an Objective-C property access expression.The results of this completion are the members of the type being accessed. The type itself is available via\c CodeCompletionContext::getType().
CCC_EnumTag13Code completion occurred after the "enum" keyword, to indicate an enumeration name.
CCC_UnionTag14Code completion occurred after the "union" keyword, to indicate a union name.
CCC_ClassOrStructTag15Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name.
CCC_ObjCProtocolName16Code completion occurred where a protocol name is expected.
CCC_Namespace17Code completion occurred where a namespace or namespace alias is expected.
CCC_Type18Code completion occurred where a type name is expected.
CCC_NewName19Code completion occurred where a new name is expected.
CCC_SymbolOrNewName20Code completion occurred where both a new name and an existing symbol is permissible.
CCC_Symbol21Code completion occurred where an existing name(such as type, function or variable) is expected.
CCC_MacroName22Code completion occurred where an macro is being defined.
CCC_MacroNameUse23Code completion occurred where a macro name is expected (without any arguments, in the case of a function-like macro).
CCC_PreprocessorExpression24Code completion occurred within a preprocessor expression.
CCC_PreprocessorDirective25Code completion occurred where a preprocessor directive is expected.
CCC_NaturalLanguage26Code completion occurred in a context where natural language is expected, e.g., a comment or string literal.This context usually implies that no completions should be added, unless they come from an appropriate natural-language dictionary.
CCC_SelectorName27Code completion for a selector, as in an @ selector expression.
CCC_TypeQualifiers28Code completion within a type-qualifier list.
CCC_ParenthesizedExpression29Code completion in a parenthesized expression, which means that we may also have types here in C and Objective-C (as well as in C++).
CCC_ObjCInstanceMessage30Code completion where an Objective-C instance message is expected.
CCC_ObjCClassMessage31Code completion where an Objective-C class message is expected.
CCC_ObjCInterfaceName32Code completion where the name of an Objective-C class is expected.
CCC_ObjCCategoryName33Code completion where an Objective-C category name is expected.
CCC_IncludedFile34Code completion inside the filename part of a #include directive.
CCC_Attribute35Code completion of an attribute name.
CCC_Recovery36An unknown context, in which we are recovering from a parsing error and don't know which completions we should give.