clang 20.0.0git
Public Attributes | List of all members
clang::ASTUnit::CachedCodeCompletionResult Struct Reference

A cached code-completion result, which may be introduced in one of many different contexts. More...

#include "clang/Frontend/ASTUnit.h"

Public Attributes

CodeCompletionStringCompletion
 The code-completion string corresponding to this completion result.
 
uint64_t ShowInContexts
 A bitmask that indicates which code-completion contexts should contain this completion result.
 
unsigned Priority
 The priority given to this code-completion result.
 
CXCursorKind Kind
 The libclang cursor kind corresponding to this code-completion result.
 
CXAvailabilityKind Availability
 The availability of this code-completion result.
 
SimplifiedTypeClass TypeClass
 The simplified type class for a non-macro completion result.
 
unsigned Type
 The type of a non-macro completion result, stored as a unique integer used by the string map of cached completion types.
 

Detailed Description

A cached code-completion result, which may be introduced in one of many different contexts.

Definition at line 270 of file ASTUnit.h.

Member Data Documentation

◆ Availability

CXAvailabilityKind clang::ASTUnit::CachedCodeCompletionResult::Availability

The availability of this code-completion result.

Definition at line 292 of file ASTUnit.h.

◆ Completion

CodeCompletionString* clang::ASTUnit::CachedCodeCompletionResult::Completion

The code-completion string corresponding to this completion result.

Definition at line 273 of file ASTUnit.h.

◆ Kind

CXCursorKind clang::ASTUnit::CachedCodeCompletionResult::Kind

The libclang cursor kind corresponding to this code-completion result.

Definition at line 289 of file ASTUnit.h.

◆ Priority

unsigned clang::ASTUnit::CachedCodeCompletionResult::Priority

The priority given to this code-completion result.

Definition at line 285 of file ASTUnit.h.

◆ ShowInContexts

uint64_t clang::ASTUnit::CachedCodeCompletionResult::ShowInContexts

A bitmask that indicates which code-completion contexts should contain this completion result.

The bits in the bitmask correspond to the values of CodeCompleteContext::Kind. To map from a completion context kind to a bit, shift 1 by that number of bits. Many completions can occur in several different contexts.

Definition at line 282 of file ASTUnit.h.

◆ Type

unsigned clang::ASTUnit::CachedCodeCompletionResult::Type

The type of a non-macro completion result, stored as a unique integer used by the string map of cached completion types.

This value will be zero if the type is not known, or a unique value determined by the formatted type string. Se CachedCompletionTypes for more information.

Definition at line 303 of file ASTUnit.h.

◆ TypeClass

SimplifiedTypeClass clang::ASTUnit::CachedCodeCompletionResult::TypeClass

The simplified type class for a non-macro completion result.

Definition at line 295 of file ASTUnit.h.


The documentation for this struct was generated from the following file: