[Mlir-commits] [mlir] [mlir][drr] Use fully qualified name in getValueAndRangeUse (PR #139847)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue May 13 22:34:36 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 -- mlir/lib/TableGen/Pattern.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/TableGen/Pattern.cpp b/mlir/lib/TableGen/Pattern.cpp
index e36a7f814..13541de66 100644
--- a/mlir/lib/TableGen/Pattern.cpp
+++ b/mlir/lib/TableGen/Pattern.cpp
@@ -304,8 +304,8 @@ std::string SymbolInfoMap::SymbolInfo::getValueAndRangeUse(
     assert(index < 0);
     auto *operand = cast<NamedTypeConstraint *>(op->getArg(getArgIndex()));
     if (operand->isOptional()) {
-      auto repl =
-          formatv(fmt, formatv("({0}.empty() ? ::mlir::Value() : *{0}.begin())", name));
+      auto repl = formatv(
+          fmt, formatv("({0}.empty() ? ::mlir::Value() : *{0}.begin())", name));
       LLVM_DEBUG(dbgs() << repl << " (OptionalOperand)\n");
       return std::string(repl);
     }

``````````

</details>


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


More information about the Mlir-commits mailing list