Fix format for empty method definition
authorLei Zhang <antiagainst@google.com>
Fri, 4 Jan 2019 13:05:43 +0000 (05:05 -0800)
committerjpienaar <jpienaar@google.com>
Fri, 29 Mar 2019 21:55:52 +0000 (14:55 -0700)
PiperOrigin-RevId: 227840511

mlir/include/mlir/Pass.h
mlir/include/mlir/TableGen/GenInfo.h
mlir/include/mlir/TableGen/Operator.h
mlir/tools/mlir-tblgen/RewriterGen.cpp

index 278510998f478898b042a198bc63f4f65e226421..d8ab143f3bf927fc438222c3f13510664cbed712 100644 (file)
@@ -104,7 +104,7 @@ public:
   PassInfo(StringRef arg, StringRef description, const void *passID,
            PassAllocatorFunction allocator)
       : arg(arg), description(description), allocator(allocator),
-        passID(passID){};
+        passID(passID) {}
 
   /// Returns an allocated instance of this pass.
   Pass *createPass() const {
index f5e9decd95d80ccc69a9c8610f8af69cb40e34ec..0b0bd192ae5ef8e86e4e747331e96f668d6b9ecf 100644 (file)
@@ -39,7 +39,7 @@ public:
   /// GenInfo constructor should not be invoked directly, instead use
   /// GenRegistration or registerGen.
   GenInfo(StringRef arg, StringRef description, GenFunction generator)
-      : arg(arg), description(description), generator(generator){};
+      : arg(arg), description(description), generator(generator) {}
 
   /// Invokes the generator and returns whether the generator failed.
   bool invoke(const llvm::RecordKeeper &recordKeeper, raw_ostream &os) const {
index 95dc6b899b0186feb5949e5e7ebf214b0d8f1ea2..d101200c35d76837ad9eb8ab1bbc4e4b03611143 100644 (file)
@@ -38,7 +38,7 @@ namespace mlir {
 class Operator {
 public:
   explicit Operator(const llvm::Record &def);
-  explicit Operator(const llvm::Record *def) : Operator(*def){};
+  explicit Operator(const llvm::Record *def) : Operator(*def) {}
 
   // Returns the operation name.
   StringRef getOperationName() const;
index 6a5b353d0f498b8daad491e556a812e48b4d1f6f..66f4e25d60f9c8ff812567b4c717bc94a828cb55 100644 (file)
@@ -39,7 +39,7 @@ namespace {
 
 // Wrapper around dag argument.
 struct DagArg {
-  DagArg(Init *init) : init(init){};
+  DagArg(Init *init) : init(init) {}
   bool isAttr();
 
   Init *init;
@@ -59,7 +59,7 @@ public:
   static void emit(StringRef rewriteName, Record *p, raw_ostream &os);
 
 private:
-  Pattern(Record *pattern, raw_ostream &os) : pattern(pattern), os(os){};
+  Pattern(Record *pattern, raw_ostream &os) : pattern(pattern), os(os) {}
 
   // Emit the rewrite pattern named `rewriteName`.
   void emit(StringRef rewriteName);