clang 22.0.0git
clang::ASTFileSignature Struct Reference

The signature of a module, which is a hash of the AST content. More...

#include "clang/Basic/Module.h"

Inheritance diagram for clang::ASTFileSignature:
[legend]

Public Types

using BaseT = std::array<uint8_t, 20>

Public Member Functions

 ASTFileSignature (BaseT S={{0}})
 operator bool () const
 operator ArrayRef< uint8_t > () const
uint64_t truncatedValue () const
 Returns the value truncated to the size of an uint64_t.

Static Public Member Functions

static ASTFileSignature create (std::array< uint8_t, 20 > Bytes)
static ASTFileSignature createDISentinel ()
static ASTFileSignature createDummy ()
template<typename InputIt>
static ASTFileSignature create (InputIt First, InputIt Last)

Static Public Attributes

static constexpr size_t size = std::tuple_size<BaseT>::value

Detailed Description

The signature of a module, which is a hash of the AST content.

Definition at line 58 of file Module.h.

Member Typedef Documentation

◆ BaseT

using clang::ASTFileSignature::BaseT = std::array<uint8_t, 20>

Definition at line 59 of file Module.h.

Constructor & Destructor Documentation

◆ ASTFileSignature()

clang::ASTFileSignature::ASTFileSignature ( BaseT S = {{0}})
inline

Definition at line 63 of file Module.h.

Referenced by create(), create(), createDISentinel(), and createDummy().

Member Function Documentation

◆ create() [1/2]

template<typename InputIt>
ASTFileSignature clang::ASTFileSignature::create ( InputIt First,
InputIt Last )
inlinestatic

Definition at line 98 of file Module.h.

References ASTFileSignature(), clang::First, clang::Last, and size.

◆ create() [2/2]

ASTFileSignature clang::ASTFileSignature::create ( std::array< uint8_t, 20 > Bytes)
inlinestatic

Definition at line 81 of file Module.h.

References ASTFileSignature().

Referenced by readASTFileSignature().

◆ createDISentinel()

ASTFileSignature clang::ASTFileSignature::createDISentinel ( )
inlinestatic

Definition at line 85 of file Module.h.

References ASTFileSignature().

◆ createDummy()

ASTFileSignature clang::ASTFileSignature::createDummy ( )
inlinestatic

Definition at line 91 of file Module.h.

References ASTFileSignature().

Referenced by readASTFileSignature().

◆ operator ArrayRef< uint8_t >()

clang::ASTFileSignature::operator ArrayRef< uint8_t > ( ) const
inline

Definition at line 70 of file Module.h.

References size.

◆ operator bool()

clang::ASTFileSignature::operator bool ( ) const
inlineexplicit

Definition at line 65 of file Module.h.

◆ truncatedValue()

uint64_t clang::ASTFileSignature::truncatedValue ( ) const
inline

Returns the value truncated to the size of an uint64_t.

Definition at line 73 of file Module.h.

Member Data Documentation

◆ size

size_t clang::ASTFileSignature::size = std::tuple_size<BaseT>::value
staticconstexpr

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