clang 22.0.0git
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)
static std::pair< SourceLocation, unsigneddecode (RawLocEncoding)

Detailed Description

Serialized encoding of SourceLocations without context.

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

Definition at line 44 of file SourceLocationEncoding.h.

Member Typedef Documentation

◆ RawLocEncoding

Definition at line 56 of file SourceLocationEncoding.h.

Member Function Documentation

◆ decode()

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

◆ encode()

SourceLocationEncoding::RawLocEncoding clang::SourceLocationEncoding::encode ( SourceLocation Loc,
UIntTy BaseOffset,
unsigned BaseModuleFileIndex )
inlinestatic

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