Home
last modified time | relevance | path

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

/external/clang/lib/Rewrite/
DHTMLRewrite.cpp378 unsigned TokLen = Tok.getLength(); in SyntaxHighlight() local
390 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
395 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
401 --TokLen; in SyntaxHighlight()
408 --TokLen; in SyntaxHighlight()
412 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
422 unsigned TokEnd = TokOffs+TokLen; in SyntaxHighlight()
/external/llvm-project/clang/lib/Rewrite/
DHTMLRewrite.cpp465 unsigned TokLen = Tok.getLength(); in SyntaxHighlight() local
477 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
482 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
488 --TokLen; in SyntaxHighlight()
496 --TokLen; in SyntaxHighlight()
500 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
510 unsigned TokEnd = TokOffs+TokLen; in SyntaxHighlight()
/external/clang/include/clang/Lex/
DLexer.h123 unsigned TokLen, Preprocessor &PP);
217 SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const;
504 unsigned TokLen = TokEnd-BufferPtr; in FormTokenWithChars() local
505 Result.setLength(TokLen); in FormTokenWithChars()
506 Result.setLocation(getSourceLocation(BufferPtr, TokLen)); in FormTokenWithChars()
/external/llvm-project/clang/include/clang/Lex/
DLexer.h168 unsigned TokLen, Preprocessor &PP);
261 SourceLocation getSourceLocation(const char *Loc, unsigned TokLen = 1) const;
588 unsigned TokLen = TokEnd-BufferPtr; in FormTokenWithChars() local
589 Result.setLength(TokLen); in FormTokenWithChars()
590 Result.setLocation(getSourceLocation(BufferPtr, TokLen)); in FormTokenWithChars()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
/external/clang/lib/Lex/
DLexer.cpp167 unsigned TokLen, Preprocessor &PP) { in Create_PragmaLexer() argument
181 L->BufferEnd = StrData+TokLen; in Create_PragmaLexer()
188 ExpansionLocEnd, TokLen); in Create_PragmaLexer()
1044 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1047 unsigned CharNo, unsigned TokLen) { in GetMappedTokenLoc() argument
1065 return SM.createExpansionLoc(SpellingLoc, II.first, II.second, TokLen); in GetMappedTokenLoc()
1071 unsigned TokLen) const { in getSourceLocation()
1084 return GetMappedTokenLoc(*PP, FileLoc, CharNo, TokLen); in getSourceLocation()
DLiteralSupport.cpp1633 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte() local
1639 const char *SpellingEnd = SpellingPtr+TokLen; in getOffsetOfStringByte()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp122 unsigned TokLen = 1; in getTokenForError() local
124 TokLen = 2; in getTokenForError()
125 Token = Expr.substr(0, TokLen); in getTokenForError()
/external/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp123 unsigned TokLen = 1; in getTokenForError() local
125 TokLen = 2; in getTokenForError()
126 Token = Expr.substr(0, TokLen); in getTokenForError()
/external/llvm-project/clang/lib/Lex/
DLexer.cpp192 unsigned TokLen, Preprocessor &PP) { in Create_PragmaLexer() argument
206 L->BufferEnd = StrData+TokLen; in Create_PragmaLexer()
213 ExpansionLocEnd, TokLen); in Create_PragmaLexer()
1104 Preprocessor &PP, SourceLocation FileLoc, unsigned CharNo, unsigned TokLen);
1107 unsigned CharNo, unsigned TokLen) { in GetMappedTokenLoc() argument
1124 return SM.createExpansionLoc(SpellingLoc, II.getBegin(), II.getEnd(), TokLen); in GetMappedTokenLoc()
1130 unsigned TokLen) const { in getSourceLocation()
1143 return GetMappedTokenLoc(*PP, FileLoc, CharNo, TokLen); in getSourceLocation()
DLiteralSupport.cpp1842 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features, in getOffsetOfStringByte() local
1848 const char *SpellingEnd = SpellingPtr+TokLen; in getOffsetOfStringByte()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp122 unsigned TokLen = 1; in getTokenForError() local
124 TokLen = 2; in getTokenForError()
125 Token = Expr.substr(0, TokLen); in getTokenForError()
/external/llvm-project/clang/lib/AST/
DCommentLexer.cpp281 const unsigned TokLen = TokEnd - BufferPtr; in formTokenWithChars() local
284 Result.setLength(TokLen); in formTokenWithChars()
/external/clang/lib/AST/
DCommentLexer.cpp282 const unsigned TokLen = TokEnd - BufferPtr; in formTokenWithChars() local
285 Result.setLength(TokLen); in formTokenWithChars()
/external/llvm-project/clang-tools-extra/clangd/
DSourceCode.cpp437 unsigned TokLen = getTokenLengthAtLoc(Result.getEnd(), SM, LangOpts); in toHalfOpenFileRange() local
439 Result.setEnd(Result.getEnd().getLocWithOffset(TokLen)); in toHalfOpenFileRange()
DXRefs.cpp222 auto TokLen = Lexer::MeasureTokenLength(Loc, SM, AST.getLangOpts()); in makeLocation() local
224 SM, CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(TokLen))); in makeLocation()
/external/clang/lib/CodeGen/
DCoverageMappingGen.cpp102 unsigned TokLen = in getPreciseTokenLocEnd() local
104 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd()
/external/llvm-project/clang/lib/CodeGen/
DCoverageMappingGen.cpp219 unsigned TokLen = in getPreciseTokenLocEnd() local
221 return Loc.getLocWithOffset(TokLen); in getPreciseTokenLocEnd()