/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/ |
H A D | FormatTokenLexer.cpp | 56 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 D | UsingDeclarationsSorter.h | 30 FormatTokenLexer &Tokens) override;
|
H A D | TokenAnnotator.h | 40 : 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 D | NamespaceEndCommentsFixer.h | 40 FormatTokenLexer &Tokens) override;
|
H A D | UnwrappedLineParser.cpp | 146 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 D | UnwrappedLineParser.h | 40 /// 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 D | FormatTokenLexer.h | 112 // 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 D | TokenAnalyzer.h | 90 FormatTokenLexer &Tokens) = 0;
|
H A D | BreakableToken.cpp | 300 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 D | TokenAnalyzer.cpp | 74 SmallVector<FormatToken *, 10> Tokens(Toks.begin(), Toks.end()); 76 Env.getFirstStartColumn(), Tokens, *this);
|
H A D | FormatToken.h | 362 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 D | Synthesis.cpp | 26 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 D | ComputeReplacements.cpp | 10 #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 D | Tree.cpp | 36 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 D | Tokens.cpp | 1 //===- 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 D | BuildTree.cpp | 28 #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 D | GlobPattern.h | 38 std::vector<BitVector> Tokens; member in class:llvm::GlobPattern
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | TokenLexer.cpp | 53 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 D | DependencyDirectivesSourceMinimizer.cpp | 35 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 D | DependencyDirectivesSourceMinimizer.h | 104 &Tokens,
|
H A D | TokenLexer.h | 51 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 D | Tokens.h | 1 //===- 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 D | Tree.h | 28 #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 D | GlobPattern.cpp | 138 Pat.Tokens.push_back(*BV); 150 return matchOne(Tokens, S);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | DependencyScanningFilesystem.cpp | 38 SmallVector<minimize_source_to_dependency_directives::Token, 64> Tokens; local 40 Buffer->getBuffer(), MinimizedFileContents, Tokens)) { 77 minimize_source_to_dependency_directives::computeSkippedRanges(Tokens,
|