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
Name | Value | Comment |
---|---|---|
CK_TypedText | 0 | The 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_Text | 1 | A piece of text that should be placed in the buffer, e.g., parentheses or a comma in a function call. |
CK_Optional | 2 | A code completion string that is entirely optional. For example, an optional code completion string that describes the default arguments in a function call. |
CK_Placeholder | 3 | A string that acts as a placeholder for, e.g., a function call argument. |
CK_Informative | 4 | A piece of text that describes something about the result but should not be inserted into the buffer. |
CK_ResultType | 5 | A piece of text that describes the type of an entity or, for functions and methods, the return type. |
CK_CurrentParameter | 6 | A piece of text that describes the parameter that corresponds to the code-completion location within a function call, message send, macro invocation, etc. |
CK_LeftParen | 7 | A left parenthesis ('('). |
CK_RightParen | 8 | A right parenthesis (')'). |
CK_LeftBracket | 9 | A left bracket ('['). |
CK_RightBracket | 10 | A right bracket (']'). |
CK_LeftBrace | 11 | A left brace ('{'). |
CK_RightBrace | 12 | A right brace ('}'). |
CK_LeftAngle | 13 | A left angle bracket (' < '). |
CK_RightAngle | 14 | A right angle bracket ('>'). |
CK_Comma | 15 | A comma separator (','). |
CK_Colon | 16 | A colon (':'). |
CK_SemiColon | 17 | A semicolon (';'). |
CK_Equal | 18 | An '=' sign. |
CK_HorizontalSpace | 19 | Horizontal whitespace (' '). |
CK_VerticalSpace | 20 | Vertical whitespace (' \ n' or ' \ r \ n', depending on the platform). |