[clang] [clang] Deduplicate the logic that only warns once when stack is almost full (PR #112552)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 16 07:31:43 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff b333edd0d6da744c099ad3ff3b5fbd2d4e4dd45a 5cd14de144f119c7cf9055a2dc8b18273e0ef28f --extensions h,cpp -- clang/include/clang/Basic/SingleWarningStackAwareExecutor.h clang/lib/Basic/SingleWarningStackAwareExecutor.cpp clang/include/clang/Sema/Sema.h clang/include/clang/Serialization/ASTReader.h clang/lib/CodeGen/CodeGenModule.cpp clang/lib/CodeGen/CodeGenModule.h clang/lib/Sema/Sema.cpp clang/lib/Sema/SemaTemplateInstantiate.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTReaderDecl.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Basic/SingleWarningStackAwareExecutor.cpp b/clang/lib/Basic/SingleWarningStackAwareExecutor.cpp
index 45f5c79973..03d42759c3 100644
--- a/clang/lib/Basic/SingleWarningStackAwareExecutor.cpp
+++ b/clang/lib/Basic/SingleWarningStackAwareExecutor.cpp
@@ -1,4 +1,5 @@
-//===--- SingleWarningStackAwareExecutor.cpp -  - A utility for warning once when
+//===--- SingleWarningStackAwareExecutor.cpp -  - A utility for warning once
+//when
 // close to out of stack space -------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

``````````

</details>


https://github.com/llvm/llvm-project/pull/112552


More information about the cfe-commits mailing list