Home
last modified time | relevance | path

Searched refs:Tokens (Results 1 – 25 of 149) sorted by relevance

123456

/external/clang/lib/Format/
DFormatTokenLexer.cpp46 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 …]
DTokenAnnotator.h42 : 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()
DUnwrappedLineParser.cpp126 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 …]
DTokenAnalyzer.cpp93 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()
DFormatToken.h303 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()
DUnwrappedLineParser.h41 std::list<UnwrappedLineNode> Tokens; member
65 ArrayRef<FormatToken *> Tokens,
165 FormatTokenSource *Tokens; variable
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/
Dtest-tree-wizard.rb84 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/
DTokenLexer.cpp41 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 …]
DPreprocessor.cpp329 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/
DEDInst.cpp47 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/
DTokenConstants.cs65 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/
DIfConversion.cpp185 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/
Di915_fpc_optimize.c320 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/
DIfConversion.cpp208 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/
Dtgsi_parse.c46 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/
DTest.tokens2 Tokens=7
DTestLexer.h15 #pragma mark Tokens
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokens.cs35 public static class Tokens class
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DTreeConstants.cs37 public static readonly ITree INVALID_NODE = new CommonTree( Tokens.Invalid );
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/lexertest-simple/output1/
DTestLexerLexer.h15 #pragma mark Tokens
DTestLexer.h15 #pragma mark Tokens
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/treerewrite/output1/
DTreeRewriteLexer.h16 #pragma mark Tokens
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/combined/
DCombinedLexer.h16 #pragma mark Tokens
DCombinedParser.h13 #pragma mark Tokens
/external/swiftshader/third_party/LLVM/examples/OCaml-Kaleidoscope/Chapter4/
Dtoken.ml2 * Lexer Tokens

123456