@@ -659,9 +659,7 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
659
659
660
660
// TODO: get language from FileWithDetails object
661
661
const std::string analyzerInfo = mSettings .buildDir .empty () ? std::string () : AnalyzerInformation::getAnalyzerInfoFile (mSettings .buildDir , file.spath (), " " );
662
- const std::string clangcmd = analyzerInfo + " .clang-cmd" + " ." + std::to_string (mSettings .pid );
663
662
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 );
665
663
std::string exe = mSettings .clangExecutable ;
666
664
#ifdef _WIN32
667
665
// append .exe if it is not a path
@@ -674,10 +672,6 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
674
672
getClangFlags (Path::identify (file.spath (), mSettings .cppHeaderProbe )) +
675
673
file.spath ();
676
674
const std::string redirect2 = analyzerInfo.empty () ? std::string (" 2>&1" ) : (" 2> " + clangStderr);
677
- if (!mSettings .buildDir .empty ()) {
678
- std::ofstream fout (clangcmd);
679
- fout << exe << " " << args2 << " " << redirect2 << std::endl;
680
- }
681
675
if (mSettings .verbose && !mSettings .quiet ) {
682
676
mErrorLogger .reportOut (exe + " " + args2);
683
677
}
@@ -714,11 +708,6 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file)
714
708
return 0 ; // TODO: report as failure?
715
709
}
716
710
717
- if (!mSettings .buildDir .empty ()) {
718
- std::ofstream fout (clangAst);
719
- fout << output2 << std::endl;
720
- }
721
-
722
711
try {
723
712
Tokenizer tokenizer (mSettings , mErrorLogger );
724
713
tokenizer.list .appendFileIfNew (file.spath ());
0 commit comments