clang 20.0.0git
|
Holds the cache used by isBeforeInTranslationUnit. More...
#include "clang/Basic/SourceManager.h"
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.
|
default |
Definition at line 595 of file SourceManager.h.
|
inline |
If the cache is valid, compute the result given the specified offsets in the LHS/RHS FileID's.
Definition at line 609 of file SourceManager.h.
Referenced by clang::SourceManager::isInTheSameTranslationUnit().
|
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 603 of file SourceManager.h.
References clang::FileID::isValid().
Referenced by clang::SourceManager::isInTheSameTranslationUnit().
|
inline |
Definition at line 637 of file SourceManager.h.
Referenced by clang::SourceManager::isInTheSameTranslationUnit().
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.