15#ifndef LLVM_CLANG_BASIC_STACK_EXHAUSTION_HANDLER_H
16#define LLVM_CLANG_BASIC_STACK_EXHAUSTION_HANDLER_H
30 llvm::function_ref<
void()> Fn);
41 bool WarnedStackExhausted =
false;
Defines the Diagnostic-related interfaces.
Concrete class used by the front-end to report problems and issues.
Encodes a location in the source.
void warnOnStackNearlyExhausted(SourceLocation Loc)
Check to see if we're low on stack space and produce a warning if we're low on stack space (Currently...
void runWithSufficientStackSpace(SourceLocation Loc, llvm::function_ref< void()> Fn)
Run some code with "sufficient" stack space.
StackExhaustionHandler(DiagnosticsEngine &diags)
The JSON file list parser is used to communicate input to InstallAPI.