mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[7/N] Fix Wextra-semi warning (#140225)"
This reverts commit ffb979032dc149b4c895526fe5b92d713ed7b1e1. Reverted https://github.com/pytorch/pytorch/pull/140225 on behalf of https://github.com/kit1980 due to breaking internal builds ([comment](https://github.com/pytorch/pytorch/pull/140225#issuecomment-2469312229))
This commit is contained in:
@ -538,7 +538,7 @@ struct FileCheckImpl {
|
||||
std::vector<std::vector<Check>> groups;
|
||||
};
|
||||
|
||||
FileCheck::FileCheck() : fcImpl(new FileCheckImpl()) {}
|
||||
FileCheck::FileCheck() : fcImpl(new FileCheckImpl()){};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const FileCheckImpl& fc) {
|
||||
out << "FileCheck checks:\n";
|
||||
@ -546,7 +546,7 @@ std::ostream& operator<<(std::ostream& out, const FileCheckImpl& fc) {
|
||||
out << "\t" << c << "\n";
|
||||
}
|
||||
return out;
|
||||
}
|
||||
};
|
||||
|
||||
FileCheck::~FileCheck() {
|
||||
if (!fcImpl->has_run) {
|
||||
@ -554,17 +554,17 @@ FileCheck::~FileCheck() {
|
||||
std::cout << *fcImpl;
|
||||
}
|
||||
fcImpl.reset();
|
||||
}
|
||||
};
|
||||
|
||||
void FileCheck::run(const std::string& test_file) {
|
||||
fcImpl->run(test_file);
|
||||
}
|
||||
};
|
||||
|
||||
void FileCheck::run(const Graph& graph) {
|
||||
std::stringstream graph_str;
|
||||
graph_str << graph;
|
||||
fcImpl->run(graph_str.str());
|
||||
}
|
||||
};
|
||||
|
||||
void FileCheck::run(
|
||||
const std::string& input_checks_string,
|
||||
|
Reference in New Issue
Block a user