| 18 | } |
| 19 | |
| 20 | void FileFinder::AddIgnorePatterns(const std::string &pattern) { |
| 21 | if (pattern.empty()) { |
| 22 | return; |
| 23 | } |
| 24 | |
| 25 | auto firstChar = pattern.front(); |
| 26 | if (firstChar == '\\' || firstChar == '/') { |
| 27 | _ignorePatterns.push_back(pattern.substr(1)); |
| 28 | } |
| 29 | |
| 30 | _ignorePatterns.push_back(pattern); |
| 31 | } |
| 32 | |
| 33 | std::vector<std::string> FileFinder::FindFiles() { |
| 34 | std::vector<std::string> files; |
no test coverage detected