Apply clang-tidy fixes for modernize-use-using to MLIR (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Fri, 14 Jan 2022 01:35:39 +0000 (01:35 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 14 Jan 2022 02:26:27 +0000 (02:26 +0000)
mlir/include/mlir-c/Interfaces.h
mlir/include/mlir/ExecutionEngine/AsyncRuntime.h

index 233f828..7ab6b8a 100644 (file)
@@ -48,7 +48,7 @@ MLIR_CAPI_EXPORTED MlirTypeID mlirInferTypeOpInterfaceTypeID();
 /// transferring ownership to the caller. The first argument is the number of
 /// consecutive elements pointed to by the second argument. The third argument
 /// is an opaque pointer forwarded to the callback by the caller.
-typedef void (*MlirTypesCallback)(intptr_t, MlirType *, void *);
+using MlirTypesCallback = void (*)(intptr_t, MlirType *, void *);
 
 /// Infers the return types of the operation identified by its canonical given
 /// the arguments that will be supplied to its generic builder. Calls `callback`
index af4f98e..a681c47 100644 (file)
@@ -29,13 +29,13 @@ namespace runtime {
 //===----------------------------------------------------------------------===//
 
 // Runtime implementation of `async.token` data type.
-typedef struct AsyncToken AsyncToken;
+using AsyncToken = struct AsyncToken;
 
 // Runtime implementation of `async.group` data type.
-typedef struct AsyncGroup AsyncGroup;
+using AsyncGroup = struct AsyncGroup;
 
 // Runtime implementation of `async.value` data type.
-typedef struct AsyncValue AsyncValue;
+using AsyncValue = struct AsyncValue;
 
 // Async value payload stored in a memory owned by the async.value.
 using ValueStorage = void *;