Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineParser.cpp505 auto *NextTok = Tokens->getNextNonComment(); in calculateBraceTypes() local
509 while (NextTok->is(tok::hash)) { in calculateBraceTypes()
510 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
511 if (NextTok->is(tok::pp_not_keyword)) in calculateBraceTypes()
514 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
515 } while (NextTok->NewlinesBefore == 0 && NextTok->isNot(tok::eof)); in calculateBraceTypes()
517 while (NextTok->is(tok::comment)) in calculateBraceTypes()
518 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
551 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes()
555 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes()
[all …]
H A DUnwrappedLineParser.h232 const FormatToken *NextTok);
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp2681 std::optional<Token> NextTok = Lexer::findNextToken( in fixVarDeclWithArray() local
2683 while (NextTok && !NextTok->is(tok::l_square) && in fixVarDeclWithArray()
2684 NextTok->getLocation() <= D->getSourceRange().getEnd()) in fixVarDeclWithArray()
2685 NextTok = Lexer::findNextToken(NextTok->getLocation(), in fixVarDeclWithArray()
2687 if (!NextTok) in fixVarDeclWithArray()
2689 const SourceLocation LSqBracketLoc = NextTok->getLocation(); in fixVarDeclWithArray()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMasmParser.cpp1246 AsmToken NextTok; in Lex() local
1247 MutableArrayRef<AsmToken> Buf(NextTok); in Lex()
1249 if (ReadCount && NextTok.is(AsmToken::Identifier) && in Lex()
1250 (NextTok.getString().equals_insensitive("equ") || in Lex()
1251 NextTok.getString().equals_insensitive("textequ"))) { in Lex()
3882 const AsmToken NextTok = peekTok(); in parseRealInstList() local
3883 if (NextTok.is(AsmToken::Identifier) && in parseRealInstList()
3884 NextTok.getString().equals_insensitive("dup")) { in parseRealInstList()
4243 const AsmToken NextTok = peekTok(); in parseStructInstList() local
4244 if (NextTok.is(AsmToken::Identifier) && in parseStructInstList()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/AsmParser/
H A DX86AsmParser.cpp1973 const AsmToken &NextTok = getLexer().peekTok(); in ParseIntelExpression() local
1974 if (NextTok.is(AsmToken::Identifier) && in ParseIntelExpression()
1975 NextTok.getIdentifier().equals_insensitive("ptr")) { in ParseIntelExpression()
3282 StringRef NextTok = Parser.getTok().getString(); in ParseInstruction() local
3283 if (Parser.isParsingMasm() ? NextTok.equals_insensitive("short") in ParseInstruction()
3284 : NextTok == "short") { in ParseInstruction()
3293 NextTok.size() + 1); in ParseInstruction()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp725 const auto &NextTok = NextToken(); in ParseObjCInterfaceDeclList() local
726 if (NextTok.is(tok::code_completion)) { in ParseObjCInterfaceDeclList()
732 tok::ObjCKeywordKind DirectiveKind = NextTok.getObjCKeywordID(); in ParseObjCInterfaceDeclList()
739 Diag(NextTok, diag::err_objc_unknown_at); in ParseObjCInterfaceDeclList()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp4542 const dependency_directives_scan::Token &NextTok = in LexDependencyDirectiveToken() local
4544 if (BufferStart + NextTok.Offset >= BufferPtr) in LexDependencyDirectiveToken()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AsmParser/
H A DAMDGPUAsmParser.cpp3145 const auto& NextTok = peekToken(); in parseImm() local
3150 if (!IsReal && Tok.is(AsmToken::Minus) && NextTok.is(AsmToken::Real)) { in parseImm()