clang 20.0.0git
Macros | Functions | Variables
GlobalModuleIndex.cpp File Reference
#include "clang/Serialization/GlobalModuleIndex.h"
#include "ASTReaderInternals.h"
#include "clang/Basic/FileManager.h"
#include "clang/Serialization/ASTBitCodes.h"
#include "clang/Serialization/ModuleFile.h"
#include "clang/Serialization/PCHContainerOperations.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Bitstream/BitstreamReader.h"
#include "llvm/Bitstream/BitstreamWriter.h"
#include "llvm/Support/DJB.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/LockFileManager.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/OnDiskHashTable.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TimeProfiler.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdio>

Go to the source code of this file.

Macros

#define BLOCK(X)   emitBlockID(X ## _ID, #X, Stream, Record)
 
#define RECORD(X)   emitRecordID(X, #X, Stream, Record)
 

Functions

static void emitBlockID (unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, SmallVectorImpl< uint64_t > &Record)
 
static void emitRecordID (unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, SmallVectorImpl< uint64_t > &Record)
 

Variables

static const char *const IndexFileName = "modules.idx"
 The name of the global index file.
 
static const unsigned CurrentVersion = 1
 The global index file version.
 

Macro Definition Documentation

◆ BLOCK

#define BLOCK (   X)    emitBlockID(X ## _ID, #X, Stream, Record)

◆ RECORD

#define RECORD (   X)    emitRecordID(X, #X, Stream, Record)

Function Documentation

◆ emitBlockID()

static void emitBlockID ( unsigned  ID,
const char *  Name,
llvm::BitstreamWriter &  Stream,
SmallVectorImpl< uint64_t > &  Record 
)
static

Definition at line 457 of file GlobalModuleIndex.cpp.

◆ emitRecordID()

static void emitRecordID ( unsigned  ID,
const char *  Name,
llvm::BitstreamWriter &  Stream,
SmallVectorImpl< uint64_t > &  Record 
)
static

Definition at line 472 of file GlobalModuleIndex.cpp.

Variable Documentation

◆ CurrentVersion

const unsigned CurrentVersion = 1
static

The global index file version.

Definition at line 62 of file GlobalModuleIndex.cpp.

◆ IndexFileName

const char* const IndexFileName = "modules.idx"
static

The name of the global index file.

Definition at line 59 of file GlobalModuleIndex.cpp.

Referenced by clang::GlobalModuleIndex::readIndex(), and clang::GlobalModuleIndex::writeIndex().