Lines Matching refs:TokStart
51 TokStart = nullptr; in TGLexer()
65 return SMLoc::getFromPointer(TokStart); in getLoc()
95 TokStart = CurPtr; in processEOF()
141 TokStart = CurPtr; in LexToken()
152 return ReturnError(TokStart, "Unexpected character"); in LexToken()
195 return ReturnError(TokStart, "Invalid '..' punctuation"); in LexToken()
219 return ReturnError(TokStart, "Unexpected character"); in LexToken()
323 return ReturnError(TokStart, "Invalid variable name"); in LexVarName()
337 const char *IdentStart = TokStart; in LexIdentifier()
438 PrintError(TokStart, "Unterminated comment!"); in SkipCComment()
472 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
477 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
482 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
484 return ReturnError(TokStart, "Hexadecimal number out of range"); in LexNumber()
511 CurIntVal = strtoll(TokStart, nullptr, 10); in LexNumber()
677 TokStart = CurPtr; in prepEatPreprocessorDirective()
703 return ReturnError(TokStart, "Expected macro name after " + IfTokName); in lexPreprocessor()
716 {Kind, MacroIsDefined, SMLoc::getFromPointer(TokStart)}); in lexPreprocessor()
744 return ReturnError(TokStart, "#else without #ifdef or #ifndef"); in lexPreprocessor()
749 PrintError(TokStart, "double #else"); in lexPreprocessor()
757 {Kind, !IfdefEntry.IsDefined, SMLoc::getFromPointer(TokStart)}); in lexPreprocessor()
777 return ReturnError(TokStart, "#endif without #ifdef"); in lexPreprocessor()
803 return ReturnError(TokStart, "Expected macro name after #define"); in lexPreprocessor()
892 TokStart = CurPtr; in prepLexMacroName()
901 return StringRef(TokStart, CurPtr - TokStart); in prepLexMacroName()
926 TokStart = CurPtr; in prepSkipLineBegin()
988 TokStart = CurPtr; in prepSkipDirectiveEnd()
993 TokStart = CurPtr; in prepSkipDirectiveEnd()
1004 TokStart = CurPtr; in prepSkipDirectiveEnd()
1039 TokStart = CurPtr; in prepReportPreprocessorStackError()