clang API Documentation
Holds the cache used by isBeforeInTranslationUnit. More...
#include <SourceManager.h>
Public Member Functions | |
bool | isCacheValid (FileID LHS, FileID RHS) const |
Return true if the currently cached values match up with the specified LHS/RHS query. | |
bool | getCachedResult (unsigned LOffset, unsigned ROffset) const |
If the cache is valid, compute the result given the specified offsets in the LHS/RHS FileID's. | |
void | setQueryFIDs (FileID LHS, FileID RHS, bool isLFIDBeforeRFID) |
Set up a new query. | |
void | clear () |
void | setCommonLoc (FileID commonFID, unsigned lCommonOffset, unsigned rCommonOffset) |
Holds the cache used by isBeforeInTranslationUnit.
The cache structure is complex enough to be worth breaking out of SourceManager.
Definition at line 465 of file SourceManager.h.
void clang::InBeforeInTUCacheEntry::clear | ( | ) | [inline] |
Definition at line 522 of file SourceManager.h.
Referenced by clang::SourceManager::isBeforeInTranslationUnit().
bool clang::InBeforeInTUCacheEntry::getCachedResult | ( | unsigned | LOffset, |
unsigned | ROffset | ||
) | const [inline] |
If the cache is valid, compute the result given the specified offsets in the LHS/RHS FileID's.
Definition at line 497 of file SourceManager.h.
Referenced by clang::SourceManager::isBeforeInTranslationUnit().
bool clang::InBeforeInTUCacheEntry::isCacheValid | ( | FileID | LHS, |
FileID | RHS | ||
) | const [inline] |
Return true if the currently cached values match up with the specified LHS/RHS query.
If not, we can't use the cache.
Definition at line 491 of file SourceManager.h.
Referenced by clang::SourceManager::isBeforeInTranslationUnit().
void clang::InBeforeInTUCacheEntry::setCommonLoc | ( | FileID | commonFID, |
unsigned | lCommonOffset, | ||
unsigned | rCommonOffset | ||
) | [inline] |
Definition at line 527 of file SourceManager.h.
Referenced by clang::SourceManager::isBeforeInTranslationUnit().
void clang::InBeforeInTUCacheEntry::setQueryFIDs | ( | FileID | LHS, |
FileID | RHS, | ||
bool | isLFIDBeforeRFID | ||
) | [inline] |
Set up a new query.
Definition at line 515 of file SourceManager.h.
Referenced by clang::SourceManager::isBeforeInTranslationUnit().