GUI: Generate Clang files
This commit is contained in:
parent
632dc0f141
commit
d2dd3930ae
|
@ -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");
|
printMessage("If --clang is used then --cppcheck-build-dir must be specified also");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::ofstream fout1(mSettings->buildDir + "/__temp__.c");
|
|
||||||
fout1 << "int x;\n";
|
|
||||||
std::ofstream fout2(mSettings->buildDir + "/__temp__.cpp");
|
|
||||||
fout2 << "int x;\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,12 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
|
||||||
const std::string afile = getFilename(fs.filename);
|
const std::string afile = getFilename(fs.filename);
|
||||||
fout << afile << ".a" << (++fileCount[afile]) << ":" << fs.cfg << ":" << Path::simplifyPath(Path::fromNativeSeparators(fs.filename)) << std::endl;
|
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()
|
void AnalyzerInformation::close()
|
||||||
|
|
Loading…
Reference in New Issue