Home
last modified time | relevance | path

Searched refs:TokLen (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang/lib/Rewrite/
H A DHTMLRewrite.cpp466 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 DLexer.h193 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 DElseAfterReturnCheck.cpp122 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 DRuntimeDyldChecker.cpp124 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 DCommentLexer.cpp262 const unsigned TokLen = TokEnd - BufferPtr; in formTokenWithChars() local
265 Result.setLength(TokLen); in formTokenWithChars()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLexer.cpp198 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 DLiteralSupport.cpp2219 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 DSourceCode.cpp434 unsigned TokLen = getTokenLengthAtLoc(Result.getEnd(), SM, LangOpts); in toHalfOpenFileRange() local
436 Result.setEnd(Result.getEnd().getLocWithOffset(TokLen)); in toHalfOpenFileRange()
H A DXRefs.cpp223 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 DCoverageMappingGen.cpp229 unsigned TokLen = in getPreciseTokenLocEnd() local
231 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd()