clang API Documentation

Public Member Functions
clang::ExternalSLocEntrySource Class Reference

External source of source location entries. More...

#include <SourceManager.h>

Inheritance diagram for clang::ExternalSLocEntrySource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ExternalSLocEntrySource ()
virtual bool ReadSLocEntry (int ID)=0
 Read the source location entry with index ID, which will always be less than -1.
virtual std::pair
< SourceLocation, StringRef > 
getModuleImportLoc (int ID)=0
 Retrieve the module import location and name for the given ID, if in fact it was loaded from a module (rather than, say, a precompiled header).

Detailed Description

External source of source location entries.

Definition at line 443 of file SourceManager.h.


Constructor & Destructor Documentation

Definition at line 2131 of file SourceManager.cpp.


Member Function Documentation

virtual std::pair<SourceLocation, StringRef> clang::ExternalSLocEntrySource::getModuleImportLoc ( int  ID) [pure virtual]

Retrieve the module import location and name for the given ID, if in fact it was loaded from a module (rather than, say, a precompiled header).

Implemented in clang::ASTReader.

Referenced by clang::SourceManager::getModuleImportLoc().

virtual bool clang::ExternalSLocEntrySource::ReadSLocEntry ( int  ID) [pure virtual]

Read the source location entry with index ID, which will always be less than -1.

Returns:
true if an error occurred that prevented the source-location entry from being loaded.

Implemented in clang::ASTReader.


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