| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | HTMLRewrite.cpp | 466 unsigned TokLen = Tok.getLength(); in SyntaxHighlight() local 478 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight() 483 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight() 489 --TokLen; in SyntaxHighlight() 497 --TokLen; in SyntaxHighlight() 501 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight() 511 unsigned TokEnd = TokOffs+TokLen; in SyntaxHighlight()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | Lexer.h | 193 unsigned TokLen, Preprocessor &PP); 299 SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const; 621 unsigned TokLen = TokEnd-BufferPtr; in FormTokenWithChars() local 622 Result.setLength(TokLen); in FormTokenWithChars() 623 Result.setLocation(getSourceLocation(BufferPtr, TokLen)); in FormTokenWithChars()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ElseAfterReturnCheck.cpp | 122 auto TokLen = [&](SourceLocation Loc) { in removeElseAndBrackets() local 132 Remap(LBrace).getLocWithOffset(TokLen(LBrace) + 1); in removeElseAndBrackets() 145 ElseExpandedLoc.getLocWithOffset(TokLen(ElseLoc) + 1), EndLoc), in removeElseAndBrackets()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldChecker.cpp | 124 unsigned TokLen = 1; in getTokenForError() local 126 TokLen = 2; in getTokenForError() 127 Token = Expr.substr(0, TokLen); in getTokenForError()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | CommentLexer.cpp | 262 const unsigned TokLen = TokEnd - BufferPtr; in formTokenWithChars() local 265 Result.setLength(TokLen); in formTokenWithChars()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | Lexer.cpp | 198 unsigned TokLen, Preprocessor &PP) { in Create_PragmaLexer() argument 212 L->BufferEnd = StrData+TokLen; in Create_PragmaLexer() 219 ExpansionLocEnd, TokLen); in Create_PragmaLexer() 1123 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen); 1126 unsigned CharNo, unsigned TokLen) { in GetMappedTokenLoc() argument 1143 return SM.createExpansionLoc(SpellingLoc, II.getBegin(), II.getEnd(), TokLen); in GetMappedTokenLoc() 1149 unsigned TokLen) const { in getSourceLocation() 1162 return GetMappedTokenLoc(*PP, FileLoc, CharNo, TokLen); in getSourceLocation()
|
| H A D | LiteralSupport.cpp | 2219 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte() local 2225 const char *SpellingEnd = SpellingPtr+TokLen; in getOffsetOfStringByte()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SourceCode.cpp | 434 unsigned TokLen = getTokenLengthAtLoc(Result.getEnd(), SM, LangOpts); in toHalfOpenFileRange() local 436 Result.setEnd(Result.getEnd().getLocWithOffset(TokLen)); in toHalfOpenFileRange()
|
| H A D | XRefs.cpp | 223 auto TokLen = Lexer::MeasureTokenLength(Loc, SM, AST.getLangOpts()); in makeLocation() local 225 SM, CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(TokLen))); in makeLocation()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 229 unsigned TokLen = in getPreciseTokenLocEnd() local 231 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd()
|