clang API Documentation
#include <SourceManager.h>
Public Member Functions | |
| SourceLocation | getIncludeLoc () const |
| const ContentCache * | getContentCache () const |
| CharacteristicKind | getFileCharacteristic () const |
| getCharacteristic - Return whether this is a system header or not. | |
| bool | hasLineDirectives () const |
| void | setHasLineDirectives () |
Static Public Member Functions | |
| static FileInfo | get (SourceLocation IL, const ContentCache *Con, CharacteristicKind FileCharacter) |
| get - Return a FileInfo object. | |
Friends | |
| class | clang::SourceManager |
| class | clang::ASTWriter |
| class | clang::ASTReader |
FileInfo - 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 210 of file SourceManager.h.
| static FileInfo clang::SrcMgr::FileInfo::get | ( | SourceLocation | IL, |
| const ContentCache * | Con, | ||
| CharacteristicKind | FileCharacter | ||
| ) | [inline, static] |
get - Return a FileInfo object.
Definition at line 230 of file SourceManager.h.
| const ContentCache* clang::SrcMgr::FileInfo::getContentCache | ( | ) | const [inline] |
Definition at line 245 of file SourceManager.h.
Referenced by clang::SourceManager::getBufferData(), clang::SourceManager::getCharacterData(), clang::SourceManager::getLineNumber(), clang::SourceManager::getPresumedLoc(), clang::SourceManager::translateFile(), and clang::SourceManager::translateLineCol().
| CharacteristicKind clang::SrcMgr::FileInfo::getFileCharacteristic | ( | ) | const [inline] |
getCharacteristic - Return whether this is a system header or not.
Definition at line 250 of file SourceManager.h.
Referenced by clang::SourceManager::getFileCharacteristic().
| SourceLocation clang::SrcMgr::FileInfo::getIncludeLoc | ( | ) | const [inline] |
Definition at line 242 of file SourceManager.h.
References clang::SourceLocation::getFromRawEncoding().
Referenced by clang::SourceManager::getPresumedLoc(), and MoveUpIncludeHierarchy().
| bool clang::SrcMgr::FileInfo::hasLineDirectives | ( | ) | const [inline] |
hasLineDirectives - Return true if this FileID has #line directives in it.
Definition at line 256 of file SourceManager.h.
Referenced by clang::SourceManager::getFileCharacteristic(), and clang::SourceManager::getPresumedLoc().
| void clang::SrcMgr::FileInfo::setHasLineDirectives | ( | ) | [inline] |
setHasLineDirectives - Set the flag that indicates that this FileID has line table entries associated with it.
Definition at line 260 of file SourceManager.h.
friend class clang::ASTReader [friend] |
Definition at line 227 of file SourceManager.h.
friend class clang::ASTWriter [friend] |
Definition at line 226 of file SourceManager.h.
friend class clang::SourceManager [friend] |
Definition at line 225 of file SourceManager.h.