@@ -339,7 +339,7 @@ static std::string getDumpFileName(const Settings& settings, const std::string&
339
339
extension = "." + std::to_string(settings.pid) + ".dump";
340
340
341
341
if (!settings.dump && !settings.buildDir.empty())
342
- return AnalyzerInformation::getAnalyzerInfoFile(settings.buildDir, filename, emptyString ) + extension;
342
+ return AnalyzerInformation::getAnalyzerInfoFile(settings.buildDir, filename, "" ) + extension;
343
343
return filename + extension;
344
344
}
345
345
@@ -658,7 +658,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
658
658
mErrorLogger.reportOut(std::string("Checking ") + file.spath() + " ...", Color::FgGreen);
659
659
660
660
// TODO: get language from FileWithDetails object
661
- const std::string analyzerInfo = mSettings.buildDir.empty() ? std::string() : AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, file.spath(), emptyString );
661
+ const std::string analyzerInfo = mSettings.buildDir.empty() ? std::string() : AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, file.spath(), "" );
662
662
const std::string clangcmd = analyzerInfo + ".clang-cmd";
663
663
const std::string clangStderr = analyzerInfo + ".clang-stderr";
664
664
const std::string clangAst = analyzerInfo + ".clang-ast";
@@ -773,13 +773,13 @@ unsigned int CppCheck::check(const FileWithDetails &file)
773
773
if (mSettings.clang)
774
774
return checkClang(file);
775
775
776
- return checkFile(file, emptyString );
776
+ return checkFile(file, "" );
777
777
}
778
778
779
779
unsigned int CppCheck::check(const FileWithDetails &file, const std::string &content)
780
780
{
781
781
std::istringstream iss(content);
782
- return checkFile(file, emptyString , &iss);
782
+ return checkFile(file, "" , &iss);
783
783
}
784
784
785
785
unsigned int CppCheck::check(const FileSettings &fs)
@@ -1564,7 +1564,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
1564
1564
if (pcreCompileErrorStr) {
1565
1565
const std::string msg = "pcre_compile failed: " + std::string(pcreCompileErrorStr);
1566
1566
const ErrorMessage errmsg(std::list<ErrorMessage::FileLocation>(),
1567
- emptyString ,
1567
+ "" ,
1568
1568
Severity::error,
1569
1569
msg,
1570
1570
"pcre_compile",
@@ -1585,7 +1585,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
1585
1585
if (pcreStudyErrorStr) {
1586
1586
const std::string msg = "pcre_study failed: " + std::string(pcreStudyErrorStr);
1587
1587
const ErrorMessage errmsg(std::list<ErrorMessage::FileLocation>(),
1588
- emptyString ,
1588
+ "" ,
1589
1589
Severity::error,
1590
1590
msg,
1591
1591
"pcre_study",
@@ -1608,7 +1608,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
1608
1608
const std::string errorMessage = pcreErrorCodeToString(pcreExecRet);
1609
1609
if (!errorMessage.empty()) {
1610
1610
const ErrorMessage errmsg(std::list<ErrorMessage::FileLocation>(),
1611
- emptyString ,
1611
+ "" ,
1612
1612
Severity::error,
1613
1613
std::string("pcre_exec failed: ") + errorMessage,
1614
1614
"pcre_exec",
@@ -1882,9 +1882,9 @@ void CppCheck::getErrorMessages(ErrorLogger &errorlogger)
1882
1882
s.addEnabled("all");
1883
1883
1884
1884
CppCheck cppcheck(errorlogger, true, nullptr);
1885
- cppcheck.purgedConfigurationMessage(emptyString,emptyString );
1885
+ cppcheck.purgedConfigurationMessage("","" );
1886
1886
cppcheck.mTooManyConfigs = true;
1887
- cppcheck.tooManyConfigsError(emptyString ,0U);
1887
+ cppcheck.tooManyConfigsError("" ,0U);
1888
1888
// TODO: add functions to get remaining error messages
1889
1889
1890
1890
// call all "getErrorMessages" in all registered Check classes
@@ -1913,7 +1913,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
1913
1913
1914
1914
const std::string args = "-quiet -checks=*,-clang-analyzer-*,-llvm* \"" + fileSettings.filename() + "\" -- " + allIncludes + allDefines;
1915
1915
std::string output;
1916
- if (const int exitcode = mExecuteCommand(exe, split(args), emptyString , output)) {
1916
+ if (const int exitcode = mExecuteCommand(exe, split(args), "" , output)) {
1917
1917
std::cerr << "Failed to execute '" << exe << "' (exitcode: " << std::to_string(exitcode) << ")" << std::endl;
1918
1918
return;
1919
1919
}
@@ -1923,7 +1923,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
1923
1923
std::string line;
1924
1924
1925
1925
if (!mSettings.buildDir.empty()) {
1926
- const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, fileSettings.filename(), emptyString );
1926
+ const std::string analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, fileSettings.filename(), "" );
1927
1927
std::ofstream fcmd(analyzerInfoFile + ".clang-tidy-cmd");
1928
1928
fcmd << istr.str();
1929
1929
}
0 commit comments