Clang Project

clang_source_code/include/clang/Basic/Stack.h
1//===--- Stack.h - Utilities for dealing with stack space -------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file
10/// Defines utilities for dealing with stack allocation and stack space.
11///
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_BASIC_STACK_H
15#define LLVM_CLANG_BASIC_STACK_H
16
17#include <cstddef>
18
19namespace clang {
20  /// The amount of stack space that Clang would like to be provided with.
21  /// If less than this much is available, we may be unable to reach our
22  /// template instantiation depth limit and other similar limits.
23  constexpr size_t DesiredStackSize = 8 << 20;
24// end namespace clang
25
26#endif // LLVM_CLANG_BASIC_STACK_H
27