[llvm] [DebugNames] Compare TableEntry names more efficiently (PR #79759)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 28 08:55:08 PST 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 380ac53dfa05792c6f9fd0a4aba542f8c7e5e17c 1f8cecf9daa5c633b3382143b3b91465292595cb -- llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
index 748f6481c1..ffb013e59c 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
@@ -554,7 +554,8 @@ public:
       auto DataSize = Data.size();
       auto TargetSize = Target.size();
 
-      // Invariant: at the start of the loop, we have non-null characters to read from Data.
+      // Invariant: at the start of the loop, we have non-null characters to
+      // read from Data.
       size_t Idx = 0;
       for (; Idx < DataSize && Data[Idx]; Idx++) {
         if (Idx >= TargetSize || Data[Idx] != Target[Idx])

``````````

</details>


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


More information about the llvm-commits mailing list