Lines Matching defs:Tok
146 Token Tok;
328 bool is(tok::TokenKind Kind) const { return Tok.is(Kind); }
331 return II && II == Tok.getIdentifierInfo();
334 return Tok.getIdentifierInfo() &&
335 Tok.getIdentifierInfo()->getPPKeywordID() == Kind;
377 bool isStringLiteral() const { return tok::isStringLiteral(Tok.getKind()); }
380 return Tok.isObjCAtKeyword(Kind);
399 /// Returns whether \p Tok is ([{ or an opening < of a template or in
409 /// Returns whether \p Tok is )]} or a closing > of a template or in
428 switch (Tok.getKind()) {
456 switch (Tok.getKind()) {
491 /// This can be different to Tok.getLocation(), which includes leading escaped
498 return getBinOpPrecedence(Tok.getKind(), /*GreaterThanIsOperator=*/true,
504 FormatToken *Tok = Previous;
505 while (Tok && Tok->is(tok::comment))
506 Tok = Tok->Previous;
507 return Tok;
512 const FormatToken *Tok = Next;
513 while (Tok && Tok->is(tok::comment))
514 Tok = Tok->Next;
515 return Tok;
918 /// Returns \c true if \p Tok is a true JavaScript identifier, returns
923 bool IsJavaScriptIdentifier(const FormatToken &Tok,
927 switch (Tok.Tok.getKind()) {
965 JsExtraKeywords.find(Tok.Tok.getIdentifierInfo()) !=
975 switch (Tok.Tok.getKind()) {
988 /// Returns \c true if \p Tok is a C# keyword, returns
990 bool isCSharpKeyword(const FormatToken &Tok) const {
991 switch (Tok.Tok.getKind()) {
1038 return Tok.is(tok::identifier) &&
1039 CSharpExtraKeywords.find(Tok.Tok.getIdentifierInfo()) ==