Searched refs:TokPtr (Results 1 – 7 of 7) sorted by relevance
/external/clang/lib/Lex/ |
D | TokenConcatenation.cpp | 62 const char *TokPtr = Buffer; in IsIdentifierStringPrefix() local 63 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix() 64 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix() 138 const char *TokPtr = Buffer; in GetFirstChar() local 139 PP.getSpelling(Tok, TokPtr); in GetFirstChar() 140 return TokPtr[0]; in GetFirstChar()
|
D | Lexer.cpp | 708 const char *TokPtr = SM.getCharacterData(TokStart, &Invalid); in AdvanceToTokenCharacter() local 711 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in AdvanceToTokenCharacter() 719 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in AdvanceToTokenCharacter() 722 ++TokPtr; in AdvanceToTokenCharacter() 731 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in AdvanceToTokenCharacter() 732 TokPtr += Size; in AdvanceToTokenCharacter() 740 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in AdvanceToTokenCharacter() 741 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in AdvanceToTokenCharacter()
|
/external/llvm-project/clang/lib/Lex/ |
D | TokenConcatenation.cpp | 61 const char *TokPtr = Buffer; in IsIdentifierStringPrefix() local 62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix() 63 return IsStringPrefix(StringRef(TokPtr, length), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix() 141 const char *TokPtr = Buffer; in GetFirstChar() local 142 PP.getSpelling(Tok, TokPtr); in GetFirstChar() 143 return TokPtr[0]; in GetFirstChar()
|
D | Lexer.cpp | 728 const char *TokPtr = SM.getCharacterData(TokStart, &Invalid); in getTokenPrefixLength() local 731 if (Invalid || (CharNo == 0 && Lexer::isObviouslySimpleCharacter(*TokPtr))) in getTokenPrefixLength() 739 while (Lexer::isObviouslySimpleCharacter(*TokPtr)) { in getTokenPrefixLength() 742 ++TokPtr; in getTokenPrefixLength() 751 Lexer::getCharAndSizeNoWarn(TokPtr, Size, LangOpts); in getTokenPrefixLength() 752 TokPtr += Size; in getTokenPrefixLength() 760 if (!Lexer::isObviouslySimpleCharacter(*TokPtr)) in getTokenPrefixLength() 761 PhysOffset += Lexer::SkipEscapedNewLines(TokPtr)-TokPtr; in getTokenPrefixLength()
|
/external/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 675 const char *TokPtr = Buffer; in PrintPreprocessedTokens() local 676 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens() 677 OS.write(TokPtr, Len); in PrintPreprocessedTokens() 682 Callbacks->HandleNewlinesInToken(TokPtr, Len); in PrintPreprocessedTokens()
|
D | TextDiagnostic.cpp | 1109 const char *TokPtr = BufStart+FileOffset; in emitSnippetAndCaret() local 1110 const char *LineStart = TokPtr-ColNo+1; // Column # is 1-based. in emitSnippetAndCaret() 1114 const char *LineEnd = TokPtr; in emitSnippetAndCaret()
|
/external/llvm-project/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 793 const char *TokPtr = Buffer; in PrintPreprocessedTokens() local 794 unsigned Len = PP.getSpelling(Tok, TokPtr); in PrintPreprocessedTokens() 795 OS.write(TokPtr, Len); in PrintPreprocessedTokens() 800 Callbacks->HandleNewlinesInToken(TokPtr, Len); in PrintPreprocessedTokens()
|