clang  6.0.0svn
Public Member Functions | Public Attributes | List of all members
clang::serialization::DeclOffset Struct Reference

Source range/offset of a preprocessed entity. More...

#include "clang/Serialization/ASTBitCodes.h"

Collaboration diagram for clang::serialization::DeclOffset:
Collaboration graph

Public Member Functions

 DeclOffset ()=default
 DeclOffset (SourceLocation Loc, uint32_t BitOffset)
void setLocation (SourceLocation L)
SourceLocation getLocation () const

Public Attributes

unsigned Loc = 0
 Raw source location. More...
uint32_t BitOffset = 0
 Offset in the AST file. More...

Detailed Description

Source range/offset of a preprocessed entity.

Definition at line 202 of file ASTBitCodes.h.

Constructor & Destructor Documentation

◆ DeclOffset() [1/2]

clang::serialization::DeclOffset::DeclOffset ( )

◆ DeclOffset() [2/2]

clang::serialization::DeclOffset::DeclOffset ( SourceLocation  Loc,
uint32_t  BitOffset 

Definition at line 210 of file ASTBitCodes.h.

Member Function Documentation

◆ getLocation()

SourceLocation clang::serialization::DeclOffset::getLocation ( ) const

Definition at line 217 of file ASTBitCodes.h.

References clang::SourceLocation::getFromRawEncoding().

◆ setLocation()

void clang::serialization::DeclOffset::setLocation ( SourceLocation  L)

Definition at line 213 of file ASTBitCodes.h.

References clang::SourceLocation::getRawEncoding().

Member Data Documentation

◆ BitOffset

uint32_t clang::serialization::DeclOffset::BitOffset = 0

Offset in the AST file.

Definition at line 207 of file ASTBitCodes.h.

◆ Loc

unsigned clang::serialization::DeclOffset::Loc = 0

Raw source location.

Definition at line 204 of file ASTBitCodes.h.

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