struct CodeCompletionString::Chunk

Declaration

struct CodeCompletionString::Chunk { /* full declaration omitted */ };

Description

One piece of the code completion string.

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

Member Variables

public clang::CodeCompletionString::ChunkKind Kind = CK_Text
The kind of data stored in this piece of the code completion string.
public anonymous struct / union

Method Overview

  • public Chunk()
  • public Chunk(clang::CodeCompletionString::ChunkKind Kind, const char * Text = "")
  • public static clang::CodeCompletionString::Chunk CreateCurrentParameter(const char * CurrentParameter)
  • public static clang::CodeCompletionString::Chunk CreateInformative(const char * Informative)
  • public static clang::CodeCompletionString::Chunk CreateOptional(clang::CodeCompletionString * Optional)
  • public static clang::CodeCompletionString::Chunk CreatePlaceholder(const char * Placeholder)
  • public static clang::CodeCompletionString::Chunk CreateResultType(const char * ResultType)
  • public static clang::CodeCompletionString::Chunk CreateText(const char * Text)

Methods

Chunk()

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

Chunk(clang::CodeCompletionString::ChunkKind Kind,
      const char* Text = "")

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

Parameters

clang::CodeCompletionString::ChunkKind Kind
const char* Text = ""

static clang::CodeCompletionString::Chunk
CreateCurrentParameter(
    const char* CurrentParameter)

Description

Create a new current-parameter chunk.

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

Parameters

const char* CurrentParameter

static clang::CodeCompletionString::Chunk
CreateInformative(const char* Informative)

Description

Create a new informative chunk.

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

Parameters

const char* Informative

static clang::CodeCompletionString::Chunk
CreateOptional(
    clang::CodeCompletionString* Optional)

Description

Create a new optional chunk.

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

Parameters

clang::CodeCompletionString* Optional

static clang::CodeCompletionString::Chunk
CreatePlaceholder(const char* Placeholder)

Description

Create a new placeholder chunk.

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

Parameters

const char* Placeholder

static clang::CodeCompletionString::Chunk
CreateResultType(const char* ResultType)

Description

Create a new result type chunk.

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

Parameters

const char* ResultType

static clang::CodeCompletionString::Chunk
CreateText(const char* Text)

Description

Create a new text chunk.

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

Parameters

const char* Text