| 40 | } |
| 41 | |
| 42 | static std::string getFilename(const std::string &fullpath) |
| 43 | { |
| 44 | std::string::size_type pos1 = fullpath.find_last_of("/\\"); |
| 45 | pos1 = (pos1 == std::string::npos) ? 0U : (pos1 + 1U); |
| 46 | std::string::size_type pos2 = fullpath.rfind('.'); |
| 47 | if (pos2 < pos1) |
| 48 | pos2 = std::string::npos; |
| 49 | if (pos2 != std::string::npos) |
| 50 | pos2 = pos2 - pos1; |
| 51 | return fullpath.substr(pos1,pos2); |
| 52 | } |
| 53 | |
| 54 | void AnalyzerInformation::writeFilesTxt(const std::string &buildDir, const std::list<std::string> &sourcefiles, const std::list<FileSettings> &fileSettings) |
| 55 | { |