| /src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| GlobPattern.h | 48 std::vector<BitVector> Tokens;
|
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/ |
| Synthesis.cpp | 39 auto Tokens = 42 assert(Tokens.size() == 1); 43 assert(Tokens.front().kind() == K && 46 auto *Leaf = new (A.getAllocator()) syntax::Leaf(Tokens.begin());
|
| BuildTree.cpp | 30 #include "clang/Tooling/Syntax/Tokens.h" 356 /// Initially all tokens are added as pending nodes. When processing a clang AST 379 /// Populate children for \p New node, assuming it covers tokens from \p 401 /// Populate children for \p New list, assuming it covers tokens from a 438 auto Tokens = Arena.getTokenBuffer().expandedTokens(); 439 assert(!Tokens.empty()); 440 assert(Tokens.back().kind() == tok::eof); 443 Pending.foldChildren(Arena, Tokens.drop_back(), 454 /// Finds the syntax tokens corresponding to the \p SourceRange. 460 /// Finds the syntax tokens corresponding to the passed source locations [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| TokenLexer.h | 27 /// TokenLexer - This implements a lexer that returns tokens from a macro body 43 /// This is the pointer to an array of tokens that the macro is 45 /// a token stream, these are the tokens we are returning. This points into 51 const Token *Tokens; 53 /// This is the length of the Tokens array. 89 /// This is true if this TokenLexer allocated the Tokens 95 /// This is true when tokens lexed from the TokenLexer 99 /// When true, the produced tokens have Token::IsReinjected flag set. 115 /// specified, this takes ownership of the tokens and delete[]'s them when 137 /// DisableExpansion is true when macro expansion of tokens lexed from thi [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-rc/ |
| ResourceScriptParser.h | 9 // This defines the RC scripts parser. It takes a sequence of RC tokens 184 std::vector<RCToken> Tokens;
|
| llvm-rc.cpp | 608 std::vector<RCToken> Tokens = ExitOnErr(tokenizeRC(FilteredContents)); 617 for (const RCToken &Token : Tokens) { 659 rc::RCParser Parser{std::move(Tokens)};
|
| /src/external/apache2/llvm/dist/clang/lib/Format/ |
| FormatTokenLexer.h | 111 // Index (in 'Tokens') of the last token that starts a new line. 113 SmallVector<FormatToken *, 16> Tokens;
|
| MacroExpander.cpp | 51 DefinitionParser(ArrayRef<FormatToken *> Tokens) : Tokens(Tokens) { 52 assert(!Tokens.empty()); 53 Current = Tokens[0]; 110 if (Pos + 1 < Tokens.size()) 112 Current = Tokens[Pos]; 119 ArrayRef<FormatToken *> Tokens; 142 const auto Tokens = Lex.lex(); 143 if (!Tokens.empty()) [all...] |
| BreakableToken.h | 12 /// token type-specific logic to break long lines in tokens and reflow content 13 /// between tokens. 36 /// Base class for tokens / ranges of tokens that can allow breaking 37 /// within the tokens - for example, to avoid whitespace beyond the column 69 /// For tokens where the whitespace before each line needs to be also 70 /// reformatted, for example for tokens supporting reflow, there are analogous 80 /// For tokens that require the whitespace after the last line to be 113 /// unbreakable sequences of tokens following after the end of the token. 121 /// For breakable tokens that never use extra space at the end of a line, thi [all...] |
| UnwrappedLineParser.h | 11 /// which turns a stream of tokens into UnwrappedLines. 40 /// The \c Tokens comprising this \c UnwrappedLine. 41 std::list<UnwrappedLineNode> Tokens; 79 unsigned FirstStartColumn, ArrayRef<FormatToken *> Tokens, 159 // Decides which comment tokens should be added to the current line and which 162 // Comments specifies the sequence of comment tokens to analyze. They get 229 FormatTokenSource *Tokens; 233 // of the format tokens. The goal is to have the actual tokens created and
|
| Format.cpp | 1542 FormatTokenLexer &Tokens) override { 1630 FormatTokenLexer &Tokens) override { 1646 ContinuationIndenter Indenter(Style, Tokens.getKeywords(), 1651 Tokens.getKeywords(), Env.getSourceManager(), 1762 FormatTokenLexer &Tokens) override { 1824 FormatTokenLexer &Tokens) override { 1992 std::vector<FormatToken *> Tokens; 1994 std::back_inserter(Tokens)); 2000 while (Idx < Tokens.size()) { 2002 while ((End + 1) < Tokens.size() & [all...] |
| TokenAnnotator.cpp | 66 /// A parser that gathers additional information about tokens. 120 // tokens to prevent splitting right bitshift operators and potentially 453 // Move along the tokens inbetween the '[' and ']' e.g. [STAThread]. 653 // will be expanded to more tokens. 1153 // Mark tokens up to the trailing line comments as implicit string 1209 // Tokens cannot be comments here. 1821 // Certain other tokens right before the parentheses are also signals that 1921 // that this is cast, unless there are unexpected tokens inside the 1928 // Search for unexpected tokens. 2055 // Set of "<" tokens that do not open a template parameter list. If parseAngl [all...] |
| UnwrappedLineParser.cpp | 11 /// which turns a stream of tokens into UnwrappedLines. 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) 199 : Tokens(Tokens), Position(-1) {} 203 return Tokens[Position]; 213 return Tokens[Position] [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/DependencyScanning/ |
| DependencyScanningFilesystem.cpp | 38 SmallVector<minimize_source_to_dependency_directives::Token, 64> Tokens; 40 Buffer->getBuffer(), MinimizedFileContents, Tokens)) { 77 minimize_source_to_dependency_directives::computeSkippedRanges(Tokens,
|
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/ |
| Tree.h | 13 // covers a continous subrange of expanded tokens (i.e. tokens after 14 // preprocessing), the specific tokens coverered are stored in the leaf nodes of 16 // corresponding the original order of expanded tokens. 28 #include "clang/Tooling/Syntax/Tokens.h" 44 const TokenBuffer &Tokens); 54 /// resulting tokens. Used exclusively in `FactoryImpl` to materialize tokens 63 const TokenBuffer &Tokens; 78 /// A node in a syntax tree. Each node is either a Leaf (representing tokens) o [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Lex/ |
| DependencyDirectivesSourceMinimizer.cpp | 34 /// The known tokens encountered during the minimization. 35 SmallVectorImpl<Token> &Tokens; 37 Minimizer(SmallVectorImpl<char> &Out, SmallVectorImpl<Token> &Tokens, 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.back().K; [all...] |
| Pragma.cpp | 131 // TokenCollector provides the option to collect tokens that were "read" 137 SmallVector<Token, 3> Tokens; 142 Tokens.push_back(Tok); 147 assert(Collect && "did not collect tokens"); 148 assert(!Tokens.empty() && "collected unexpected number of tokens"); 150 // Push the ( "string" ) tokens into the token stream. 151 auto Toks = std::make_unique<Token[]>(Tokens.size()); 152 std::copy(Tokens.begin() + 1, Tokens.end(), Toks.get()) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/AVR/AsmParser/ |
| AVRAsmParser.cpp | 412 // separate tokens. 433 AsmToken tokens[2]; local 434 size_t ReadCount = Parser.getLexer().peekTokens(tokens); 437 if ((tokens[0].getKind() == AsmToken::Identifier && 438 tokens[1].getKind() == AsmToken::LParen) || 439 (tokens[0].getKind() == AsmToken::LParen && 440 tokens[1].getKind() == AsmToken::Minus)) { 444 tokens[1].getKind() == AsmToken::Minus) { 480 if (tokens[1].getKind() == AsmToken::Minus || 481 tokens[1].getKind() == AsmToken::Plus) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/AST/ |
| CommentSema.cpp | 704 TokenValue Tokens[] = {tok::l_square, tok::l_square, 707 MacroName = PP->getLastMacroWithSpelling(FD->getLocation(), Tokens); 713 TokenValue Tokens[] = { 718 PP->getLastMacroWithSpelling(FD->getLocation(), Tokens);
|
| /src/external/apache2/llvm/dist/clang/lib/Parse/ |
| ParsePragma.cpp | 829 // Grab the tokens out of the annotation and enter them into the stream. 851 // Pragma handling failed, and has been diagnosed. Slurp up the tokens 1249 // Tokens following an error in an ill-formed constant expression will 1274 // Tokens following an error in an ill-formed constant expression will 1304 ArrayRef<Token> Tokens; 1494 /// any other missing tokens. 1566 if (Info->Action == PragmaAttributeInfo::Push && Info->Tokens.empty()) { 1572 PP.EnterTokenStream(Info->Tokens, /*DisableMacroExpansion=*/false, 1708 // Tokens following an ill-formed attribute will remain in the token stream 2609 /// Handle all MS pragmas. Simply forwards the tokens after insertin [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| IfConversion.cpp | 258 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 263 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 481 std::vector<std::unique_ptr<IfcvtToken>> Tokens; 489 AnalyzeBlocks(MF, Tokens); 490 while (!Tokens.empty()) { 491 std::unique_ptr<IfcvtToken> Token = std::move(Tokens.back()); 492 Tokens.pop_back(); 600 Tokens.clear(); 1212 MachineBasicBlock &MBB, std::vector<std::unique_ptr<IfcvtToken>> &Tokens) { 1322 Tokens.push_back(std::make_unique<IfcvtToken> [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/AsmParser/ |
| HexagonAsmParser.cpp | 1055 SmallVector<AsmToken, 4> Tokens; 1060 Tokens.emplace_back(Lexer.getTok()); 1062 switch (Tokens.back().getKind()) { 1064 if (Tokens.size() > 1) 1065 if ((Tokens.end() - 2)->getKind() == AsmToken::TokenKind::Plus) { 1066 Tokens.insert(Tokens.end() - 2, 1080 while (!Tokens.empty()) { 1081 Lexer.UnLex(Tokens.back()); 1082 Tokens.pop_back() [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/AsmParser/ |
| X86AsmParser.cpp | 1469 SmallVector<AsmToken, 5> Tokens; 1470 auto OnFailure = [RestoreOnFailure, &Lexer, &Tokens]() { 1472 while (!Tokens.empty()) { 1473 Lexer.UnLex(Tokens.pop_back_val()); 1484 Tokens.push_back(PercentTok); 1503 // Parse "%st" as "%st(0)" and "%st(1)", which is multiple tokens. 1505 Tokens.push_back(Tok); 1512 Tokens.push_back(Parser.getTok()); 1535 Tokens.push_back(IntTok); 2417 // Eat tokens [all...] |
| /src/external/apache2/llvm/dist/clang/tools/libclang/ |
| CIndex.cpp | 6890 // Lex tokens until we hit the end of the range. 6971 void clang_tokenize(CXTranslationUnit TU, CXSourceRange Range, CXToken **Tokens, 6975 if (Tokens) 6976 *Tokens = nullptr; 6986 if (!CXXUnit || !Tokens || !NumTokens) 7001 *Tokens = static_cast<CXToken *>( 7003 memmove(*Tokens, CXTokens.data(), sizeof(CXToken) * CXTokens.size()); 7007 void clang_disposeTokens(CXTranslationUnit TU, CXToken *Tokens, 7009 free(Tokens); 7024 CXToken *Tokens; [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/AsmParser/ |
| AMDGPUAsmParser.cpp | 1238 SmallVectorImpl<AsmToken> &Tokens); 1241 SmallVectorImpl<AsmToken> &Tokens); 1244 SmallVectorImpl<AsmToken> &Tokens); 1246 unsigned &RegWidth, SmallVectorImpl<AsmToken> &Tokens); 1576 void peekTokens(MutableArrayRef<AsmToken> Tokens); 2514 SmallVectorImpl<AsmToken> &Tokens) { 2521 Tokens.push_back(getToken()); 2529 SmallVectorImpl<AsmToken> &Tokens) { 2540 Tokens.push_back(getToken()); 2563 SmallVectorImpl<AsmToken> &Tokens) { [all...] |