From d903fa4c6273b3e0faae47926d61429fcd78d699 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Wed, 12 Oct 2022 12:45:35 +0200 Subject: [PATCH] [mlir] Apply ClangTidyLegacy findings. Use '= default' to define a trivial default constructor. --- mlir/include/mlir/IR/Attributes.h | 2 +- mlir/include/mlir/IR/IntegerSet.h | 2 +- mlir/include/mlir/IR/OpImplementation.h | 2 +- mlir/include/mlir/IR/Types.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h index 2e74bcc..a315602 100644 --- a/mlir/include/mlir/IR/Attributes.h +++ b/mlir/include/mlir/IR/Attributes.h @@ -34,7 +34,7 @@ public: using ValueType = void; using AbstractTy = AbstractAttribute; - constexpr Attribute() {} + constexpr Attribute() = default; /* implicit */ Attribute(const ImplType *impl) : impl(const_cast(impl)) {} diff --git a/mlir/include/mlir/IR/IntegerSet.h b/mlir/include/mlir/IR/IntegerSet.h index 13982b6..b8affca 100644 --- a/mlir/include/mlir/IR/IntegerSet.h +++ b/mlir/include/mlir/IR/IntegerSet.h @@ -45,7 +45,7 @@ class IntegerSet { public: using ImplType = detail::IntegerSetStorage; - constexpr IntegerSet() {} + constexpr IntegerSet() = default; explicit IntegerSet(ImplType *set) : set(set) {} static IntegerSet get(unsigned dimCount, unsigned symbolCount, diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h index 0251394..474e995 100644 --- a/mlir/include/mlir/IR/OpImplementation.h +++ b/mlir/include/mlir/IR/OpImplementation.h @@ -215,7 +215,7 @@ public: protected: /// Initialize the printer with no internal implementation. In this case, all /// virtual methods of this class must be overriden. - AsmPrinter() {} + AsmPrinter() = default; private: AsmPrinter(const AsmPrinter &) = delete; diff --git a/mlir/include/mlir/IR/Types.h b/mlir/include/mlir/IR/Types.h index 18660cb..1c4db1b 100644 --- a/mlir/include/mlir/IR/Types.h +++ b/mlir/include/mlir/IR/Types.h @@ -83,7 +83,7 @@ public: using AbstractTy = AbstractType; - constexpr Type() {} + constexpr Type() = default; /* implicit */ Type(const ImplType *impl) : impl(const_cast(impl)) {} -- 2.7.4