clang
7.0.0
|
One piece of the code completion string. More...
#include "clang/Sema/CodeCompleteConsumer.h"
Public Member Functions | |
Chunk () | |
Chunk (ChunkKind Kind, const char *Text="") | |
Static Public Member Functions | |
static Chunk | CreateText (const char *Text) |
Create a new text chunk. More... | |
static Chunk | CreateOptional (CodeCompletionString *Optional) |
Create a new optional chunk. More... | |
static Chunk | CreatePlaceholder (const char *Placeholder) |
Create a new placeholder chunk. More... | |
static Chunk | CreateInformative (const char *Informative) |
Create a new informative chunk. More... | |
static Chunk | CreateResultType (const char *ResultType) |
Create a new result type chunk. More... | |
static Chunk | CreateCurrentParameter (const char *CurrentParameter) |
Create a new current-parameter chunk. More... | |
Public Attributes | |
ChunkKind | Kind = CK_Text |
The kind of data stored in this piece of the code completion string. More... | |
union { | |
const char * Text | |
The text string associated with a CK_Text, CK_Placeholder, CK_Informative, or CK_Comma chunk. More... | |
CodeCompletionString * Optional | |
The code completion string associated with a CK_Optional chunk. More... | |
}; | |
One piece of the code completion string.
Definition at line 502 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 520 of file CodeCompleteConsumer.h.
References Text.
Referenced by clang::CodeCompletionBuilder::AddChunk(), clang::CodeCompletionBuilder::AddTypedTextChunk(), CreateCurrentParameter(), CreateInformative(), CreatePlaceholder(), CreateResultType(), and CreateText().
|
explicit |
Definition at line 167 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionString::CK_Colon, clang::CodeCompletionString::CK_Comma, clang::CodeCompletionString::CK_CurrentParameter, clang::CodeCompletionString::CK_Equal, clang::CodeCompletionString::CK_HorizontalSpace, clang::CodeCompletionString::CK_Informative, clang::CodeCompletionString::CK_LeftAngle, clang::CodeCompletionString::CK_LeftBrace, clang::CodeCompletionString::CK_LeftBracket, clang::CodeCompletionString::CK_LeftParen, clang::CodeCompletionString::CK_Optional, clang::CodeCompletionString::CK_Placeholder, clang::CodeCompletionString::CK_ResultType, clang::CodeCompletionString::CK_RightAngle, clang::CodeCompletionString::CK_RightBrace, clang::CodeCompletionString::CK_RightBracket, clang::CodeCompletionString::CK_RightParen, clang::CodeCompletionString::CK_SemiColon, clang::CodeCompletionString::CK_Text, clang::CodeCompletionString::CK_TypedText, clang::CodeCompletionString::CK_VerticalSpace, and Text.
|
static |
Create a new current-parameter chunk.
Definition at line 269 of file CodeCompleteConsumer.cpp.
References Chunk(), and clang::CodeCompletionString::CK_CurrentParameter.
Referenced by clang::CodeCompletionBuilder::AddCurrentParameterChunk().
|
static |
Create a new informative chunk.
Definition at line 259 of file CodeCompleteConsumer.cpp.
References Chunk(), and clang::CodeCompletionString::CK_Informative.
Referenced by clang::CodeCompletionBuilder::AddInformativeChunk().
|
static |
Create a new optional chunk.
Definition at line 246 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionString::CK_Optional, Kind, Optional, and clang::Result.
Referenced by clang::CodeCompletionBuilder::AddOptionalChunk().
|
static |
Create a new placeholder chunk.
Definition at line 254 of file CodeCompleteConsumer.cpp.
References Chunk(), and clang::CodeCompletionString::CK_Placeholder.
Referenced by clang::CodeCompletionBuilder::AddPlaceholderChunk().
|
static |
Create a new result type chunk.
Definition at line 264 of file CodeCompleteConsumer.cpp.
References Chunk(), and clang::CodeCompletionString::CK_ResultType.
Referenced by clang::CodeCompletionBuilder::AddResultTypeChunk().
|
static |
Create a new text chunk.
Definition at line 241 of file CodeCompleteConsumer.cpp.
References Chunk(), and clang::CodeCompletionString::CK_Text.
Referenced by clang::CodeCompletionBuilder::AddTextChunk().
union { ... } |
The kind of data stored in this piece of the code completion string.
Definition at line 505 of file CodeCompleteConsumer.h.
Referenced by CreateOptional().
CodeCompletionString* clang::CodeCompletionString::Chunk::Optional |
The code completion string associated with a CK_Optional chunk.
The optional code completion string is owned by the chunk, and will be deallocated (with delete) when the chunk is destroyed.
Definition at line 517 of file CodeCompleteConsumer.h.
Referenced by CreateOptional().
const char* clang::CodeCompletionString::Chunk::Text |
The text string associated with a CK_Text, CK_Placeholder, CK_Informative, or CK_Comma chunk.
The string is owned by the chunk and will be deallocated (with delete[]) when the chunk is destroyed.
Definition at line 512 of file CodeCompleteConsumer.h.
Referenced by Chunk().