enum CodeCompletionString::ChunkKind

Description

The different kinds of "chunks" that can occur within a code completion string.

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

Enumerators

NameValueComment
CK_TypedText0The piece of text that the user is expected to type to match the code-completion string, typically a keyword or the name of a declarator or macro.
CK_Text1A piece of text that should be placed in the buffer, e.g., parentheses or a comma in a function call.
CK_Optional2A code completion string that is entirely optional. For example, an optional code completion string that describes the default arguments in a function call.
CK_Placeholder3A string that acts as a placeholder for, e.g., a function call argument.
CK_Informative4A piece of text that describes something about the result but should not be inserted into the buffer.
CK_ResultType5A piece of text that describes the type of an entity or, for functions and methods, the return type.
CK_CurrentParameter6A piece of text that describes the parameter that corresponds to the code-completion location within a function call, message send, macro invocation, etc.
CK_LeftParen7A left parenthesis ('(').
CK_RightParen8A right parenthesis (')').
CK_LeftBracket9A left bracket ('[').
CK_RightBracket10A right bracket (']').
CK_LeftBrace11A left brace ('{').
CK_RightBrace12A right brace ('}').
CK_LeftAngle13A left angle bracket (' < ').
CK_RightAngle14A right angle bracket ('>').
CK_Comma15A comma separator (',').
CK_Colon16A colon (':').
CK_SemiColon17A semicolon (';').
CK_Equal18An '=' sign.
CK_HorizontalSpace19Horizontal whitespace (' ').
CK_VerticalSpace20Vertical whitespace (' \ n' or ' \ r \ n', depending on the platform).