Home
last modified time | relevance | path

Searched refs:TokPtr (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Lex/
DTokenConcatenation.cpp61 const char *TokPtr = Buffer; in IsIdentifierStringPrefix() local
62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix()
63 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus0x); in IsIdentifierStringPrefix()
133 const char *TokPtr = Buffer; in GetFirstChar() local
134 PP.getSpelling(Tok, TokPtr); in GetFirstChar()
135 return TokPtr[0]; in GetFirstChar()
DLexer.cpp666 const char *TokPtr = SM.getCharacterData(TokStart, &Invalid); in AdvanceToTokenCharacter() local
669 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter()
677 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in AdvanceToTokenCharacter()
680 ++TokPtr, --CharNo, ++PhysOffset; in AdvanceToTokenCharacter()
687 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in AdvanceToTokenCharacter()
688 TokPtr += Size; in AdvanceToTokenCharacter()
696 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in AdvanceToTokenCharacter()
697 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in AdvanceToTokenCharacter()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp519 const char *TokPtr = Buffer; in PrintPreprocessedTokens() local
520 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens()
521 OS.write(TokPtr, Len); in PrintPreprocessedTokens()
526 Callbacks->HandleNewlinesInToken(TokPtr, Len); in PrintPreprocessedTokens()
DTextDiagnostic.cpp856 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret() local
857 const char *LineStart = TokPtr-ColNo+1; // Column # is 1-based. in emitSnippetAndCaret()
862 const char *LineEnd = TokPtr; in emitSnippetAndCaret()