summaryrefslogtreecommitdiff
path: root/mlir/tools/mlir-tblgen/OpFormatGen.cpp
diff options
context:
space:
mode:
authorJeff Niu <jeff@modular.com>2022-07-14 13:31:47 -0700
committerJeff Niu <jeff@modular.com>2022-07-14 13:32:13 -0700
commitb7f93c28096fc8503e4d2d80c43ee2c0ccce480f (patch)
tree31597ae54bf43b89ed139d0d8717073ae38ef024 /mlir/tools/mlir-tblgen/OpFormatGen.cpp
parentedee61b55cf9f2b57d68ef8bcd8b5dcd3296ecab (diff)
downloadllvm-b7f93c28096fc8503e4d2d80c43ee2c0ccce480f.tar.gz
[mlir] (NFC) run clang-format on all files
Diffstat (limited to 'mlir/tools/mlir-tblgen/OpFormatGen.cpp')
-rw-r--r--mlir/tools/mlir-tblgen/OpFormatGen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index 54190aac15fa..c3b9ded76e8b 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -2147,7 +2147,8 @@ void OperationFormat::genPrinter(Operator &op, OpClass &opClass) {
/// Function to find an element within the given range that has the same name as
/// 'name'.
-template <typename RangeT> static auto findArg(RangeT &&range, StringRef name) {
+template <typename RangeT>
+static auto findArg(RangeT &&range, StringRef name) {
auto it = llvm::find_if(range, [=](auto &arg) { return arg.name == name; });
return it != range.end() ? &*it : nullptr;
}