| 127 | } |
| 128 | |
| 129 | std::string AnalyzerInformation::getAnalyzerInfoFileFromFilesTxt(std::istream& filesTxt, const std::string &sourcefile, const std::string &cfg, int fsFileId) |
| 130 | { |
| 131 | std::string line; |
| 132 | while (std::getline(filesTxt,line)) { |
| 133 | AnalyzerInformation::Info filesTxtInfo; |
| 134 | if (!filesTxtInfo.parse(line)) |
| 135 | continue; // TODO: report error? |
| 136 | if (endsWith(sourcefile, filesTxtInfo.sourceFile) && filesTxtInfo.cfg == cfg && filesTxtInfo.fsFileId == fsFileId) |
| 137 | return filesTxtInfo.afile; |
| 138 | } |
| 139 | return ""; |
| 140 | } |
| 141 | |
| 142 | std::string AnalyzerInformation::getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, std::size_t fsFileId) |
| 143 | { |