| 72 | std::vector<GlobPattern> exclude_globs; |
| 73 | |
| 74 | ProjectProcessor(Project::Folder &folder) : folder(folder) { |
| 75 | for (auto &arg : g_config->clang.excludeArgs) |
| 76 | if (arg.find_first_of("?*[") == std::string::npos) |
| 77 | exclude_args.insert(arg); |
| 78 | else if (Expected<GlobPattern> glob_or_err = GlobPattern::create(arg)) |
| 79 | exclude_globs.push_back(std::move(*glob_or_err)); |
| 80 | else |
| 81 | LOG_S(WARNING) << toString(glob_or_err.takeError()); |
| 82 | } |
| 83 | |
| 84 | bool excludesArg(StringRef arg, int &i) { |
| 85 | if (arg.startswith("-M")) { |