From: Lei Zhang Date: Fri, 4 Jan 2019 13:05:43 +0000 (-0800) Subject: Fix format for empty method definition X-Git-Tag: llvmorg-11-init~1466^2~2710 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca88ea6f08239d1922b425c32413159989186ed6;p=platform%2Fupstream%2Fllvm.git Fix format for empty method definition PiperOrigin-RevId: 227840511 --- diff --git a/mlir/include/mlir/Pass.h b/mlir/include/mlir/Pass.h index 278510998f47..d8ab143f3bf9 100644 --- a/mlir/include/mlir/Pass.h +++ b/mlir/include/mlir/Pass.h @@ -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 { diff --git a/mlir/include/mlir/TableGen/GenInfo.h b/mlir/include/mlir/TableGen/GenInfo.h index f5e9decd95d8..0b0bd192ae5e 100644 --- a/mlir/include/mlir/TableGen/GenInfo.h +++ b/mlir/include/mlir/TableGen/GenInfo.h @@ -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 { diff --git a/mlir/include/mlir/TableGen/Operator.h b/mlir/include/mlir/TableGen/Operator.h index 95dc6b899b01..d101200c35d7 100644 --- a/mlir/include/mlir/TableGen/Operator.h +++ b/mlir/include/mlir/TableGen/Operator.h @@ -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; diff --git a/mlir/tools/mlir-tblgen/RewriterGen.cpp b/mlir/tools/mlir-tblgen/RewriterGen.cpp index 6a5b353d0f49..66f4e25d60f9 100644 --- a/mlir/tools/mlir-tblgen/RewriterGen.cpp +++ b/mlir/tools/mlir-tblgen/RewriterGen.cpp @@ -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);