enum Sema::ParserCompletionContext
Description
Describes the context in which code completion occurs.
Declared at: clang/include/clang/Sema/Sema.h:12827
Enumerators
| Name | Value | Comment |
|---|---|---|
| PCC_Namespace | 0 | Code completion occurs at top-level or namespace context. |
| PCC_Class | 1 | Code completion occurs within a class, struct, or union. |
| PCC_ObjCInterface | 2 | Code completion occurs within an Objective-C interface, protocol, or category. |
| PCC_ObjCImplementation | 3 | Code completion occurs within an Objective-C implementation or category implementation |
| PCC_ObjCInstanceVariableList | 4 | Code completion occurs within the list of instance variables in an Objective-C interface, protocol, category, or implementation. |
| PCC_Template | 5 | Code completion occurs following one or more template headers. |
| PCC_MemberTemplate | 6 | Code completion occurs following one or more template headers within a class. |
| PCC_Expression | 7 | Code completion occurs within an expression. |
| PCC_Statement | 8 | Code completion occurs within a statement, which may also be an expression or a declaration. |
| PCC_ForInit | 9 | Code completion occurs at the beginning of the initialization statement (or expression) in a for loop. |
| PCC_Condition | 10 | Code completion occurs within the condition of an if, while, switch, or for statement. |
| PCC_RecoveryInFunction | 11 | Code completion occurs within the body of a function on a recovery path, where we do not have a specific handle on our position in the grammar. |
| PCC_Type | 12 | Code completion occurs where only a type is permitted. |
| PCC_ParenthesizedExpression | 13 | Code completion occurs in a parenthesized expression, which might also be a type cast. |
| PCC_LocalDeclarationSpecifiers | 14 | Code completion occurs within a sequence of declaration specifiers within a function, method, or block. |