MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / AddIgnorePatterns

Method AddIgnorePatterns

Util/src/FileFinder.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void 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
33std::vector<std::string> FileFinder::FindFiles() {
34 std::vector<std::string> files;

Callers 2

CheckWorkspaceMethod · 0.80
ReformatWorkspaceMethod · 0.80

Calls 3

frontMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected