[Lldb-commits] [clang] [lldb] [llvm] [mlir] [NFC] Fix formatv() usage in preparation of validation (PR #106454)

via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 28 14:09:30 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 eb9c49c900f43aa79811f80847c97c6596197430 b97456af86580c7f2d4473fbc13d3e345f071486 --extensions cpp -- clang/lib/StaticAnalyzer/Checkers/CheckPlacementNew.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp llvm/tools/llvm-pdbutil/ExplainOutputStyle.cpp llvm/utils/TableGen/IntrinsicEmitter.cpp mlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp mlir/tools/mlir-tblgen/OpFormatGen.cpp mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index 5a863e31a6..82f8718fc5 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -1655,8 +1655,8 @@ void OperationFormat::genElementParser(FormatElement *element, MethodBody &body,
       TypeSwitch<FormatElement *>(dir->getArg())
           .Case<OperandVariable, ResultVariable>([&](auto operand) {
             body << formatv(parserCode,
-                             operand->getVar()->constraint.getCppType(),
-                             listName);
+                            operand->getVar()->constraint.getCppType(),
+                            listName);
           })
           .Default([&](auto operand) {
             body << formatv(parserCode, "::mlir::Type", listName);

``````````

</details>


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


More information about the lldb-commits mailing list