[clang] [clang] Deduplicate the logic that only warns once when stack is almost full (PR #112371)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 02:11:16 PDT 2024
================
@@ -1183,7 +1181,7 @@ class Sema final : public SemaBase {
std::optional<std::unique_ptr<DarwinSDKInfo>> CachedDarwinSDKInfo;
bool WarnedDarwinSDKInfoMissing = false;
- bool WarnedStackExhausted = false;
+ SingleWarningStackAwareExecutor StackAwareExecutor;
----------------
ChuanqiXu9 wrote:
Abstractly, we can generate codes without constructing a Sema by loading the AST file by ASTUnit and generate it. So I'd like to make them seperate.
https://github.com/llvm/llvm-project/pull/112371
More information about the cfe-commits
mailing list