MCPcopy Create free account
hub / github.com/MaskRay/ccls / ProjectProcessor

Method ProjectProcessor

src/project.cc:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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")) {

Callers

nothing calls this directly

Calls 2

insertMethod · 0.80
toStringFunction · 0.70

Tested by

no test coverage detected