clang: clang::HeaderMapImpl Class Reference (original) (raw)

Implementation for HeaderMap that doesn't depend on FileManager. More...

#include "[clang/Lex/HeaderMap.h](HeaderMap%5F8h%5Fsource.html)"

Public Member Functions
HeaderMapImpl (std::unique_ptr< const llvm::MemoryBuffer > File, bool NeedsBSwap)
template<typename Func >
void forEachKey (Func Callback) const
StringRef lookupFilename (StringRef Filename, SmallVectorImpl< char > &DestPath) const
If the specified relative filename is located in this HeaderMap return the filename it is mapped to, otherwise return an empty StringRef.
StringRef getFileName () const
Return the filename of the headermap.
void dump () const
Print the contents of this headermap to stderr.
StringRef reverseLookupFilename (StringRef DestPath) const
Return key for specifed path.

Implementation for HeaderMap that doesn't depend on FileManager.

Definition at line 31 of file HeaderMap.h.

clang::HeaderMapImpl::HeaderMapImpl ( std::unique_ptr< const llvm::MemoryBuffer > File, bool NeedsBSwap ) inline

checkHeader()

bool HeaderMapImpl::checkHeader ( const llvm::MemoryBuffer & File, bool & NeedsByteSwap ) static

dump()

LLVM_DUMP_METHOD void HeaderMapImpl::dump ( ) const

forEachKey()

template<typename Func >

void clang::HeaderMapImpl::forEachKey ( Func Callback) const inline

getFileName()

StringRef HeaderMapImpl::getFileName ( ) const

Return the filename of the headermap.

getFileName - Return the filename of the headermap.

Definition at line 109 of file HeaderMap.cpp.

Referenced by dump().

lookupFilename()

StringRef HeaderMapImpl::lookupFilename ( StringRef Filename,
SmallVectorImpl< char > & DestPath
) const

reverseLookupFilename()

StringRef HeaderMapImpl::reverseLookupFilename ( StringRef DestPath ) const

The documentation for this class was generated from the following files: