clang  6.0.0svn
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"

Collaboration diagram for clang::ASTUnit::CachedCodeCompletionResult:
Collaboration graph
[legend]

Public Attributes

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

Detailed Description

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

Definition at line 248 of file ASTUnit.h.

Member Data Documentation

◆ Availability

CXAvailabilityKind clang::ASTUnit::CachedCodeCompletionResult::Availability

The availability of this code-completion result.

Definition at line 270 of file ASTUnit.h.

◆ Completion

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

The code-completion string corresponding to this completion result.

Definition at line 251 of file ASTUnit.h.

◆ Kind

CXCursorKind clang::ASTUnit::CachedCodeCompletionResult::Kind

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

Definition at line 267 of file ASTUnit.h.

◆ Priority

unsigned clang::ASTUnit::CachedCodeCompletionResult::Priority

The priority given to this code-completion result.

Definition at line 263 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 260 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 281 of file ASTUnit.h.

◆ TypeClass

SimplifiedTypeClass clang::ASTUnit::CachedCodeCompletionResult::TypeClass

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

Definition at line 273 of file ASTUnit.h.


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