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

/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/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp168 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
170 /// lexer and updates CurTok with its results.
171 static int CurTok; variable
172 static int getNextToken() { return CurTok = gettok(); }
180 if (!isascii(CurTok))
184 int TokPrec = BinopPrecedence[CurTok];
216 if (CurTok != ')')
230 if (CurTok != '(') // Simple variable ref.
236 if (CurTok !
[all...]
/external/clang/lib/Lex/
H A DTokenLexer.cpp184 const Token &CurTok = Tokens[i]; local
185 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace())
188 if (CurTok.isOneOf(tok::hash, tok::hashat)) {
193 getExpansionLocForMacroDefLoc(CurTok.getLocation());
198 if (CurTok.is(tok::hash)) // Stringify
232 IdentifierInfo *II = CurTok.getIdentifierInfo();
236 ResultToks.push_back(CurTok);
298 updateLocForMacroArgTokens(CurTok.getLocation(),
342 updateLocForMacroArgTokens(CurTok.getLocation(),
H A DPPDirectives.cpp1393 Token CurTok; local
1395 Lex(CurTok);
1396 while (CurTok.isNot(tok::eod)) {
1397 End = CurTok.getLocation();
1400 if (CurTok.is(tok::code_completion)) {
1402 Lex(CurTok);
1408 if (CurTok.hasLeadingSpace())
1413 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1416 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1423 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp170 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
172 /// lexer and updates CurTok with its results.
173 static int CurTok; variable
174 static int getNextToken() { return CurTok = gettok(); }
182 if (!isascii(CurTok))
186 int TokPrec = BinopPrecedence[CurTok];
219 if (CurTok != ')')
233 if (CurTok != '(') // Simple variable ref.
239 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp176 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
178 /// lexer and updates CurTok with its results.
179 static int CurTok; variable
180 static int getNextToken() { return CurTok = gettok(); }
188 if (!isascii(CurTok))
192 int TokPrec = BinopPrecedence[CurTok];
225 if (CurTok != ')')
239 if (CurTok != '(') // Simple variable ref.
245 if (CurTok !
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h121 SmallVector<AsmToken, 1> CurTok; member in class:llvm::MCAsmLexer
151 assert(!CurTok.empty());
152 CurTok.erase(CurTok.begin());
153 if (CurTok.empty())
154 CurTok.emplace_back(LexToken());
155 return CurTok.front();
159 CurTok.insert(CurTok.begin(), Token);
169 return CurTok[
[all...]
/external/llvm/examples/Kaleidoscope/Chapter5/
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
222 static int getNextToken() { return CurTok = gettok(); }
230 if (!isascii(CurTok))
234 int TokPrec = BinopPrecedence[CurTok];
267 if (CurTok != ')')
281 if (CurTok != '(') // Simple variable ref.
287 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp251 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
253 /// lexer and updates CurTok with its results.
254 static int CurTok; variable
255 static int getNextToken() { return CurTok = gettok(); }
263 if (!isascii(CurTok))
267 int TokPrec = BinopPrecedence[CurTok];
300 if (CurTok != ')')
314 if (CurTok != '(') // Simple variable ref.
320 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter7/
H A Dtoy.cpp270 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
272 /// lexer and updates CurTok with its results.
273 static int CurTok; variable
274 static int getNextToken() { return CurTok = gettok(); }
282 if (!isascii(CurTok))
286 int TokPrec = BinopPrecedence[CurTok];
319 if (CurTok != ')')
333 if (CurTok != '(') // Simple variable ref.
339 if (CurTok !
[all...]
/external/llvm/examples/Kaleidoscope/Chapter8/
H A Dtoy.cpp407 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
409 /// lexer and updates CurTok with its results.
410 static int CurTok; variable
411 static int getNextToken() { return CurTok = gettok(); }
419 if (!isascii(CurTok))
423 int TokPrec = BinopPrecedence[CurTok];
456 if (CurTok != ')')
472 if (CurTok != '(') // Simple variable ref.
478 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...]
H A Dtoy.cpp261 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
263 /// lexer and updates CurTok with its results.
264 static int CurTok; variable
266 return CurTok = gettok();
275 if (!isascii(CurTok))
279 int TokPrec = BinopPrecedence[CurTok];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
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
285 return CurTok = gettok();
294 if (!isascii(CurTok))
298 int TokPrec = BinopPrecedence[CurTok];
318 if (CurTok != '(') // Simple variable ref.
324 if (CurTok != ')') {
330 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp238 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
240 /// lexer and updates CurTok with its results.
241 static int CurTok; variable
243 return CurTok = gettok();
252 if (!isascii(CurTok))
256 int TokPrec = BinopPrecedence[CurTok];
276 if (CurTok != '(') // Simple variable ref.
282 if (CurTok != ')') {
288 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp239 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
241 /// lexer and updates CurTok with its results.
242 static int CurTok; variable
244 return CurTok = gettok();
253 if (!isascii(CurTok))
257 int TokPrec = BinopPrecedence[CurTok];
277 if (CurTok != '(') // Simple variable ref.
283 if (CurTok != ')') {
289 if (CurTok
[all...]
H A Dtoy.cpp240 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
242 /// lexer and updates CurTok with its results.
243 static int CurTok; variable
245 return CurTok = gettok();
254 if (!isascii(CurTok))
258 int TokPrec = BinopPrecedence[CurTok];
278 if (CurTok != '(') // Simple variable ref.
284 if (CurTok != ')') {
290 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/fully_lazy/
H A Dtoy.cpp255 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
257 /// lexer and updates CurTok with its results.
258 static int CurTok; variable
260 return CurTok = gettok();
269 if (!isascii(CurTok))
273 int TokPrec = BinopPrecedence[CurTok];
300 if (CurTok != '(') // Simple variable ref.
306 if (CurTok != ')') {
312 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/initial/
H A Dtoy.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];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/lazy_codegen/
H A Dtoy.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];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Orc/lazy_irgen/
H A Dtoy.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];
299 if (CurTok != '(') // Simple variable ref.
305 if (CurTok != ')') {
311 if (CurTok
[all...]

Completed in 393 milliseconds