clang  10.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 220 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 228 of file ASTBitCodes.h.

Member Function Documentation

◆ getLocation()

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

Definition at line 235 of file ASTBitCodes.h.

References clang::SourceLocation::getFromRawEncoding().

Referenced by isConsumerInterestedIn().

◆ setLocation()

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

Definition at line 231 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 225 of file ASTBitCodes.h.

Referenced by isConsumerInterestedIn().

◆ Loc

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

Raw source location.

Definition at line 222 of file ASTBitCodes.h.

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