Lines Matching refs:spelling
19 SMLoc Token::getLoc() const { return SMLoc::getFromPointer(spelling.data()); } in getLoc()
22 return SMLoc::getFromPointer(spelling.data() + spelling.size()); in getEndLoc()
30 bool isHex = spelling.size() > 1 && spelling[1] == 'x'; in getUnsignedIntegerValue()
33 if (spelling.getAsInteger(isHex ? 0 : 10, result)) in getUnsignedIntegerValue()
40 Optional<uint64_t> Token::getUInt64IntegerValue(StringRef spelling) { in getUInt64IntegerValue() argument
41 bool isHex = spelling.size() > 1 && spelling[1] == 'x'; in getUInt64IntegerValue()
44 if (spelling.getAsInteger(isHex ? 0 : 10, result)) in getUInt64IntegerValue()
53 if (spelling.getAsDouble(result)) in getFloatingPointValue()
61 unsigned bitwidthStart = (spelling[0] == 'i' ? 1 : 2); in getIntTypeBitwidth()
63 if (spelling[bitwidthStart] == '0' || in getIntTypeBitwidth()
64 spelling.drop_front(bitwidthStart).getAsInteger(10, result) || in getIntTypeBitwidth()
72 if (spelling[0] == 'i') in getIntTypeSignedness()
74 if (spelling[0] == 's') in getIntTypeSignedness()
76 assert(spelling[0] == 'u'); in getIntTypeSignedness()
160 if (spelling.drop_front().getAsInteger(10, result)) in getHashIdentifierNumber()