/external/clang/lib/Format/ |
D | FormatTokenLexer.cpp | 46 assert(Tokens.empty()); in lex() 49 Tokens.push_back(getNextToken()); in lex() 55 if (Tokens.back()->NewlinesBefore > 0 || Tokens.back()->IsMultiline) in lex() 56 FirstInLineIndex = Tokens.size() - 1; in lex() 57 } while (Tokens.back()->Tok.isNot(tok::eof)); in lex() 58 return Tokens; in lex() 90 if (Tokens.size() < 3) in tryMergeLessLess() 94 if (Tokens.size() > 3) in tryMergeLessLess() 95 FourthTokenIsLess = (Tokens.end() - 4)[0]->is(tok::less); in tryMergeLessLess() 97 auto First = Tokens.end() - 3; in tryMergeLessLess() [all …]
|
D | TokenAnnotator.h | 42 : First(Line.Tokens.front().Tok), Level(Line.Level), in AnnotatedLine() 47 assert(!Line.Tokens.empty()); in AnnotatedLine() 54 for (std::list<UnwrappedLineNode>::const_iterator I = ++Line.Tokens.begin(), in AnnotatedLine() 55 E = Line.Tokens.end(); in AnnotatedLine() 85 template <typename... Ts> bool startsWith(Ts... Tokens) const { in startsWith() argument 86 return First && First->startsSequence(Tokens...); in startsWith() 93 template <typename... Ts> bool endsWith(Ts... Tokens) const { in endsWith() argument 94 return Last && Last->endsSequence(Tokens...); in endsWith()
|
D | UnwrappedLineParser.cpp | 126 else if (!Parser.Line->Tokens.empty()) in ScopedLineState() 127 Parser.CurrentLines = &Parser.Line->Tokens.back().Children; in ScopedLineState() 135 if (!Parser.Line->Tokens.empty()) { in ~ScopedLineState() 138 assert(Parser.Line->Tokens.empty()); in ~ScopedLineState() 173 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() argument 174 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource() 178 return Tokens[Position]; in getNextToken() 188 return Tokens[Position]; in setPosition() 194 ArrayRef<FormatToken *> Tokens; member in clang::format::__anon6af56abf0211::IndexedTokenSource 202 ArrayRef<FormatToken *> Tokens, in UnwrappedLineParser() argument [all …]
|
D | TokenAnalyzer.cpp | 93 FormatTokenLexer Tokens(Env.getSourceManager(), Env.getFileID(), Style, in process() local 96 UnwrappedLineParser Parser(Style, Tokens.getKeywords(), Tokens.lex(), *this); in process() 103 TokenAnnotator Annotator(Style, Tokens.getKeywords()); in process() 110 analyze(Annotator, AnnotatedLines, Tokens, Result); in process()
|
D | FormatToken.h | 303 bool startsSequence(A K1, Ts... Tokens) const { in startsSequence() 304 return startsSequenceInternal(K1, Tokens...); in startsSequence() 310 bool endsSequence(A K1, Ts... Tokens) const { in endsSequence() 311 return endsSequenceInternal(K1, Tokens...); in endsSequence() 448 bool startsSequenceInternal(A K1, Ts... Tokens) const { in startsSequenceInternal() 450 return Next->startsSequenceInternal(K1, Tokens...); in startsSequenceInternal() 451 return is(K1) && Next && Next->startsSequenceInternal(Tokens...); in startsSequenceInternal() 469 bool endsSequenceInternal(A K1, Ts... Tokens) const { in endsSequenceInternal() 471 return Previous->endsSequenceInternal(K1, Tokens...); in endsSequenceInternal() 472 return is(K1) && Previous && Previous->endsSequenceInternal(Tokens...); in endsSequenceInternal()
|
D | UnwrappedLineParser.h | 41 std::list<UnwrappedLineNode> Tokens; member 65 ArrayRef<FormatToken *> Tokens, 165 FormatTokenSource *Tokens; variable
|
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
D | test-tree-wizard.rb | 84 Tokens = TokenScheme.build %w(A B C D E ID VAR) constant in TestPatternParser 85 include Tokens 88 @adaptor = CommonTreeAdaptor.new( Tokens.token_class ) 89 @pattern_adaptor = Wizard::PatternAdaptor.new( Tokens.token_class ) 90 @wizard = Wizard.new( :adaptor => @adaptor, :token_scheme => Tokens ) 95 tree = Wizard::PatternParser.parse( 'ID', Tokens, @adaptor ) 103 tree = Wizard::PatternParser.parse( 'ID[foo]', Tokens, @adaptor ) 111 tree = Wizard::PatternParser.parse( '(A B)', Tokens, @adaptor ) 122 tree = Wizard::PatternParser.parse( 'nil', Tokens, @adaptor ) 130 tree = Wizard::PatternParser.parse( '(.)', Tokens, @adaptor ) [all …]
|
/external/clang/lib/Lex/ |
D | TokenLexer.cpp | 41 Tokens = &*Macro->tokens_begin(); in Init() 51 assert(Tokens[0].getLocation().isValid()); in Init() 52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) && in Init() 60 MacroDefStart = SM.getExpansionLoc(Tokens[0].getLocation()); in Init() 89 Tokens = TokArray; in Init() 112 delete [] Tokens; in destroy() 113 Tokens = nullptr; in destroy() 185 const Token &CurTok = Tokens[i]; in ExpandFunctionArguments() 186 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments() 190 int ArgNo = Macro->getArgumentNum(Tokens[i+1].getIdentifierInfo()); in ExpandFunctionArguments() [all …]
|
D | Preprocessor.cpp | 329 ArrayRef<TokenValue> Tokens) { in MacroDefinitionEquals() argument 330 return Tokens.size() == MI->getNumTokens() && in MacroDefinitionEquals() 331 std::equal(Tokens.begin(), Tokens.end(), MI->tokens_begin()); in MacroDefinitionEquals() 336 ArrayRef<TokenValue> Tokens) const { in getLastMacroWithSpelling() 347 if (!MacroDefinitionEquals(Def.getMacroInfo(), Tokens)) in getLastMacroWithSpelling()
|
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/ |
D | EDInst.cpp | 47 unsigned int numTokens = Tokens.size(); in ~EDInst() 50 delete Tokens[index]; in ~EDInst() 175 return TokenizeResult.setResult(EDToken::tokenize(Tokens, in tokenize() 185 return Tokens.size(); in numTokens() 191 token = Tokens[index]; in getToken() 202 for (iter = Tokens.begin(); iter != Tokens.end(); ++iter) { in visitTokens()
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | TokenConstants.cs | 65 public static class Tokens class 67 public static readonly IToken EndOfFile = Tokens<CommonToken>.EndOfFile; 79 public static class Tokens<T>
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | IfConversion.cpp | 185 std::vector<IfcvtToken*> &Tokens); 188 void AnalyzeBlocks(MachineFunction &MF, std::vector<IfcvtToken*> &Tokens); 286 std::vector<IfcvtToken*> Tokens; in runOnMachineFunction() local 294 AnalyzeBlocks(MF, Tokens); in runOnMachineFunction() 295 while (!Tokens.empty()) { in runOnMachineFunction() 296 IfcvtToken *Token = Tokens.back(); in runOnMachineFunction() 297 Tokens.pop_back(); in runOnMachineFunction() 393 while (!Tokens.empty()) { in runOnMachineFunction() 394 IfcvtToken *Token = Tokens.back(); in runOnMachineFunction() 395 Tokens.pop_back(); in runOnMachineFunction() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_optimize.c | 320 out_tokens->Tokens = MALLOC(sizeof(union i915_full_token) * out_tokens->NumTokens); in i915_optimize() 331 copy_token(&out_tokens->Tokens[i] , &parse.FullToken); in i915_optimize() 334 i915_fpc_optimize_useless_mov_after_inst(&out_tokens->Tokens[i-1], &out_tokens->Tokens[i]); in i915_optimize() 335 i915_fpc_optimize_mov_after_alu(&out_tokens->Tokens[i-1], &out_tokens->Tokens[i]); in i915_optimize() 346 free(tokens->Tokens); in i915_optimize_free()
|
/external/llvm/lib/CodeGen/ |
D | IfConversion.cpp | 208 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 212 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 322 std::vector<std::unique_ptr<IfcvtToken>> Tokens; in INITIALIZE_PASS_DEPENDENCY() local 330 AnalyzeBlocks(MF, Tokens); in INITIALIZE_PASS_DEPENDENCY() 331 while (!Tokens.empty()) { in INITIALIZE_PASS_DEPENDENCY() 332 std::unique_ptr<IfcvtToken> Token = std::move(Tokens.back()); in INITIALIZE_PASS_DEPENDENCY() 333 Tokens.pop_back(); in INITIALIZE_PASS_DEPENDENCY() 425 Tokens.clear(); in INITIALIZE_PASS_DEPENDENCY() 802 MachineBasicBlock *MBB, std::vector<std::unique_ptr<IfcvtToken>> &Tokens) { in AnalyzeBlock() argument 900 Tokens.push_back(llvm::make_unique<IfcvtToken>( in AnalyzeBlock() [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_parse.c | 46 ctx->Tokens = tokens; in tgsi_parse_init() 88 copy_token(token, &ctx->Tokens[ctx->Position]); in next_token() 127 &ctx->Tokens[ctx->Position]; in tgsi_parse_token()
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/lexertest-simple/ |
D | Test.tokens | 2 Tokens=7
|
D | TestLexer.h | 15 #pragma mark Tokens
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | Tokens.cs | 35 public static class Tokens class
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | TreeConstants.cs | 37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/lexertest-simple/output1/ |
D | TestLexerLexer.h | 15 #pragma mark Tokens
|
D | TestLexer.h | 15 #pragma mark Tokens
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treerewrite/output1/ |
D | TreeRewriteLexer.h | 16 #pragma mark Tokens
|
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/combined/ |
D | CombinedLexer.h | 16 #pragma mark Tokens
|
D | CombinedParser.h | 13 #pragma mark Tokens
|
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter4/ |
D | token.ml | 2 * Lexer Tokens
|