/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | RemoveUsingNamespace.cpp | 78 llvm::Optional<Token> NextTok = in removeUsingDirective() local 80 if (!NextTok || NextTok->isNot(tok::semi)) in removeUsingDirective() 86 CharSourceRange::getTokenRange(D->getBeginLoc(), NextTok->getLocation()), in removeUsingDirective()
|
D | DefineInline.cpp | 77 auto NextTok = Lexer::findNextToken(CurLoc, SM, LangOpts); in getSemicolonForDecl() local 78 if (!NextTok || !NextTok->is(tok::semi)) in getSemicolonForDecl() 80 return NextTok->getLocation(); in getSemicolonForDecl()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | ExplicitConstructorCheck.cpp | 53 Token NextTok; in FindToken() local 54 Lex.LexFromRawLexer(NextTok); in FindToken() 55 return SourceRange(Tok.getLocation(), NextTok.getLocation()); in FindToken()
|
/external/clang/lib/Lex/ |
D | TokenLexer.cpp | 784 Token *NextTok = begin_tokens + 1; in updateConsecutiveMacroArgTokens() local 785 for (; NextTok < end_tokens; ++NextTok) { in updateConsecutiveMacroArgTokens() 786 SourceLocation NextLoc = NextTok->getLocation(); in updateConsecutiveMacroArgTokens() 806 Token &LastConsecutiveTok = *(NextTok-1); in updateConsecutiveMacroArgTokens() 818 for (; begin_tokens < NextTok; ++begin_tokens) { in updateConsecutiveMacroArgTokens()
|
/external/llvm-project/clang/lib/Format/ |
D | UnwrappedLineParser.cpp | 455 FormatToken *NextTok; in calculateBraceTypes() local 458 NextTok = Tokens->getNextToken(); in calculateBraceTypes() 460 } while (NextTok->is(tok::comment)); in calculateBraceTypes() 490 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 494 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 495 NextTok->OriginalColumn == 0; in calculateBraceTypes() 507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes() 509 (Style.isCpp() && NextTok->is(tok::l_paren)) || in calculateBraceTypes() 510 NextTok->isOneOf(tok::comma, tok::period, tok::colon, in calculateBraceTypes() 513 (NextTok->is(tok::identifier) && in calculateBraceTypes() [all …]
|
D | UnwrappedLineParser.h | 163 const FormatToken *NextTok);
|
/external/llvm-project/clang/lib/Lex/ |
D | TokenLexer.cpp | 1007 Token *NextTok = begin_tokens + 1; in updateConsecutiveMacroArgTokens() local 1008 for (; NextTok < end_tokens; ++NextTok) { in updateConsecutiveMacroArgTokens() 1009 SourceLocation NextLoc = NextTok->getLocation(); in updateConsecutiveMacroArgTokens() 1029 Token &LastConsecutiveTok = *(NextTok-1); in updateConsecutiveMacroArgTokens() 1041 for (; begin_tokens < NextTok; ++begin_tokens) { in updateConsecutiveMacroArgTokens()
|
/external/clang/lib/Format/ |
D | UnwrappedLineParser.cpp | 326 FormatToken *NextTok; in calculateBraceTypes() local 329 NextTok = Tokens->getNextToken(); in calculateBraceTypes() 331 } while (NextTok->is(tok::comment)); in calculateBraceTypes() 350 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 354 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 355 NextTok->OriginalColumn == 0; in calculateBraceTypes() 367 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in)) || in calculateBraceTypes() 368 NextTok->isOneOf(tok::comma, tok::period, tok::colon, in calculateBraceTypes() 371 (NextTok->is(tok::semi) && in calculateBraceTypes() 373 (NextTok->isBinaryOperator() && !NextIsObjCMethod); in calculateBraceTypes() [all …]
|
/external/clang/lib/Frontend/ |
D | CacheTokens.cpp | 339 Token NextTok; in LexTokens() local 340 L.LexFromRawLexer(NextTok); in LexTokens() 344 if (NextTok.isAtStartOfLine()) in LexTokens() 349 Tok = NextTok; in LexTokens()
|
/external/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 112 Token NextTok = GetLookAheadToken(1); in CheckForLParenAfterColonColon() local 113 Token StarTok = NextTok; in CheckForLParenAfterColonColon() 123 NextTok = StarTok.is(tok::star) ? GetLookAheadToken(2) : GetLookAheadToken(1); in CheckForLParenAfterColonColon() 124 if (NextTok.is(tok::r_paren)) { in CheckForLParenAfterColonColon() 125 RParen = NextTok; in CheckForLParenAfterColonColon()
|
/external/llvm-project/llvm/lib/MC/MCParser/ |
D | MasmParser.cpp | 3660 const AsmToken NextTok = Lexer.peekTok(); in parseRealInstList() local 3661 if (NextTok.is(AsmToken::Identifier) && in parseRealInstList() 3662 NextTok.getString().equals_lower("dup")) { in parseRealInstList() 4024 const AsmToken NextTok = Lexer.peekTok(); in parseStructInstList() local 4025 if (NextTok.is(AsmToken::Identifier) && in parseStructInstList() 4026 NextTok.getString().equals_lower("dup")) { in parseStructInstList() 4291 AsmToken NextTok = getTok(); in parseDirectiveStruct() local 4293 if (NextTok.isNot(AsmToken::Comma) && in parseDirectiveStruct() 4294 NextTok.isNot(AsmToken::EndOfStatement) && in parseDirectiveStruct() 4300 return Error(NextTok.getLoc(), "alignment must be a power of two; was " + in parseDirectiveStruct()
|
/external/llvm-project/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 1931 const AsmToken &NextTok = getLexer().peekTok(); in ParseIntelExpression() local 1932 if (NextTok.is(AsmToken::Identifier) && in ParseIntelExpression() 1933 NextTok.getIdentifier().equals_lower("ptr")) { in ParseIntelExpression() 3104 StringRef NextTok = Parser.getTok().getString(); in ParseInstruction() local 3105 if (NextTok == "short") { in ParseInstruction() 3114 NextTok.size() + 1); in ParseInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 2457 StringRef NextTok = Parser.getTok().getString(); in ParseInstruction() local 2458 if (NextTok == "short") { in ParseInstruction() 2467 NextTok.size() + 1); in ParseInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 2345 const auto& NextTok = peekToken(); in parseImm() local 2350 if (!IsReal && Tok.is(AsmToken::Minus) && NextTok.is(AsmToken::Real)) { in parseImm()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 2572 const auto& NextTok = peekToken(); in parseImm() local 2577 if (!IsReal && Tok.is(AsmToken::Minus) && NextTok.is(AsmToken::Real)) { in parseImm()
|