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:
PyTorch MergeBot
2024-11-12 00:02:06 +00:00
parent 0af38b1034
commit dbb55b448b
27 changed files with 471 additions and 470 deletions

View File

@ -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,