clang API Documentation

Public Member Functions
clang::InBeforeInTUCacheEntry Class Reference

Holds the cache used by isBeforeInTranslationUnit. More...

#include <SourceManager.h>

List of all members.

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)

Detailed Description

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.


Member Function Documentation

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().

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().


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