clang 22.0.0git
llvm::DenseMapInfo< clang::SourceLocation, void > Struct Reference

Define DenseMapInfo so that SourceLocation's can be used as keys in DenseMap and DenseSet. More...

#include "clang/Basic/SourceLocation.h"

Static Public Member Functions

static clang::SourceLocation getEmptyKey ()
static clang::SourceLocation getTombstoneKey ()
static unsigned getHashValue (clang::SourceLocation Loc)
static bool isEqual (clang::SourceLocation LHS, clang::SourceLocation RHS)

Detailed Description

Define DenseMapInfo so that SourceLocation's can be used as keys in DenseMap and DenseSet.

This trait class is eqivalent to DenseMapInfo<unsigned> which uses SourceLocation::ID is used as a key.

Definition at line 499 of file SourceLocation.h.

Member Function Documentation

◆ getEmptyKey()

clang::SourceLocation llvm::DenseMapInfo< clang::SourceLocation, void >::getEmptyKey ( )
inlinestatic

Definition at line 500 of file SourceLocation.h.

References clang::SourceLocation::getFromRawEncoding().

◆ getHashValue()

unsigned llvm::DenseMapInfo< clang::SourceLocation, void >::getHashValue ( clang::SourceLocation Loc)
inlinestatic

Definition at line 510 of file SourceLocation.h.

References clang::SourceLocation::getHashValue().

◆ getTombstoneKey()

clang::SourceLocation llvm::DenseMapInfo< clang::SourceLocation, void >::getTombstoneKey ( )
inlinestatic

Definition at line 505 of file SourceLocation.h.

References clang::SourceLocation::getFromRawEncoding().

◆ isEqual()

bool llvm::DenseMapInfo< clang::SourceLocation, void >::isEqual ( clang::SourceLocation LHS,
clang::SourceLocation RHS )
inlinestatic

Definition at line 514 of file SourceLocation.h.


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