[llvm] [TableGen] Allow empty terminator in SequenceToOffsetTable (PR #119751)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 12:00: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 6cfad635d5aaa01abb82edc386329d8ed25078e1 f02218f2e7b32a6525531af6f78ddb3fd2c7fc21 --extensions cpp,h -- llvm/utils/TableGen/AsmWriterEmitter.cpp llvm/utils/TableGen/Basic/SequenceToOffsetTable.h llvm/utils/TableGen/DFAEmitter.cpp llvm/utils/TableGen/DXILEmitter.cpp llvm/utils/TableGen/InstrInfoEmitter.cpp llvm/utils/TableGen/IntrinsicEmitter.cpp llvm/utils/TableGen/RegisterInfoEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/utils/TableGen/DFAEmitter.cpp b/llvm/utils/TableGen/DFAEmitter.cpp
index 6879d2b1f2..a42c615879 100644
--- a/llvm/utils/TableGen/DFAEmitter.cpp
+++ b/llvm/utils/TableGen/DFAEmitter.cpp
@@ -125,10 +125,8 @@ void DfaEmitter::emit(StringRef Name, raw_ostream &OS) {
   Table.layout();
   OS << "const std::array<NfaStatePair, " << Table.size() << "> " << Name
      << "TransitionInfo = {{\n";
-  Table.emit(
-      OS,
-      [](raw_ostream &OS, std::pair<uint64_t, uint64_t> P) {
-        OS << "{" << P.first << ", " << P.second << "}";
+  Table.emit(OS, [](raw_ostream &OS, std::pair<uint64_t, uint64_t> P) {
+    OS << "{" << P.first << ", " << P.second << "}";
   });
 
   OS << "}};\n\n";

``````````

</details>


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


More information about the llvm-commits mailing list