A global index for a set of module files, providing information about the identifiers within those module files. More...
#include "clang/Serialization/GlobalModuleIndex.h"
A global index for a set of module files, providing information about the identifiers within those module files.
The global index is an aid for name lookup into modules, offering a central place where one can look for identifiers determine which module files contain any information about that identifier. This allows the client to restrict the search to only those module files known to have a information about that identifier, improving performance. Moreover, the global module index may know about module files that have not been imported, and can be queried to determine which modules the current translation could or should load to fix a problem.
Definition at line 54 of file GlobalModuleIndex.h.
◆ HitSet ◆ ~GlobalModuleIndex() ◆ createIdentifierIterator()Returns an iterator for identifiers stored in the index table.
The caller accepts ownership of the returned object.
Definition at line 938 of file GlobalModuleIndex.cpp.
◆ dump() LLVM_DUMP_METHOD void GlobalModuleIndex::dump ( ) ◆ getModuleDependencies() ◆ loadedModuleFile() ◆ lookupIdentifier() bool GlobalModuleIndex::lookupIdentifier ( llvm::StringRef Name, HitSet & Hits )Look for all of the module files with information about the given identifier, e.g., a global function, variable, or type with that name.
Definition at line 301 of file GlobalModuleIndex.cpp.
References clang::File.
Referenced by clang::CompilerInstance::lookupMissingImports().
◆ printStats() void GlobalModuleIndex::printStats ( ) ◆ readIndex() std::pair< GlobalModuleIndex *, llvm::Error > GlobalModuleIndex::readIndex ( llvm::StringRef Path ) staticRead a global index file for the given directory.
The main bitstream cursor for the main block.
Definition at line 252 of file GlobalModuleIndex.cpp.
References clang::C, IndexFileName, and Path.
Referenced by clang::ASTReader::loadGlobalIndex().
◆ writeIndex()The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4