clang 20.0.0git
Public Types | Static Public Member Functions | List of all members
clang::SourceLocationEncoding Class Reference

Serialized encoding of SourceLocations without context. More...

#include "clang/Serialization/SourceLocationEncoding.h"

Public Types

using RawLocEncoding = uint64_t
 

Static Public Member Functions

static RawLocEncoding encode (SourceLocation Loc, UIntTy BaseOffset, unsigned BaseModuleFileIndex, SourceLocationSequence *=nullptr)
 
static std::pair< SourceLocation, unsigneddecode (RawLocEncoding, SourceLocationSequence *=nullptr)
 

Detailed Description

Serialized encoding of SourceLocations without context.

Optimized to have small unsigned values (=> small after VBR encoding).

Definition at line 47 of file SourceLocationEncoding.h.

Member Typedef Documentation

◆ RawLocEncoding

Definition at line 60 of file SourceLocationEncoding.h.

Member Function Documentation

◆ decode()

std::pair< SourceLocation, unsigned > clang::SourceLocationEncoding::decode ( RawLocEncoding  Encoded,
SourceLocationSequence Seq = nullptr 
)
inlinestatic

◆ encode()

SourceLocationEncoding::RawLocEncoding clang::SourceLocationEncoding::encode ( SourceLocation  Loc,
UIntTy  BaseOffset,
unsigned  BaseModuleFileIndex,
SourceLocationSequence Seq = nullptr 
)
inlinestatic

Definition at line 162 of file SourceLocationEncoding.h.

References Loc, and clang::Seq.

Referenced by clang::ASTWriter::getRawSourceLocationEncoding().


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