class CrossTranslationUnitContext::ASTLoadGuard
Declaration
class CrossTranslationUnitContext::ASTLoadGuard { /* full declaration omitted */ };
Description
Maintain number of AST loads and check for reaching the load limit.
Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:271
Member Variables
- private unsigned int Count = {0U}
- The number of ASTs actually imported.
- private const unsigned int Limit
- The limit (threshold) value for number of loaded ASTs.
Method Overview
- public ASTLoadGuard(unsigned int Limit)
- public void indicateLoadSuccess()
- public bool operator bool() const
Methods
¶ASTLoadGuard(unsigned int Limit)
ASTLoadGuard(unsigned int Limit)
Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:273
Parameters
- unsigned int Limit
¶void indicateLoadSuccess()
void indicateLoadSuccess()
Description
Tell that a new AST was loaded successfully.
Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:280
¶bool operator bool() const
bool operator bool() const
Description
Indicates, whether a new load operation is permitted, it is within the threshold.
Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:277