Home
last modified time | relevance | path

Searched refs:NextTok (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineParser.cpp499 auto *NextTok = Tokens->getNextNonComment(); in calculateBraceTypes() local
503 while (NextTok->is(tok::hash)) { in calculateBraceTypes()
504 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
505 if (NextTok->isOneOf(tok::pp_not_keyword, tok::pp_define)) in calculateBraceTypes()
508 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
509 } while (!NextTok->HasUnescapedNewline && NextTok->isNot(tok::eof)); in calculateBraceTypes()
511 while (NextTok->is(tok::comment)) in calculateBraceTypes()
512 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
545 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes()
549 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes()
[all …]
H A DUnwrappedLineParser.h235 const FormatToken *NextTok);
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMasmParser.cpp1138 AsmToken NextTok; in Lex() local
1139 MutableArrayRef<AsmToken> Buf(NextTok); in Lex()
1141 if (ReadCount && NextTok.is(AsmToken::Identifier) && in Lex()
1142 (NextTok.getString().equals_insensitive("equ") || in Lex()
1143 NextTok.getString().equals_insensitive("textequ"))) { in Lex()
3407 const AsmToken NextTok = peekTok(); in parseRealInstList() local
3408 if (NextTok.is(AsmToken::Identifier) && in parseRealInstList()
3409 NextTok.getString().equals_insensitive("dup")) { in parseRealInstList()
3767 const AsmToken NextTok = peekTok(); in parseStructInstList() local
3768 if (NextTok.is(AsmToken::Identifier) && in parseStructInstList()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp682 AsmToken NextTok = Lexer.peekTok(); in parseInstruction() local
683 return NextTok.getKind() == AsmToken::Identifier && in parseInstruction()
684 NextTok.getIdentifier().starts_with("catch"); in parseInstruction()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp3642 std::optional<Token> NextTok = Lexer::findNextToken( in fixVarDeclWithArray() local
3644 while (NextTok && !NextTok->is(tok::l_square) && in fixVarDeclWithArray()
3645 NextTok->getLocation() <= D->getSourceRange().getEnd()) in fixVarDeclWithArray()
3646 NextTok = Lexer::findNextToken(NextTok->getLocation(), in fixVarDeclWithArray()
3648 if (!NextTok) in fixVarDeclWithArray()
3650 const SourceLocation LSqBracketLoc = NextTok->getLocation(); in fixVarDeclWithArray()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp1994 const AsmToken &NextTok = getLexer().peekTok(); in ParseIntelExpression() local
1995 if (NextTok.is(AsmToken::Identifier) && in ParseIntelExpression()
1996 NextTok.getIdentifier().equals_insensitive("ptr")) { in ParseIntelExpression()
3305 StringRef NextTok = Parser.getTok().getString(); in parseInstruction() local
3306 if (Parser.isParsingMasm() ? NextTok.equals_insensitive("short") in parseInstruction()
3307 : NextTok == "short") { in parseInstruction()
3316 NextTok.size() + 1); in parseInstruction()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp644 const auto &NextTok = NextToken(); in ParseObjCInterfaceDeclList() local
645 if (NextTok.is(tok::code_completion)) { in ParseObjCInterfaceDeclList()
651 tok::ObjCKeywordKind DirectiveKind = NextTok.getObjCKeywordID(); in ParseObjCInterfaceDeclList()
658 Diag(NextTok, diag::err_objc_unknown_at); in ParseObjCInterfaceDeclList()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp4569 const dependency_directives_scan::Token &NextTok = in LexDependencyDirectiveToken() local
4571 if (BufferStart + NextTok.Offset >= BufferPtr) in LexDependencyDirectiveToken()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp3271 const auto& NextTok = peekToken(); in parseImm() local
3276 if (!IsReal && Tok.is(AsmToken::Minus) && NextTok.is(AsmToken::Real)) { in parseImm()