[llvm] [NFC] [DebugCounter] warn if --debug-counter is unused in NDEBUG (PR #143057)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 09:55:51 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Support/DebugCounter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/DebugCounter.cpp b/llvm/lib/Support/DebugCounter.cpp
index 41776db63..9eaa8a679 100644
--- a/llvm/lib/Support/DebugCounter.cpp
+++ b/llvm/lib/Support/DebugCounter.cpp
@@ -174,7 +174,8 @@ void DebugCounter::push_back(const std::string &Val) {
return;
#ifdef NDEBUG
// isCountingEnabled is hardcoded to false in NDEBUG.
- errs() << "Requested --debug-counter in LLVM build without assertions. This is a "
+ errs() << "Requested --debug-counter in LLVM build without assertions. This "
+ "is a "
"no-op.\n";
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/143057
More information about the llvm-commits
mailing list