Home | History | Annotate | Download | only in Lex

Lines Matching refs:Spelling

168 /// spelling loc that indicates the bytes to be lexed for the token and an
240 // Token Spelling
244 /// spelling of this token from the provided input buffer.
246 const LangOptions &LangOpts, char *Spelling) {
256 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
259 if (Spelling[Length - 1] == '"')
267 Spelling[Length - 2] == 'R' && Spelling[Length - 1] == '"') {
274 // Everything between the quotes is included verbatim in the spelling.
275 memcpy(Spelling + Length, BufPtr, RawLength);
285 Spelling[Length++] = Lexer::getCharAndSizeNoWarn(BufPtr, Size, LangOpts);
294 /// getSpelling() - Return the 'spelling' of this token. The spelling of a
297 /// wants to get the true, uncanonicalized, spelling of things like digraphs
335 /// getSpelling() - Return the 'spelling' of this token. The spelling of a
338 /// wants to get the true, uncanonicalized, spelling of things like digraphs
362 /// getSpelling - This method is used to get the spelling of a token into a
990 // If spelling location resides in the same FileID as macro expansion
1000 // Find the spelling location of the start of the non-argument expansion
1035 // spelling location.
1039 // characters come from spelling(FileLoc)+Offset.
2046 std::string Spelling = PP->getSpelling(Result, &Invalid);
2050 assert(Spelling[0] == '/' && Spelling[1] == '/' && "Not line comment?");
2051 Spelling[1] = '*'; // Change prefix to "/*".
2052 Spelling += "*/"; // add suffix.
2055 PP->CreateString(Spelling, Result,