Skip to content

Commit e89c55a

Browse files
committed
use unique filenames with --clang
1 parent 9544434 commit e89c55a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/cppcheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,9 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
659659

660660
// TODO: get language from FileWithDetails object
661661
const std::string analyzerInfo = mSettings.buildDir.empty() ? std::string() : AnalyzerInformation::getAnalyzerInfoFile(mSettings.buildDir, file.spath(), "");
662-
const std::string clangcmd = analyzerInfo + ".clang-cmd";
663-
const std::string clangStderr = analyzerInfo + ".clang-stderr";
664-
const std::string clangAst = analyzerInfo + ".clang-ast";
662+
const std::string clangcmd = analyzerInfo + ".clang-cmd" + "." + std::to_string(mSettings.pid);
663+
const std::string clangStderr = analyzerInfo + ".clang-stderr" + "." + std::to_string(mSettings.pid);
664+
const std::string clangAst = analyzerInfo + ".clang-ast" + "." + std::to_string(mSettings.pid);
665665
std::string exe = mSettings.clangExecutable;
666666
#ifdef _WIN32
667667
// append .exe if it is not a path

0 commit comments

Comments
 (0)