@@ -339,7 +339,7 @@ static std::string getDumpFileName(const Settings& settings, const std::string&
339339 extension = " ." + std::to_string (settings.pid ) + " .dump" ;
340340
341341 if (!settings.dump && !settings.buildDir .empty ())
342- return AnalyzerInformation::getAnalyzerInfoFile (settings.buildDir , filename, emptyString ) + extension;
342+ return AnalyzerInformation::getAnalyzerInfoFile (settings.buildDir , filename, " " ) + extension;
343343 return filename + extension;
344344}
345345
@@ -658,7 +658,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
658658 mErrorLogger .reportOut (std::string (" Checking " ) + file.spath () + " ..." , Color::FgGreen);
659659
660660 // 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 (), " " );
662662 const std::string clangcmd = analyzerInfo + " .clang-cmd" ;
663663 const std::string clangStderr = analyzerInfo + " .clang-stderr" ;
664664 const std::string clangAst = analyzerInfo + " .clang-ast" ;
@@ -773,13 +773,13 @@ unsigned int CppCheck::check(const FileWithDetails &file)
773773 if (mSettings .clang )
774774 return checkClang (file);
775775
776- return checkFile (file, emptyString );
776+ return checkFile (file, " " );
777777}
778778
779779unsigned int CppCheck::check (const FileWithDetails &file, const std::string &content)
780780{
781781 std::istringstream iss (content);
782- return checkFile (file, emptyString , &iss);
782+ return checkFile (file, " " , &iss);
783783}
784784
785785unsigned int CppCheck::check (const FileSettings &fs)
@@ -1564,7 +1564,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
15641564 if (pcreCompileErrorStr) {
15651565 const std::string msg = " pcre_compile failed: " + std::string (pcreCompileErrorStr);
15661566 const ErrorMessage errmsg (std::list<ErrorMessage::FileLocation>(),
1567- emptyString ,
1567+ " " ,
15681568 Severity::error,
15691569 msg,
15701570 " pcre_compile" ,
@@ -1585,7 +1585,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
15851585 if (pcreStudyErrorStr) {
15861586 const std::string msg = " pcre_study failed: " + std::string (pcreStudyErrorStr);
15871587 const ErrorMessage errmsg (std::list<ErrorMessage::FileLocation>(),
1588- emptyString ,
1588+ " " ,
15891589 Severity::error,
15901590 msg,
15911591 " pcre_study" ,
@@ -1608,7 +1608,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const TokenList &list)
16081608 const std::string errorMessage = pcreErrorCodeToString (pcreExecRet);
16091609 if (!errorMessage.empty ()) {
16101610 const ErrorMessage errmsg (std::list<ErrorMessage::FileLocation>(),
1611- emptyString ,
1611+ " " ,
16121612 Severity::error,
16131613 std::string (" pcre_exec failed: " ) + errorMessage,
16141614 " pcre_exec" ,
@@ -1882,9 +1882,9 @@ void CppCheck::getErrorMessages(ErrorLogger &errorlogger)
18821882 s.addEnabled (" all" );
18831883
18841884 CppCheck cppcheck (errorlogger, true , nullptr );
1885- cppcheck.purgedConfigurationMessage (emptyString,emptyString );
1885+ cppcheck.purgedConfigurationMessage (" " , " " );
18861886 cppcheck.mTooManyConfigs = true ;
1887- cppcheck.tooManyConfigsError (emptyString ,0U );
1887+ cppcheck.tooManyConfigsError (" " ,0U );
18881888 // TODO: add functions to get remaining error messages
18891889
18901890 // call all "getErrorMessages" in all registered Check classes
@@ -1913,7 +1913,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
19131913
19141914 const std::string args = " -quiet -checks=*,-clang-analyzer-*,-llvm* \" " + fileSettings.filename () + " \" -- " + allIncludes + allDefines;
19151915 std::string output;
1916- if (const int exitcode = mExecuteCommand (exe, split (args), emptyString , output)) {
1916+ if (const int exitcode = mExecuteCommand (exe, split (args), " " , output)) {
19171917 std::cerr << " Failed to execute '" << exe << " ' (exitcode: " << std::to_string (exitcode) << " )" << std::endl;
19181918 return ;
19191919 }
@@ -1923,7 +1923,7 @@ void CppCheck::analyseClangTidy(const FileSettings &fileSettings)
19231923 std::string line;
19241924
19251925 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 (), " " );
19271927 std::ofstream fcmd (analyzerInfoFile + " .clang-tidy-cmd" );
19281928 fcmd << istr.str ();
19291929 }
0 commit comments