clang 23.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 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 509 of file SourceLocation.h.

Member Function Documentation

◆ getHashValue()

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

Definition at line 510 of file SourceLocation.h.

References clang::SourceLocation::getHashValue().

◆ 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: