MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / doTheParsing

Method doTheParsing

compiler-args-app.ts:145–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 }
144
145 async doTheParsing() {
146 const parser = this.getParser();
147 await parser.parse();
148 const options = this.compiler.possibleArguments.possibleArguments;
149 if (parser.hasSupportStartsWith(options, '--target=')) {
150 console.log('supportsTargetIs');
151 } else if (parser.hasSupportStartsWith(options, '--target ')) {
152 console.log('supportsTarget');
153 } else if (parser.hasSupportStartsWith(options, '-target ')) {
154 console.log('supportsHyphenTarget');
155 } else if (parser.hasSupportStartsWith(options, '--march=')) {
156 console.log('supportsMarch');
157 } else {
158 console.log('none of the things?');
159 }
160 }
161
162 async print() {
163 const args = _.keys(this.compiler.possibleArguments.possibleArguments);

Callers 1

Calls 4

getParserMethod · 0.95
hasSupportStartsWithMethod · 0.80
parseMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected