SWDEV-470698 - fix formatting, add format check workflow (#657)

This commit is contained in:
Danylo Lytovchenko
2025-08-20 16:28:06 +02:00
committed by GitHub
parent 5840940caa
commit f7338717ae
1574 changed files with 162972 additions and 199346 deletions
@@ -42,7 +42,7 @@ struct CaptureStream {
char tempname[13] = "mytestXXXXXX";
explicit CaptureStream(FILE *original) {
explicit CaptureStream(FILE* original) {
orig_fd = fileno(original);
saved_fd = dup(orig_fd);
@@ -63,8 +63,7 @@ struct CaptureStream {
}
void restoreStream() {
if (saved_fd == -1)
return;
if (saved_fd == -1) return;
fflush(nullptr);
if (dup2(saved_fd, orig_fd) == -1) {
error(0, errno, "Error");
@@ -77,9 +76,7 @@ struct CaptureStream {
saved_fd = -1;
}
const char *getTempFilename() {
return (const char*)tempname;
}
const char* getTempFilename() { return (const char*)tempname; }
std::ifstream getCapturedData() {
restoreStream();