Lines Matching defs:Tokens
1 //===- Tokens.cpp - collect tokens from preprocessing ---------------------===//
8 #include "clang/Tooling/Syntax/Tokens.h"
481 "Tokens not in spelled range");
524 llvm::ArrayRef<syntax::Token> Tokens) {
528 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; });
529 bool AcceptRight = Right != Tokens.end() && Right->location() <= Loc;
531 Right != Tokens.begin() && (Right - 1)->endLocation() >= Loc;
538 const syntax::TokenBuffer &Tokens) {
540 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc)));
545 llvm::ArrayRef<syntax::Token> Tokens) {
546 for (const syntax::Token &Tok : spelledTokensTouching(Loc, Tokens)) {
555 const syntax::TokenBuffer &Tokens) {
557 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc)));
578 std::vector<syntax::Token> Tokens;
588 Tokens.push_back(syntax::Token(T));
605 return Tokens;
921 llvm::ArrayRef<syntax::Token> Tokens) {
922 if (Tokens.empty()) {
926 OS << Tokens[0].text(*SourceMgr);
927 for (unsigned I = 1; I < Tokens.size(); ++I) {
928 if (Tokens[I].kind() == tok::eof)
930 OS << " " << PrintToken(Tokens[I]);