enum Sema::ParserCompletionContext

Description

Describes the context in which code completion occurs.

Declared at: clang/include/clang/Sema/Sema.h:12827

Enumerators

NameValueComment
PCC_Namespace0Code completion occurs at top-level or namespace context.
PCC_Class1Code completion occurs within a class, struct, or union.
PCC_ObjCInterface2Code completion occurs within an Objective-C interface, protocol, or category.
PCC_ObjCImplementation3Code completion occurs within an Objective-C implementation or category implementation
PCC_ObjCInstanceVariableList4Code completion occurs within the list of instance variables in an Objective-C interface, protocol, category, or implementation.
PCC_Template5Code completion occurs following one or more template headers.
PCC_MemberTemplate6Code completion occurs following one or more template headers within a class.
PCC_Expression7Code completion occurs within an expression.
PCC_Statement8Code completion occurs within a statement, which may also be an expression or a declaration.
PCC_ForInit9Code completion occurs at the beginning of the initialization statement (or expression) in a for loop.
PCC_Condition10Code completion occurs within the condition of an if, while, switch, or for statement.
PCC_RecoveryInFunction11Code 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_Type12Code completion occurs where only a type is permitted.
PCC_ParenthesizedExpression13Code completion occurs in a parenthesized expression, which might also be a type cast.
PCC_LocalDeclarationSpecifiers14Code completion occurs within a sequence of declaration specifiers within a function, method, or block.