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

Method excludesArg

src/project.cc:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 bool excludesArg(StringRef arg, int &i) {
85 if (arg.startswith("-M")) {
86 if (arg == "-MF" || arg == "-MT" || arg == "-MQ")
87 i++;
88 return true;
89 }
90 if (arg == "-Xclang") {
91 i++;
92 return true;
93 }
94 return exclude_args.count(arg) || any_of(exclude_globs, [&](const GlobPattern &glob) { return glob.match(arg); });
95 }
96
97 // Expand %c %cpp ... in .ccls
98 void process(Project::Entry &entry) {

Callers 1

project.ccFile · 0.80

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected