clang API Documentation

Public Attributes
clang::ASTUnit::CachedCodeCompletionResult Struct Reference

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

#include <ASTUnit.h>

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

List of all members.

Public Attributes

CodeCompletionStringCompletion
 The code-completion string corresponding to this completion result.
unsigned 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

The availability of this code-completion result.

Definition at line 293 of file ASTUnit.h.

The code-completion string corresponding to this completion result.

Definition at line 273 of file ASTUnit.h.

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

Definition at line 290 of file ASTUnit.h.

The priority given to this code-completion result.

Definition at line 286 of file ASTUnit.h.

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, subtract one from the completion context kind and shift 1 by that number of bits. Many completions can occur in several different contexts.

Definition at line 283 of file ASTUnit.h.

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 304 of file ASTUnit.h.

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

Definition at line 296 of file ASTUnit.h.


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