Fix format for empty method definition

PiperOrigin-RevId: 227840511
This commit is contained in:
Lei Zhang
2019-01-04 05:05:43 -08:00
committed by jpienaar
parent 8281151c2a
commit ca88ea6f08
4 changed files with 5 additions and 5 deletions

View 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 {

View 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 {

View 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;

View 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);