MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / ParseAlignment

Function ParseAlignment

src/compiler/cbs/VectorShape.cpp:290–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290static int ParseAlignment(StringRef text, int &nextPos) {
291 if (((size_t)nextPos) >= text.size())
292 return 1;
293 if (text[nextPos] != 'a')
294 return 1;
295 nextPos++;
296 return ParseInt(text, nextPos);
297}
298
299VectorShape VectorShape::parse(StringRef text, int &nextPos) {
300 switch (text[nextPos++]) {

Callers 1

parseMethod · 0.85

Calls 2

ParseIntFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected