[llvm] Revert "[llvm] properly guard dump methods in Support lib classes" (PR #139927)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 09:19:24 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,h -- llvm/include/llvm/ADT/APFixedPoint.h llvm/include/llvm/ADT/APFloat.h llvm/include/llvm/ADT/APInt.h llvm/include/llvm/ADT/DynamicAPInt.h llvm/include/llvm/ADT/SlowDynamicAPInt.h llvm/include/llvm/ADT/TrieRawHashMap.h llvm/include/llvm/ADT/Twine.h llvm/include/llvm/Support/BalancedPartitioning.h llvm/include/llvm/Support/BranchProbability.h llvm/include/llvm/Support/DebugCounter.h llvm/include/llvm/Support/KnownBits.h llvm/include/llvm/Support/SMTAPI.h llvm/include/llvm/Support/ScaledNumber.h llvm/lib/Support/APFixedPoint.cpp llvm/lib/Support/BalancedPartitioning.cpp llvm/lib/Support/DebugCounter.cpp llvm/lib/Support/DynamicAPInt.cpp llvm/lib/Support/KnownBits.cpp llvm/lib/Support/ScaledNumber.cpp llvm/lib/Support/SlowDynamicAPInt.cpp llvm/lib/Support/Z3Solver.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 a6de07a55..97973d638 100644
--- a/llvm/lib/Support/DebugCounter.cpp
+++ b/llvm/lib/Support/DebugCounter.cpp
@@ -248,6 +248,4 @@ bool DebugCounter::shouldExecuteImpl(unsigned CounterName) {
   return true;
 }
 
-LLVM_DUMP_METHOD void DebugCounter::dump() const {
-  print(dbgs());
-}
+LLVM_DUMP_METHOD void DebugCounter::dump() const { print(dbgs()); }

``````````

</details>


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


More information about the llvm-commits mailing list