GUI: Generate Clang files

This commit is contained in:
Daniel Marjamäki 2020-02-02 11:05:30 +01:00
parent 632dc0f141
commit d2dd3930ae
2 changed files with 6 additions and 4 deletions

View File

@ -921,10 +921,6 @@ bool CmdLineParser::parseFromArgs(int argc, const char* const argv[])
printMessage("If --clang is used then --cppcheck-build-dir must be specified also");
return false;
}
std::ofstream fout1(mSettings->buildDir + "/__temp__.c");
fout1 << "int x;\n";
std::ofstream fout2(mSettings->buildDir + "/__temp__.cpp");
fout2 << "int x;\n";
}

View File

@ -58,6 +58,12 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
const std::string afile = getFilename(fs.filename);
fout << afile << ".a" << (++fileCount[afile]) << ":" << fs.cfg << ":" << Path::simplifyPath(Path::fromNativeSeparators(fs.filename)) << std::endl;
}
std::ofstream fc(buildDir + "/__temp__.c");
fc << "int x;\n";
std::ofstream fcpp(buildDir + "/__temp__.cpp");
fcpp << "int x;\n";
}
void AnalyzerInformation::close()