clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::SrcMgr::FileInfo Class Reference

Information about a FileID, basically just the logical file that it represents and include stack information. More...

#include <SourceManager.h>

List of all members.

Public Member Functions

SourceLocation getIncludeLoc () const
const ContentCachegetContentCache () const
CharacteristicKind getFileCharacteristic () const
 Return whether this is a system header or not.
bool hasLineDirectives () const
 Return true if this FileID has #line directives in it.
void setHasLineDirectives ()
 Set the flag that indicates that this FileID has line table entries associated with it.

Static Public Member Functions

static FileInfo get (SourceLocation IL, const ContentCache *Con, CharacteristicKind FileCharacter)
 Return a FileInfo object.

Friends

class clang::SourceManager
class clang::ASTWriter
class clang::ASTReader

Detailed Description

Information about a FileID, basically just the logical file that it represents and include stack information.

Each FileInfo has include stack information, indicating where it came from. This information encodes the #include chain that a token was expanded from. The main include file has an invalid IncludeLoc.

FileInfos contain a "ContentCache *", with the contents of the file.

Definition at line 251 of file SourceManager.h.


Member Function Documentation

static FileInfo clang::SrcMgr::FileInfo::get ( SourceLocation  IL,
const ContentCache Con,
CharacteristicKind  FileCharacter 
) [inline, static]

Return a FileInfo object.

Definition at line 273 of file SourceManager.h.

References X.

Return whether this is a system header or not.

Definition at line 293 of file SourceManager.h.

Referenced by clang::SourceManager::getFileCharacteristic(), and clang::ASTImporter::Import().

Return true if this FileID has #line directives in it.

Definition at line 298 of file SourceManager.h.

Referenced by clang::SourceManager::getFileCharacteristic(), clang::SourceManager::getPresumedLoc(), and clang::SourceManager::isInMainFile().

Set the flag that indicates that this FileID has line table entries associated with it.

Definition at line 302 of file SourceManager.h.

Referenced by clang::ASTReader::ReadSLocEntry().


Friends And Related Function Documentation

friend class clang::ASTReader [friend]

Definition at line 270 of file SourceManager.h.

friend class clang::ASTWriter [friend]

Definition at line 269 of file SourceManager.h.

friend class clang::SourceManager [friend]

Definition at line 268 of file SourceManager.h.


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