clang API Documentation

Defines | Enumerations | Functions | Variables
GlobalModuleIndex.cpp File Reference
#include "ASTReaderInternals.h"
#include "clang/Basic/FileManager.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Serialization/ASTBitCodes.h"
#include "clang/Serialization/GlobalModuleIndex.h"
#include "clang/Serialization/Module.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Bitcode/BitstreamReader.h"
#include "llvm/Bitcode/BitstreamWriter.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 <cstdio>
Include dependency graph for GlobalModuleIndex.cpp:

Go to the source code of this file.

Defines

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

Enumerations

enum  
enum  IndexRecordTypes
 Describes the record types in the index. More...

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.

Define Documentation

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

Enumeration Type Documentation

anonymous enum

Definition at line 39 of file GlobalModuleIndex.cpp.

Describes the record types in the index.

Definition at line 45 of file GlobalModuleIndex.cpp.


Function Documentation

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

Definition at line 431 of file GlobalModuleIndex.cpp.

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

Definition at line 446 of file GlobalModuleIndex.cpp.


Variable Documentation

const unsigned CurrentVersion = 1 [static]

The global index file version.

Definition at line 60 of file GlobalModuleIndex.cpp.

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

The name of the global index file.

Definition at line 57 of file GlobalModuleIndex.cpp.

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