class SourceLocationEncoding

Declaration

class SourceLocationEncoding { /* full declaration omitted */ };

Description

Serialized encoding of SourceLocations without context. Optimized to have small unsigned values (=> small after VBR encoding).

Declared at: clang/include/clang/Serialization/SourceLocationEncoding.h:42

Member Variables

private static const unsigned int UIntBits = 8 * sizeof(unsigned int)

Method Overview

  • public static clang::SourceLocation decode(uint64_t, clang::SourceLocationSequence * = nullptr)
  • private static clang::SourceLocationEncoding::UIntTy decodeRaw(clang::SourceLocationEncoding::UIntTy Raw)
  • public static uint64_t encode(clang::SourceLocation Loc, clang::SourceLocationSequence * = nullptr)
  • private static clang::SourceLocationEncoding::UIntTy encodeRaw(clang::SourceLocationEncoding::UIntTy Raw)

Methods

static clang::SourceLocation decode(
    uint64_t,
    clang::SourceLocationSequence* = nullptr)

Declared at: clang/include/clang/Serialization/SourceLocationEncoding.h:57

Parameters

uint64_t
clang::SourceLocationSequence* = nullptr

static clang::SourceLocationEncoding::UIntTy
decodeRaw(
    clang::SourceLocationEncoding::UIntTy Raw)

Declared at: clang/include/clang/Serialization/SourceLocationEncoding.h:49

Parameters

clang::SourceLocationEncoding::UIntTy Raw

static uint64_t encode(
    clang::SourceLocation Loc,
    clang::SourceLocationSequence* = nullptr)

Declared at: clang/include/clang/Serialization/SourceLocationEncoding.h:55

Parameters

clang::SourceLocation Loc
clang::SourceLocationSequence* = nullptr

static clang::SourceLocationEncoding::UIntTy
encodeRaw(
    clang::SourceLocationEncoding::UIntTy Raw)

Declared at: clang/include/clang/Serialization/SourceLocationEncoding.h:46

Parameters

clang::SourceLocationEncoding::UIntTy Raw