[mlir] Apply ClangTidyLegacy findings.
authorAdrian Kuegel <akuegel@google.com>
Wed, 12 Oct 2022 10:45:35 +0000 (12:45 +0200)
committerAdrian Kuegel <akuegel@google.com>
Wed, 12 Oct 2022 10:46:41 +0000 (12:46 +0200)
Use '= default' to define a trivial default constructor.

mlir/include/mlir/IR/Attributes.h
mlir/include/mlir/IR/IntegerSet.h
mlir/include/mlir/IR/OpImplementation.h
mlir/include/mlir/IR/Types.h

index 2e74bcc..a315602 100644 (file)
@@ -34,7 +34,7 @@ public:
   using ValueType = void;
   using AbstractTy = AbstractAttribute;
 
-  constexpr Attribute() {}
+  constexpr Attribute() = default;
   /* implicit */ Attribute(const ImplType *impl)
       : impl(const_cast<ImplType *>(impl)) {}
 
index 13982b6..b8affca 100644 (file)
@@ -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,
index 0251394..474e995 100644 (file)
@@ -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;
index 18660cb..1c4db1b 100644 (file)
@@ -83,7 +83,7 @@ public:
 
   using AbstractTy = AbstractType;
 
-  constexpr Type() {}
+  constexpr Type() = default;
   /* implicit */ Type(const ImplType *impl)
       : impl(const_cast<ImplType *>(impl)) {}