clang: clang::InBeforeInTUCacheEntry Class Reference (original) (raw)
Holds the cache used by isBeforeInTranslationUnit. More...
#include "[clang/Basic/SourceManager.h](SourceManager%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
InBeforeInTUCacheEntry ()=default | |
InBeforeInTUCacheEntry (FileID L, FileID R) | |
bool | isCacheValid () 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) |
Set up a new query. | |
void | setCommonLoc (FileID commonFID, unsigned lCommonOffset, unsigned rCommonOffset, bool LParentBeforeRParent) |
Holds the cache used by isBeforeInTranslationUnit.
The cache structure is complex enough to be worth breaking out of SourceManager.
Definition at line 571 of file SourceManager.h.
clang::InBeforeInTUCacheEntry::InBeforeInTUCacheEntry ( ) | default |
---|
◆ InBeforeInTUCacheEntry() [2/2]
clang::InBeforeInTUCacheEntry::InBeforeInTUCacheEntry ( FileID L, FileID R ) | inline |
---|
◆ getCachedResult()
bool clang::InBeforeInTUCacheEntry::getCachedResult ( unsigned LOffset, unsigned ROffset ) const | inline |
---|
◆ isCacheValid()
bool clang::InBeforeInTUCacheEntry::isCacheValid ( ) const | inline |
---|
◆ setCommonLoc()
void clang::InBeforeInTUCacheEntry::setCommonLoc ( FileID commonFID, unsigned lCommonOffset, unsigned rCommonOffset, bool LParentBeforeRParent ) | inline |
---|
◆ setQueryFIDs()
void clang::InBeforeInTUCacheEntry::setQueryFIDs ( FileID LHS, FileID RHS ) | inline |
---|
Set up a new query.
If it matches the old query, we can keep the cached answer.
Definition at line 628 of file SourceManager.h.
The documentation for this class was generated from the following file:
- include/clang/Basic/SourceManager.h