forked from OSchip/llvm-project
[mlir:toy][NFC] Remove unnecessary trailing return type
In this instance, the trailing return type does not improve readability as it repeats what is returned in the same line. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D125697
This commit is contained in:
parent
0b69b8384d
commit
ffc3a0db00
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -234,8 +234,8 @@ public:
|
||||||
ModuleAST(std::vector<FunctionAST> functions)
|
ModuleAST(std::vector<FunctionAST> functions)
|
||||||
: functions(std::move(functions)) {}
|
: functions(std::move(functions)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(functions.begin()) { return functions.begin(); }
|
auto begin() { return functions.begin(); }
|
||||||
auto end() -> decltype(functions.end()) { return functions.end(); }
|
auto end() { return functions.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
|
@ -301,8 +301,8 @@ public:
|
||||||
ModuleAST(std::vector<std::unique_ptr<RecordAST>> records)
|
ModuleAST(std::vector<std::unique_ptr<RecordAST>> records)
|
||||||
: records(std::move(records)) {}
|
: records(std::move(records)) {}
|
||||||
|
|
||||||
auto begin() -> decltype(records.begin()) { return records.begin(); }
|
auto begin() { return records.begin(); }
|
||||||
auto end() -> decltype(records.end()) { return records.end(); }
|
auto end() { return records.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump(ModuleAST &);
|
void dump(ModuleAST &);
|
||||||
|
|
Loading…
Reference in New Issue