Searched defs:CurTok (Results 1 - 25 of 31) sorted by relevance

12

/external/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp49 unsigned &CurTok, bool ReturnComment) {
50 assert(CurTok < RawTokens.size() && "Overran eof!");
53 if (!ReturnComment && RawTokens[CurTok].is(tok::comment))
54 ++CurTok;
56 return RawTokens[CurTok++];
48 GetNextRawTok(const std::vector<Token> &RawTokens, unsigned &CurTok, bool ReturnComment) argument
/external/swiftshader/third_party/LLVM/include/llvm/MC/
H A DMCTargetAsmLexer.h21 AsmToken CurTok; member in class:llvm::MCTargetAsmLexer
59 return CurTok = LexToken();
64 return CurTok;
78 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
81 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
84 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/external/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp169 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
171 /// lexer and updates CurTok with its results.
172 static int CurTok; variable
173 static int getNextToken() { return CurTok = gettok(); }
181 if (!isascii(CurTok))
185 int TokPrec = BinopPrecedence[CurTok];
217 if (CurTok != ')')
231 if (CurTok != '(') // Simple variable ref.
237 if (CurTok !
[all...]
/external/clang/lib/Lex/
H A DTokenLexer.cpp185 const Token &CurTok = Tokens[i]; local
186 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace())
189 if (CurTok.isOneOf(tok::hash, tok::hashat)) {
194 getExpansionLocForMacroDefLoc(CurTok.getLocation());
199 if (CurTok.is(tok::hash)) // Stringify
233 IdentifierInfo *II = CurTok.getIdentifierInfo();
237 ResultToks.push_back(CurTok);
299 updateLocForMacroArgTokens(CurTok.getLocation(),
344 updateLocForMacroArgTokens(CurTok.getLocation(),
H A DPPDirectives.cpp1535 Token CurTok; local
1537 Lex(CurTok);
1538 while (CurTok.isNot(tok::eod)) {
1539 End = CurTok.getLocation();
1542 if (CurTok.is(tok::code_completion)) {
1544 Lex(CurTok);
1550 if (CurTok.hasLeadingSpace())
1555 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1558 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1565 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp178 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
180 /// lexer and updates CurTok with its results.
181 static int CurTok; variable
182 static int getNextToken() { return CurTok = gettok(); }
190 if (!isascii(CurTok))
194 int TokPrec = BinopPrecedence[CurTok];
227 if (CurTok != ')')
241 if (CurTok != '(') // Simple variable ref.
247 if (CurTok !
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp142 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
144 /// lexer and updates CurTok with its results.
145 static int CurTok; variable
147 return CurTok = gettok();
156 if (!isascii(CurTok))
160 int TokPrec = BinopPrecedence[CurTok];
180 if (CurTok != '(') // Simple variable ref.
186 if (CurTok != ')') {
192 if (CurTok
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/MC/MCParser/
H A DMCAsmLexer.h118 AsmToken CurTok; member in class:llvm::MCAsmLexer
146 return CurTok = LexToken();
156 return CurTok;
170 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
173 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
176 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/external/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp187 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
189 /// lexer and updates CurTok with its results.
190 static int CurTok; variable
191 static int getNextToken() { return CurTok = gettok(); }
199 if (!isascii(CurTok))
203 int TokPrec = BinopPrecedence[CurTok];
236 if (CurTok != ')')
250 if (CurTok != '(') // Simple variable ref.
256 if (CurTok !
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h127 SmallVector<AsmToken, 1> CurTok; member in class:llvm::MCAsmLexer
157 assert(!CurTok.empty());
158 CurTok.erase(CurTok.begin());
160 // the first one. Place returned value at head of CurTok vector.
161 if (CurTok.empty()) {
163 CurTok.insert(CurTok.begin(), T);
165 return CurTok.front();
169 CurTok
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp154 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
156 /// lexer and updates CurTok with its results.
157 static int CurTok; variable
159 return CurTok = gettok();
168 if (!isascii(CurTok))
172 int TokPrec = BinopPrecedence[CurTok];
192 if (CurTok != '(') // Simple variable ref.
198 if (CurTok != ')') {
204 if (CurTok
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp161 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
163 /// lexer and updates CurTok with its results.
164 static int CurTok; variable
166 return CurTok = gettok();
175 if (!isascii(CurTok))
179 int TokPrec = BinopPrecedence[CurTok];
199 if (CurTok != '(') // Simple variable ref.
205 if (CurTok != ')') {
211 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/
H A Dtoy.cpp283 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
285 /// lexer and updates CurTok with its results.
286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); }
295 if (!isascii(CurTok))
299 int TokPrec = BinopPrecedence[CurTok];
332 if (CurTok != ')')
346 if (CurTok != '(') // Simple variable ref.
352 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/
H A Dtoy.cpp283 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
285 /// lexer and updates CurTok with its results.
286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); }
295 if (!isascii(CurTok))
299 int TokPrec = BinopPrecedence[CurTok];
332 if (CurTok != ')')
346 if (CurTok != '(') // Simple variable ref.
352 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/
H A Dtoy.cpp283 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
285 /// lexer and updates CurTok with its results.
286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); }
295 if (!isascii(CurTok))
299 int TokPrec = BinopPrecedence[CurTok];
332 if (CurTok != ')')
346 if (CurTok != '(') // Simple variable ref.
352 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/
H A Dtoy.cpp271 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
273 /// lexer and updates CurTok with its results.
274 static int CurTok; variable
275 static int getNextToken() { return CurTok = gettok(); }
283 if (!isascii(CurTok))
287 int TokPrec = BinopPrecedence[CurTok];
320 if (CurTok != ')')
334 if (CurTok != '(') // Simple variable ref.
340 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/
H A Dtoy.cpp286 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
288 /// lexer and updates CurTok with its results.
289 static int CurTok; variable
290 static int getNextToken() { return CurTok = gettok(); }
298 if (!isascii(CurTok))
302 int TokPrec = BinopPrecedence[CurTok];
335 if (CurTok != ')')
349 if (CurTok != '(') // Simple variable ref.
355 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp230 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
232 /// lexer and updates CurTok with its results.
233 static int CurTok; variable
234 static int getNextToken() { return CurTok = gettok(); }
242 if (!isascii(CurTok))
246 int TokPrec = BinopPrecedence[CurTok];
279 if (CurTok != ')')
293 if (CurTok != '(') // Simple variable ref.
299 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp263 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
265 /// lexer and updates CurTok with its results.
266 static int CurTok; variable
267 static int getNextToken() { return CurTok = gettok(); }
275 if (!isascii(CurTok))
279 int TokPrec = BinopPrecedence[CurTok];
312 if (CurTok != ')')
326 if (CurTok != '(') // Simple variable ref.
332 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp283 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
285 /// lexer and updates CurTok with its results.
286 static int CurTok; variable
287 static int getNextToken() { return CurTok = gettok(); }
295 if (!isascii(CurTok))
299 int TokPrec = BinopPrecedence[CurTok];
332 if (CurTok != ')')
346 if (CurTok != '(') // Simple variable ref.
352 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp280 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
282 /// lexer and updates CurTok with its results.
283 static int CurTok; variable
284 static int getNextToken() { return CurTok = gettok(); }
292 if (!isascii(CurTok))
296 int TokPrec = BinopPrecedence[CurTok];
329 if (CurTok != ')')
343 if (CurTok != '(') // Simple variable ref.
349 if (CurTok !
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter5/
H A Dtoy.cpp190 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
192 /// lexer and updates CurTok with its results.
193 static int CurTok; variable
195 return CurTok = gettok();
204 if (!isascii(CurTok))
208 int TokPrec = BinopPrecedence[CurTok];
228 if (CurTok != '(') // Simple variable ref.
234 if (CurTok != ')') {
240 if (CurTok
[all...]
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp218 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
220 /// lexer and updates CurTok with its results.
221 static int CurTok; variable
223 return CurTok = gettok();
232 if (!isascii(CurTok))
236 int TokPrec = BinopPrecedence[CurTok];
256 if (CurTok != '(') // Simple variable ref.
262 if (CurTok != ')') {
268 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter9/
H A Dtoy.cpp408 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
410 /// lexer and updates CurTok with its results.
411 static int CurTok; variable
412 static int getNextToken() { return CurTok = gettok(); }
420 if (!isascii(CurTok))
424 int TokPrec = BinopPrecedence[CurTok];
457 if (CurTok != ')')
473 if (CurTok != '(') // Simple variable ref.
479 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dtoy-jit.cpp254 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
256 /// lexer and updates CurTok with its results.
257 static int CurTok; variable
259 return CurTok = gettok();
268 if (!isascii(CurTok))
272 int TokPrec = BinopPrecedence[CurTok];
292 if (CurTok != '(') // Simple variable ref.
298 if (CurTok != ')') {
304 if (CurTok
[all...]

Completed in 304 milliseconds

12