mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Fix format for empty method definition
PiperOrigin-RevId: 227840511
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user