enum CodeCompletionContext::Kind
Declared at: clang/include/clang/Sema/CodeCompleteConsumer.h:189
Enumerators
| Name | Value | Comment |
|---|---|---|
| CCC_Other | 0 | An unspecified code-completion context. |
| CCC_OtherWithMacros | 1 | An unspecified code-completion context where we should also add macro completions. |
| CCC_TopLevel | 2 | Code completion occurred within a "top-level" completion context, e.g., at namespace or global scope. |
| CCC_ObjCInterface | 3 | Code completion occurred within an Objective-C interface, protocol, or category interface. |
| CCC_ObjCImplementation | 4 | Code completion occurred within an Objective-C implementation or category implementation. |
| CCC_ObjCIvarList | 5 | Code completion occurred within the instance variable list of an Objective-C interface, implementation, or category implementation. |
| CCC_ClassStructUnion | 6 | Code completion occurred within a class, struct, or union. |
| CCC_Statement | 7 | Code completion occurred where a statement (or declaration) is expected in a function, method, or block. |
| CCC_Expression | 8 | Code completion occurred where an expression is expected. |
| CCC_ObjCMessageReceiver | 9 | Code completion occurred where an Objective-C message receiver is expected. |
| CCC_DotMemberAccess | 10 | Code 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_ArrowMemberAccess | 11 | Code 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_ObjCPropertyAccess | 12 | Code 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_EnumTag | 13 | Code completion occurred after the "enum" keyword, to indicate an enumeration name. |
| CCC_UnionTag | 14 | Code completion occurred after the "union" keyword, to indicate a union name. |
| CCC_ClassOrStructTag | 15 | Code completion occurred after the "struct" or "class" keyword, to indicate a struct or class name. |
| CCC_ObjCProtocolName | 16 | Code completion occurred where a protocol name is expected. |
| CCC_Namespace | 17 | Code completion occurred where a namespace or namespace alias is expected. |
| CCC_Type | 18 | Code completion occurred where a type name is expected. |
| CCC_NewName | 19 | Code completion occurred where a new name is expected. |
| CCC_SymbolOrNewName | 20 | Code completion occurred where both a new name and an existing symbol is permissible. |
| CCC_Symbol | 21 | Code completion occurred where an existing name(such as type, function or variable) is expected. |
| CCC_MacroName | 22 | Code completion occurred where an macro is being defined. |
| CCC_MacroNameUse | 23 | Code completion occurred where a macro name is expected (without any arguments, in the case of a function-like macro). |
| CCC_PreprocessorExpression | 24 | Code completion occurred within a preprocessor expression. |
| CCC_PreprocessorDirective | 25 | Code completion occurred where a preprocessor directive is expected. |
| CCC_NaturalLanguage | 26 | Code 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_SelectorName | 27 | Code completion for a selector, as in an @ selector expression. |
| CCC_TypeQualifiers | 28 | Code completion within a type-qualifier list. |
| CCC_ParenthesizedExpression | 29 | Code 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_ObjCInstanceMessage | 30 | Code completion where an Objective-C instance message is expected. |
| CCC_ObjCClassMessage | 31 | Code completion where an Objective-C class message is expected. |
| CCC_ObjCInterfaceName | 32 | Code completion where the name of an Objective-C class is expected. |
| CCC_ObjCCategoryName | 33 | Code completion where an Objective-C category name is expected. |
| CCC_IncludedFile | 34 | Code completion inside the filename part of a #include directive. |
| CCC_Attribute | 35 | Code completion of an attribute name. |
| CCC_Recovery | 36 | An unknown context, in which we are recovering from a parsing error and don't know which completions we should give. |