/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::__anon630c81280211::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/swiftshader/third_party/subzero/src/ |
D | IceRangeSpec.cpp | 51 auto Tokens = RangeSpec::tokenize(Token, RangeSpec::DELIM_RANGE); in getRange() local 52 if (Tokens.size() == 1) { in getRange() 53 *First = std::stoul(Tokens[0]); in getRange() 55 } else if (Tokens.size() == 2) { in getRange() 56 *First = Tokens[0].empty() ? 0 : std::stoul(Tokens[0]); in getRange() 57 *Last = Tokens[1].empty() ? RangeSpec::RangeMax : std::stoul(Tokens[1]); in getRange() 99 std::vector<std::string> Tokens; in tokenize() local 105 Tokens.emplace_back(Spec.substr(StartPos, DelimPos - StartPos)); in tokenize() 109 return Tokens; in tokenize() 115 auto Tokens = tokenize(Spec, DELIM_LIST); in init() local [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/antlr/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/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/turbine/javatests/com/google/turbine/parse/ |
D | JavacLexer.java | 24 import com.sun.tools.javac.parser.Tokens; 36 List<Tokens.Token> tokens = new ArrayList<>(); in javacLex() 40 } while (scanner.token().kind != Tokens.TokenKind.EOF); in javacLex() 43 new Function<Tokens.Token, String>() { in javacLex() 45 public String apply(Tokens.Token token) { in javacLex() 51 private static String printToken(String input, Tokens.Token token) {
|
/external/antlr/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 | 307 current = &tokens->Tokens[i]; in liveness_analysis() 330 current = &tokens->Tokens[i]; in liveness_analysis() 405 union i915_full_token *current = &tokens->Tokens[index - 1]; in i915_fpc_optimize_mov_before_tex() 406 union i915_full_token *next = &tokens->Tokens[index]; in i915_fpc_optimize_mov_before_tex() 572 union i915_full_token *current = &tokens->Tokens[index - 1]; in i915_fpc_optimize_useless_mov_after_inst() 573 union i915_full_token *next = &tokens->Tokens[index]; in i915_fpc_optimize_useless_mov_after_inst() 616 out_tokens->Tokens = MALLOC(sizeof(union i915_full_token) * out_tokens->NumTokens); in i915_optimize() 627 copy_token(&out_tokens->Tokens[i] , &parse.FullToken); in i915_optimize() 638 i915_fpc_optimize_mov_after_alu(&out_tokens->Tokens[i-1], &out_tokens->Tokens[i]); in i915_optimize() 639 i915_fpc_optimize_mov_after_mov(&out_tokens->Tokens[i-1], &out_tokens->Tokens[i]); in i915_optimize() [all …]
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | IfConversion.cpp | 254 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 259 std::vector<std::unique_ptr<IfcvtToken>> &Tokens); 376 std::vector<std::unique_ptr<IfcvtToken>> Tokens; in INITIALIZE_PASS_DEPENDENCY() local 384 AnalyzeBlocks(MF, Tokens); in INITIALIZE_PASS_DEPENDENCY() 385 while (!Tokens.empty()) { in INITIALIZE_PASS_DEPENDENCY() 386 std::unique_ptr<IfcvtToken> Token = std::move(Tokens.back()); in INITIALIZE_PASS_DEPENDENCY() 387 Tokens.pop_back(); in INITIALIZE_PASS_DEPENDENCY() 495 Tokens.clear(); in INITIALIZE_PASS_DEPENDENCY() 1090 MachineBasicBlock &MBB, std::vector<std::unique_ptr<IfcvtToken>> &Tokens) { in AnalyzeBlock() argument 1204 Tokens.push_back(llvm::make_unique<IfcvtToken>( in AnalyzeBlock() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/ |
D | llvm-rc.cpp | 116 std::vector<RCToken> Tokens = ExitOnErr(tokenizeRC(FilteredContents)); in main() local 125 for (const RCToken &Token : Tokens) { in main() 188 rc::RCParser Parser{std::move(Tokens)}; in main()
|
/external/tensorflow/tensorflow/lite/testing/ |
D | tokenize_test.cc | 30 const std::vector<std::string>& Tokens() { return tokens_; } in Tokens() function in tflite::testing::__anon5b6ec4640111::TokenCollector 40 return collector.Tokens(); in TokenizeString()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | GlobPattern.cpp | 130 Pat.Tokens.push_back(*BV); in create() 142 return matchOne(Tokens, S); in match()
|
/external/antlr/runtime/ObjC/Framework/examples/lexertest-simple/ |
D | Test.tokens | 2 Tokens=7
|
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | Tokens.cs | 35 public static class Tokens class
|
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | TreeConstants.cs | 37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
|
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter3/ |
D | token.ml | 2 * Lexer Tokens
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/ |
D | token.ml | 2 * Lexer Tokens
|