Renamed private member analyzerInfoFile
This commit is contained in:
parent
9085373494
commit
7517371203
|
@ -66,7 +66,7 @@ void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::
|
||||||
|
|
||||||
void AnalyzerInformation::close()
|
void AnalyzerInformation::close()
|
||||||
{
|
{
|
||||||
analyzerInfoFile.clear();
|
mAnalyzerInfoFile.clear();
|
||||||
if (mOutputStream.is_open()) {
|
if (mOutputStream.is_open()) {
|
||||||
mOutputStream << "</analyzerinfo>\n";
|
mOutputStream << "</analyzerinfo>\n";
|
||||||
mOutputStream.close();
|
mOutputStream.close();
|
||||||
|
@ -132,17 +132,17 @@ bool AnalyzerInformation::analyzeFile(const std::string &buildDir, const std::st
|
||||||
return true;
|
return true;
|
||||||
close();
|
close();
|
||||||
|
|
||||||
analyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile(buildDir,sourcefile,cfg);
|
mAnalyzerInfoFile = AnalyzerInformation::getAnalyzerInfoFile(buildDir,sourcefile,cfg);
|
||||||
|
|
||||||
if (skipAnalysis(analyzerInfoFile, checksum, errors))
|
if (skipAnalysis(mAnalyzerInfoFile, checksum, errors))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
mOutputStream.open(analyzerInfoFile);
|
mOutputStream.open(mAnalyzerInfoFile);
|
||||||
if (mOutputStream.is_open()) {
|
if (mOutputStream.is_open()) {
|
||||||
mOutputStream << "<?xml version=\"1.0\"?>\n";
|
mOutputStream << "<?xml version=\"1.0\"?>\n";
|
||||||
mOutputStream << "<analyzerinfo checksum=\"" << checksum << "\">\n";
|
mOutputStream << "<analyzerinfo checksum=\"" << checksum << "\">\n";
|
||||||
} else {
|
} else {
|
||||||
analyzerInfoFile.clear();
|
mAnalyzerInfoFile.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
|
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
|
||||||
private:
|
private:
|
||||||
std::ofstream mOutputStream;
|
std::ofstream mOutputStream;
|
||||||
std::string analyzerInfoFile;
|
std::string mAnalyzerInfoFile;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
Loading…
Reference in New Issue