Searched refs:Tokens (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DFormatTokenLexer.cpp56 assert(Tokens.empty());
59 Tokens.push_back(getNextToken());
71 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline)
72 FirstInLineIndex = Tokens.size() - 1;
73 } while (Tokens.back()->Tok.isNot(tok::eof));
74 return Tokens;
135 Tokens.back()->Tok.setKind(tok::starequal);
140 Tokens.back()->Tok.setKind(tok::pipepipe);
146 Tokens
[all...]
H A DUsingDeclarationsSorter.h30 FormatTokenLexer &Tokens) override;
H A DTokenAnnotator.h40 : First(Line.Tokens.front().Tok), Level(Line.Level),
48 assert(!Line.Tokens.empty());
55 for (std::list<UnwrappedLineNode>::const_iterator I = ++Line.Tokens.begin(),
56 E = Line.Tokens.end();
86 template <typename... Ts> bool startsWith(Ts... Tokens) const {
87 return First && First->startsSequence(Tokens...);
94 template <typename... Ts> bool endsWith(Ts... Tokens) const {
95 return Last && Last->endsSequence(Tokens...);
H A DNamespaceEndCommentsFixer.h40 FormatTokenLexer &Tokens) override;
H A DUnwrappedLineParser.cpp146 else if (!Parser.Line->Tokens.empty())
147 Parser.CurrentLines = &Parser.Line->Tokens.back().Children;
155 if (!Parser.Line->Tokens.empty()) {
158 assert(Parser.Line->Tokens.empty());
198 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) argument
199 : Tokens(Tokens), Position(-1) {}
203 return Tokens[Position];
213 return Tokens[Position];
219 ArrayRef<FormatToken *> Tokens; member in class:clang::format::__anon1875::IndexedTokenSource
225 UnwrappedLineParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, unsigned FirstStartColumn, ArrayRef<FormatToken *> Tokens, UnwrappedLineConsumer &Callback) argument
2362 FormatTokenSource *Tokens; member in class:clang::format::__anon1876::ScopedTokenPosition
2365 ScopedTokenPosition(FormatTokenSource *Tokens) argument
[all...]
H A DUnwrappedLineParser.h40 /// The \c Tokens comprising this \c UnwrappedLine.
41 std::list<UnwrappedLineNode> Tokens; member in struct:clang::format::UnwrappedLine
79 unsigned FirstStartColumn, ArrayRef<FormatToken *> Tokens,
217 FormatTokenSource *Tokens; member in class:clang::format::UnwrappedLineParser
H A DFormatTokenLexer.h112 // Index (in 'Tokens') of the last token that starts a new line.
114 SmallVector<FormatToken *, 16> Tokens; member in class:clang::format::FormatTokenLexer
H A DTokenAnalyzer.h90 FormatTokenLexer &Tokens) = 0;
H A DBreakableToken.cpp300 return Tokens[LineIndex] ? *Tokens[LineIndex] : Tok;
354 Tokens.resize(Lines.size());
627 assert(Tokens[LineIndex - 1] == Tokens[LineIndex] &&
740 Tokens.resize(Lines.size());
769 Tokens[i] = LineTok;
861 if (LineIndex > 0 && Tokens[LineIndex] != Tokens[LineIndex - 1]) {
865 *Tokens[LineInde
[all...]
H A DTokenAnalyzer.cpp74 SmallVector<FormatToken *, 10> Tokens(Toks.begin(), Toks.end());
76 Env.getFirstStartColumn(), Tokens, *this);
H A DFormatToken.h362 bool startsSequence(A K1, Ts... Tokens) const {
363 return startsSequenceInternal(K1, Tokens...);
373 bool endsSequence(A K1, Ts... Tokens) const {
374 return endsSequenceInternal(K1, Tokens...);
575 bool startsSequenceInternal(A K1, Ts... Tokens) const {
577 return Next->startsSequenceInternal(K1, Tokens...);
578 return is(K1) && Next && Next->startsSequenceInternal(Tokens...);
594 bool endsSequenceInternal(A K1, Ts... Tokens) const {
596 return Previous->endsSequenceInternal(K1, Tokens...);
597 return is(K1) && Previous && Previous->endsSequenceInternal(Tokens
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp26 auto Tokens = A.lexBuffer(llvm::MemoryBuffer::getMemBuffer( local
29 assert(Tokens.size() == 1);
30 assert(Tokens.front().kind() == K);
31 auto *L = new (A.allocator()) clang::syntax::Leaf(Tokens.begin());
H A DComputeReplacements.cpp10 #include "clang/Tooling/Syntax/Tokens.h"
103 &TU, [&](llvm::ArrayRef<syntax::Token> Tokens, bool IsOriginal) {
106 syntax::Token::range(SM, Tokens.front(), Tokens.back()).text(SM);
109 assert(NextOriginal <= Tokens.begin());
111 if (NextOriginal != Tokens.begin()) {
113 emitReplacement(llvm::makeArrayRef(NextOriginal, Tokens.begin()));
118 NextOriginal = Tokens.end();
H A DTree.cpp36 TokenBuffer Tokens)
37 : SourceMgr(SourceMgr), LangOpts(LangOpts), Tokens(std::move(Tokens)) {}
40 return Tokens;
138 static void dumpTokens(llvm::raw_ostream &OS, ArrayRef<syntax::Token> Tokens, argument
140 assert(!Tokens.empty());
142 for (const auto &T : Tokens) {
35 Arena(SourceManager &SourceMgr, const LangOptions &LangOpts, TokenBuffer Tokens) argument
H A DTokens.cpp1 //===- Tokens.cpp - collect tokens from preprocessing ---------------------===//
8 #include "clang/Tooling/Syntax/Tokens.h"
425 llvm::ArrayRef<syntax::Token> Tokens) {
429 Tokens, [&](const syntax::Token &Tok) { return Tok.location() < Loc; });
430 bool AcceptRight = Right != Tokens.end() && Right->location() <= Loc;
432 Right != Tokens.begin() && (Right - 1)->endLocation() >= Loc;
439 const syntax::TokenBuffer &Tokens) {
441 Loc, Tokens.spelledTokens(Tokens.sourceManager().getFileID(Loc)));
446 llvm::ArrayRef<syntax::Token> Tokens) {
[all...]
H A DBuildTree.cpp28 #include "clang/Tooling/Syntax/Tokens.h"
315 auto Tokens = Arena.tokenBuffer().expandedTokens(); local
316 assert(!Tokens.empty());
317 assert(Tokens.back().kind() == tok::eof);
320 Pending.foldChildren(Arena, Tokens.drop_back(),
351 auto Tokens = getRange(D->getSourceRange()); local
352 return maybeAppendSemicolon(Tokens, D);
387 llvm::ArrayRef<clang::syntax::Token> Tokens; local
390 Tokens = getRange(S->TypeDecl::getBeginLoc(), S->getEndLoc());
392 Tokens
403 auto Tokens = getRange(S->getSourceRange()); local
416 maybeAppendSemicolon(llvm::ArrayRef<syntax::Token> Tokens, const Decl *D) const argument
477 foldChildren(const syntax::Arena &A, llvm::ArrayRef<syntax::Token> Tokens, syntax::Tree *Node) argument
931 auto Tokens = Builder.getDeclarationRange(S); local
1238 auto Tokens = llvm::makeArrayRef(Arrow, Return.end()); local
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DGlobPattern.h38 std::vector<BitVector> Tokens; member in class:llvm::GlobPattern
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DTokenLexer.cpp53 Tokens = &*Macro->tokens_begin();
64 assert(Tokens[0].getLocation().isValid());
65 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) &&
70 // definition. Tokens that get lexed directly from the definition will
73 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation());
82 // Tokens to point to the expanded tokens.
104 Tokens = TokArray;
128 delete [] Tokens;
129 Tokens
[all...]
H A DDependencyDirectivesSourceMinimizer.cpp35 SmallVectorImpl<Token> &Tokens; member in struct:__anon1947::Minimizer
37 Minimizer(SmallVectorImpl<char> &Out, SmallVectorImpl<Token> &Tokens, argument
40 : Out(Out), Tokens(Tokens), Input(Input), Diags(Diags),
70 Tokens.emplace_back(K, Out.size());
71 return Tokens.back();
74 Out.resize(Tokens.back().Offset);
75 Tokens.pop_back();
77 TokenKind top() const { return Tokens.empty() ? pp_none : Tokens
950 minimizeSourceToDependencyDirectives( StringRef Input, SmallVectorImpl<char> &Output, SmallVectorImpl<Token> &Tokens, DiagnosticsEngine *Diags, SourceLocation InputSourceLoc) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DDependencyDirectivesSourceMinimizer.h104 &Tokens,
H A DTokenLexer.h51 const Token *Tokens; member in class:clang::TokenLexer
53 /// This is the length of the Tokens array.
89 /// This is true if this TokenLexer allocated the Tokens
163 /// Concatenates the next (sub-)sequence of \p Tokens separated by '##'
172 /// Tokens upon entry and will contain the resulting concatenated Token upon
175 /// \param[in] TokenStream - The stream of Tokens we are lexing from.
187 /// Calls pasteTokens above, passing in the '*this' object's Tokens and
197 /// \param[in,out] ResultToks - Contains the current Replacement Tokens
210 /// return preexpanded tokens from Tokens.
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h1 //===- Tokens.h - collect tokens from preprocessing --------------*- C++-*-===//
187 /// Tokens are in TU order (per SourceManager::isBeforeInTranslationUnit()).
368 spelledTokensTouching(SourceLocation Loc, const syntax::TokenBuffer &Tokens);
370 spelledTokensTouching(SourceLocation Loc, llvm::ArrayRef<syntax::Token> Tokens);
376 llvm::ArrayRef<syntax::Token> Tokens);
379 const syntax::TokenBuffer &Tokens);
H A DTree.h28 #include "clang/Tooling/Syntax/Tokens.h"
42 TokenBuffer Tokens);
59 TokenBuffer Tokens; member in class:clang::syntax::Arena
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DGlobPattern.cpp138 Pat.Tokens.push_back(*BV);
150 return matchOne(Tokens, S);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.cpp38 SmallVector<minimize_source_to_dependency_directives::Token, 64> Tokens; local
40 Buffer->getBuffer(), MinimizedFileContents, Tokens)) {
77 minimize_source_to_dependency_directives::computeSkippedRanges(Tokens,

Completed in 272 milliseconds

12