| 88 | } |
| 89 | |
| 90 | static bool addIncludePathsToList(const std::string& fileList, std::list<std::string>& pathNames) |
| 91 | { |
| 92 | std::ifstream files(fileList); |
| 93 | if (files) { |
| 94 | std::string pathName; |
| 95 | while (std::getline(files, pathName)) { // next line |
| 96 | if (!pathName.empty()) { |
| 97 | pathName = Path::removeQuotationMarks(std::move(pathName)); |
| 98 | pathName = Path::fromNativeSeparators(std::move(pathName)); |
| 99 | |
| 100 | // If path doesn't end with / or \, add it |
| 101 | if (!endsWith(pathName, '/')) |
| 102 | pathName += '/'; |
| 103 | |
| 104 | pathNames.emplace_back(std::move(pathName)); |
| 105 | } |
| 106 | } |
| 107 | return true; |
| 108 | } |
| 109 | return false; |
| 110 | } |
| 111 | |
| 112 | static bool addPathsToSet(const std::string& fileName, std::set<std::string>& set) |
| 113 | { |
no test coverage detected