Skip to content

Commit 11654ad

Browse files
committed
format
1 parent ad0bc6c commit 11654ad

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

lib/analyzerinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
6868
fout.exceptions(std::ios_base::failbit | std::ios_base::badbit);
6969
fout.open(filesTxt);
7070
assert(fout.is_open()); // If we ever disable exceptions, catch issues ASAP
71-
71+
7272
for (const std::string &f : sourcefiles) {
7373
const std::string afile = getFilename(f);
7474
fout << afile << ".a" << (++fileCount[afile]) << "::" << Path::simplifyPath(Path::fromNativeSeparators(f)) << '\n';

lib/cppcheck.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,11 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
752752
filename2 = filename.substr(filename.rfind('/') + 1);
753753
else
754754
filename2 = filename;
755-
755+
756756
const std::size_t fileNameHash = std::hash<std::string> {}(filename);
757757
filename2 = mSettings.plistOutput + filename2.substr(0, filename2.find('.')) + "_" + std::to_string(fileNameHash) + ".plist";
758758
mPlistFile.open(filename2);
759-
assert(mPlistFile.is_open());// If we ever disable exceptions, catch issues ASAP
759+
assert(mPlistFile.is_open()); // If we ever disable exceptions, catch issues ASAP
760760

761761
mPlistFile << ErrorLogger::plistHeader(version(), files);
762762
}
@@ -1470,7 +1470,7 @@ void CppCheck::executeAddons(const std::vector<std::string>& files)
14701470

14711471
for (const std::string& f: files)
14721472
fout << f << std::endl;
1473-
1473+
14741474
fout.close();
14751475
assert(fout.good()); // If we ever disable exceptions, catch issues ASAP
14761476
}
@@ -1736,7 +1736,7 @@ void CppCheck::analyseClangTidy(const ImportProject::FileSettings &fileSettings)
17361736
assert(fcmd.is_open()); // If we ever disable exceptions, catch issues ASAP
17371737

17381738
fcmd << istr.str();
1739-
1739+
17401740
fcmd.close();
17411741
assert(fcmd.good()); // If we ever disable exceptions, catch issues ASAP
17421742
}

lib/summaries.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ std::string Summaries::create(const Tokenizer *tokenizer, const std::string &cfg
9292
assert(fout.is_open()); // If we ever disable exceptions, catch issues ASAP
9393

9494
fout << ostr.str();
95-
95+
9696
fout.close();
9797
assert(fout.good()); // If we ever disable exceptions, catch issues ASAP
9898
}

test/helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ScopedFile::ScopedFile(std::string name, const std::string &content, std::string
6060
assert(of.is_open()); // If we ever disable exceptions, catch issues ASAP
6161

6262
of << content;
63-
63+
6464
of.close();
6565
assert(of.good()); // If we ever disable exceptions, catch issues ASAP
6666
}

tools/dmake.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ int main(int argc, char **argv)
424424
fout1 << " \\\n" << std::string(11, ' ');
425425
}
426426
fout1 << "\n";
427-
427+
428428
fout1.close();
429429
assert(fout1.good()); // If we ever disable exceptions, catch issues ASAP
430430
}
@@ -768,7 +768,6 @@ int main(int argc, char **argv)
768768
compilefiles(fout, extfiles, emptyString);
769769
compilefiles(fout, toolsfiles, "${INCLUDE_FOR_LIB}");
770770

771-
772771
fout.close();
773772
assert(fout.good()); // If we ever disable exceptions, catch issues ASAP
774773

0 commit comments

Comments
 (0)