clang 19.0.0git
Static Public Member Functions | List of all members
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 496 of file SourceLocation.h.

Member Function Documentation

◆ getEmptyKey()

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

Definition at line 497 of file SourceLocation.h.

References clang::SourceLocation::getFromRawEncoding().

◆ getHashValue()

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

Definition at line 507 of file SourceLocation.h.

References clang::SourceLocation::getHashValue().

◆ getTombstoneKey()

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

Definition at line 502 of file SourceLocation.h.

References clang::SourceLocation::getFromRawEncoding().

◆ isEqual()

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

Definition at line 511 of file SourceLocation.h.


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