clang 22.0.0git
HeaderMap.cpp File Reference
#include "clang/Lex/HeaderMap.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/FileManager.h"
#include "clang/Lex/HeaderMapTypes.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include <cstring>
#include <memory>
#include <optional>

Go to the source code of this file.

Functions

static unsigned HashHMapKey (StringRef Str)
 HashHMapKey - This is the 'well known' hash function required by the file format, used to look up keys in the hash table.

Function Documentation

◆ HashHMapKey()

unsigned HashHMapKey ( StringRef Str)
inlinestatic

HashHMapKey - This is the 'well known' hash function required by the file format, used to look up keys in the hash table.

The hash table uses simple linear probing based on this function.

Definition at line 29 of file HeaderMap.cpp.

References clang::toLowercase().

Referenced by clang::HeaderMapImpl::lookupFilename().