[Mlir-commits] [mlir] f628d6c - Apply clang-tidy fixes for modernize-use-using in SparseBufferRewriting.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Oct 12 09:23:35 PDT 2022


Author: Mehdi Amini
Date: 2022-10-12T16:22:43Z
New Revision: f628d6c3e865d319f828bd69bb22500fffe1ea0b

URL: https://github.com/llvm/llvm-project/commit/f628d6c3e865d319f828bd69bb22500fffe1ea0b
DIFF: https://github.com/llvm/llvm-project/commit/f628d6c3e865d319f828bd69bb22500fffe1ea0b.diff

LOG: Apply clang-tidy fixes for modernize-use-using in SparseBufferRewriting.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp b/mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
index 758d85cace11..8faaf33f2554 100644
--- a/mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
+++ b/mlir/lib/Dialect/SparseTensor/Transforms/SparseBufferRewriting.cpp
@@ -42,8 +42,8 @@ static constexpr const char kSortNonstableFuncNamePrefix[] =
 static constexpr const char kSortStableFuncNamePrefix[] =
     "_sparse_sort_stable_";
 
-typedef function_ref<void(OpBuilder &, ModuleOp, func::FuncOp, size_t)>
-    FuncGeneratorType;
+using FuncGeneratorType =
+    function_ref<void(OpBuilder &, ModuleOp, func::FuncOp, size_t)>;
 
 /// Constructs a function name with this format to facilitate quick sort:
 ///   <namePrefix><dim>_<x type>_<y0 type>..._<yn type>


        


More information about the Mlir-commits mailing list