|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Lex/Preprocessor.h 1722 Tok.getLength() == 1 && "Called on unsupported token");
tools/clang/include/clang/Lex/Token.h 155 : getLocation().getLocWithOffset(getLength());
207 return StringRef(reinterpret_cast<const char *>(PtrData), getLength());
tools/clang/lib/ARCMigrate/ObjCMT.cpp 830 if (Tok.isLiteral() && Tok.getLength() > 2) {
tools/clang/lib/Format/FormatTokenLexer.cpp 614 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1);
694 WhitespaceLength += FormatTok->Tok.getLength();
832 Tok.Tok.getLength());
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 745 Callbacks->MoveToLine(StartLoc.getLocWithOffset(Tok.getLength()));
791 OS.write(Tok.getLiteralData(), Tok.getLength());
792 } else if (Tok.getLength() < llvm::array_lengthof(Buffer)) {
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp 361 DirectiveToken.getLength(),
495 RawToken.getLength(),
518 RawToken.getLength(),
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 173 EndPos = RawOffs+RawTok.getLength();
tools/clang/lib/Lex/Lexer.cpp 275 const char *BufEnd = BufPtr + Tok.getLength();
314 assert(Length < Tok.getLength() &&
348 unsigned length = token.getLength();
367 assert((int)Tok.getLength() >= 0 && "Token character range is bogus!");
379 return std::string(TokStart, TokStart + Tok.getLength());
382 Result.resize(Tok.getLength());
400 assert((int)Tok.getLength() >= 0 && "Token character range is bogus!");
433 return Tok.getLength();
450 return TheTok.getLength();
541 if (TheLexer.getBufferLocation() - TheTok.getLength() <= StrData)
1281 const char *TokenEnd = SM.getCharacterData(TokenLoc) + Tok->getLength();
1298 return TokenLoc.getLocWithOffset(Tok->getLength() + NumWhitespaceChars);
tools/clang/lib/Lex/LiteralSupport.cpp 1466 if (StringToks.empty() || StringToks[0].getLength() < 2)
1474 MaxTokenLength = StringToks[0].getLength();
1475 assert(StringToks[0].getLength() >= 2 && "literal token is invalid!");
1476 SizeBound = StringToks[0].getLength()-2; // -2 for "".
1484 if (StringToks[i].getLength() < 2)
1489 assert(StringToks[i].getLength() >= 2 && "literal token is invalid!");
1490 SizeBound += StringToks[i].getLength()-2; // -2 for "".
1493 if (StringToks[i].getLength() > MaxTokenLength)
1494 MaxTokenLength = StringToks[i].getLength();
1817 SpellingBuffer.resize(Tok.getLength());
tools/clang/lib/Lex/MacroArgs.cpp 249 Result.resize(CurStrLen+Tok.getLength());
261 if (ActualTokLen != Tok.getLength())
tools/clang/lib/Lex/MacroInfo.cpp 62 DefinitionLength += lastToken.getLength();
170 Out << StringRef(Tok.getLiteralData(), Tok.getLength());
tools/clang/lib/Lex/ModuleMap.cpp 1580 SpellingBuffer.resize(LToken.getLength() + 1);
tools/clang/lib/Lex/PPDirectives.cpp 1101 IntegerBuffer.resize(DigitTok.getLength());
tools/clang/lib/Lex/PPMacroExpansion.cpp 594 ExpansionEnd,Identifier.getLength());
1533 Tok.getLength()));
1543 Tok.getLength()));
tools/clang/lib/Lex/Preprocessor.cpp 245 llvm::errs() << " [UnClean='" << StringRef(Start, Tok.getLength())
472 Buffer.resize(Tok.getLength());
1023 FilenameBuffer.resize(PreAppendSize + FilenameTok.getLength());
1033 if (FilenameTok.getLength() != ActualLen)
tools/clang/lib/Lex/TokenConcatenation.cpp 51 if (Tok.getLength() < 1 || Tok.getLength() > 3)
51 if (Tok.getLength() < 1 || Tok.getLength() > 3)
55 return IsStringPrefix(StringRef(Ptr, Tok.getLength()),
59 if (Tok.getLength() < 256) {
139 } else if (Tok.getLength() < 256) {
174 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc)
tools/clang/lib/Lex/TokenLexer.cpp 681 Tok.getLength());
770 Buffer.resize(LHSTok.getLength() + RHS.getLength());
770 Buffer.resize(LHSTok.getLength() + RHS.getLength());
912 LHSTok.getLength()));
1033 unsigned FullLength = LastRelOffs + LastConsecutiveTok.getLength();
1068 Tok.getLength()));
tools/clang/lib/Parse/ParseAST.cpp 79 unsigned Length = Tok.getLength();
tools/clang/lib/Parse/ParseDecl.cpp 870 Buffer.resize(Tok.getLength()+1);
tools/clang/lib/Parse/ParseDeclCXX.cpp 2655 if (Zero.isNot(tok::numeric_constant) || Zero.getLength() != 1 ||
3108 unsigned TokLength = Tok.getLength();
4249 SpellingBuffer.resize(Tok.getLength() + 1);
tools/clang/lib/Parse/ParseExprCXX.cpp 45 SourceLocation FirstEnd = FirstLoc.getLocWithOffset(First.getLength());
82 if (!Next.is(tok::l_square) || Next.getLength() != 2)
1505 if (Tok.is(tok::l_square) && Tok.getLength() == 2) {
tools/clang/lib/Parse/ParseStmtAsm.cpp 116 (AsmTokOffsets[LastIndex] + AsmToks[LastIndex].getLength() -
tools/clang/lib/Parse/ParseTemplate.cpp 984 unsigned OldLength = Tok.getLength();
987 OldLength += Tok.getLength();
997 AfterGreaterLoc = PP.SplitToken(AfterGreaterLoc, Tok.getLength());
tools/clang/lib/Rewrite/HTMLRewrite.cpp 465 unsigned TokLen = Tok.getLength();
513 TokEnd = SM.getFileOffset(Tok.getLocation())+Tok.getLength();
tools/clang/lib/Sema/SemaExpr.cpp 3394 if (Tok.getLength() == 1) {
3404 SpellingBuffer.resize(Tok.getLength() + 1);
tools/clang/lib/Serialization/ASTWriter.cpp 4585 Record.push_back(Tok.getLength());
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp 1175 StringRef(Result.getLiteralData(), Result.getLength()).trim('"');
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 894 for (unsigned i = 0, n = TheTok.getLength(); i < n; ++i)
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp 164 Token.getLength());
tools/clang/lib/Tooling/Syntax/Tokens.cpp 45 : Token(T.getLocation(), T.getLength(), T.getKind()) {
tools/clang/tools/clang-refactor/TestSupport.cpp 324 Source.substr(Tok.getLocation().getRawEncoding(), Tok.getLength());
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 97 StringRef(Buffer.begin() + CommentLoc.second, Tok.getLength()));
120 Loc, Loc.getLocWithOffset(Tok.getLength())),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 804 StringRef ValueStr = StringRef(T.getLiteralData(), T.getLength());
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp 71 Sources.getCharacterData(Tok.getLocation()), Tok.getLength()));
82 Tok.getLength());
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp 141 StringRef(SM.getCharacterData(T.getLocation()), T.getLength()));
223 StringRef(SM.getCharacterData(T.getLocation()), T.getLength()));
356 unsigned int TLengthWithWS = CT.T.getLength();
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp 67 Sources.getCharacterData(Tok.getLocation()), Tok.getLength()));
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 140 StringRef Comment(Sources.getCharacterData(Loc), Tok.getLength());
162 SourceRange(AfterRBrace, Loc.getLocWithOffset(Tok.getLength()));
173 SourceRange(AfterRBrace, Loc.getLocWithOffset(Tok.getLength()));
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp 110 StringRef(SM.getCharacterData(Tok.getLocation()), Tok.getLength()));
tools/clang/tools/extra/clangd/SourceCode.cpp 416 return TheTok.getLength();
tools/clang/tools/libclang/CIndex.cpp 6740 CXTok.int_data[2] = Tok.getLength();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp 256 std::string token_str = body.substr(start, token.getLength());
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 515 std::string token_str(literal_data, ti->getLength());
528 std::string(literal_source, ti->getLength()));
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp 614 unsigned end_pos = end_loc.getRawEncoding() + last_token.getLength();
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp 206 llvm::StringRef tok_str = line.substr(start, token.getLength());
216 auto end = start + token.getLength();