Searched refs:CurTok (Results 1 - 17 of 17) sorted by relevance

/external/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp136 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
138 /// lexer and updates CurTok with its results.
139 static int CurTok; variable
141 return CurTok = gettok();
150 if (!isascii(CurTok))
154 int TokPrec = BinopPrecedence[CurTok];
173 if (CurTok != '(') // Simple variable ref.
179 if (CurTok != ')') {
185 if (CurTok
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h120 AsmToken CurTok; member in class:llvm::MCAsmLexer
150 return CurTok = LexToken();
160 return CurTok;
177 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
180 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
183 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/external/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()),
/external/llvm/examples/Kaleidoscope/Chapter6/
H A Dtoy.cpp220 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
222 /// lexer and updates CurTok with its results.
223 static int CurTok; variable
225 return CurTok = gettok();
234 if (!isascii(CurTok))
238 int TokPrec = BinopPrecedence[CurTok];
258 if (CurTok != '(') // Simple variable ref.
264 if (CurTok != ')') {
270 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter3/
H A Dtoy.cpp156 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
158 /// lexer and updates CurTok with its results.
159 static int CurTok; variable
161 return CurTok = gettok();
170 if (!isascii(CurTok))
174 int TokPrec = BinopPrecedence[CurTok];
194 if (CurTok != '(') // Simple variable ref.
200 if (CurTok != ')') {
206 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter7/
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/cached/
H A Dtoy-jit.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];
293 if (CurTok != '(') // Simple variable ref.
299 if (CurTok != ')') {
305 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/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.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...]
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/Chapter5/
H A Dtoy.cpp192 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
194 /// lexer and updates CurTok with its results.
195 static int CurTok; variable
197 return CurTok = gettok();
206 if (!isascii(CurTok))
210 int TokPrec = BinopPrecedence[CurTok];
230 if (CurTok != '(') // Simple variable ref.
236 if (CurTok != ')') {
242 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter4/
H A Dtoy.cpp163 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
165 /// lexer and updates CurTok with its results.
166 static int CurTok; variable
168 return CurTok = gettok();
177 if (!isascii(CurTok))
181 int TokPrec = BinopPrecedence[CurTok];
201 if (CurTok != '(') // Simple variable ref.
207 if (CurTok != ')') {
213 if (CurTok
[all...]
/external/clang/lib/Rewrite/Frontend/
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/MCJIT/complete/
H A Dtoy.cpp285 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
287 /// lexer and updates CurTok with its results.
288 static int CurTok; variable
290 return CurTok = gettok();
299 if (!isascii(CurTok))
303 int TokPrec = BinopPrecedence[CurTok];
323 if (CurTok != '(') // Simple variable ref.
329 if (CurTok != ')') {
335 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.is(tok::hash) || CurTok.is(tok::hashat)) {
193 getExpansionLocForMacroDefLoc(CurTok.getLocation());
198 if (CurTok.is(tok::hash)) // Stringify
231 IdentifierInfo *II = CurTok.getIdentifierInfo();
235 ResultToks.push_back(CurTok);
297 updateLocForMacroArgTokens(CurTok.getLocation(),
341 updateLocForMacroArgTokens(CurTok
[all...]
H A DPPDirectives.cpp1314 Token CurTok; local
1316 Lex(CurTok);
1317 while (CurTok.isNot(tok::eod)) {
1318 End = CurTok.getLocation();
1321 if (CurTok.is(tok::code_completion)) {
1323 Lex(CurTok);
1329 if (CurTok.hasLeadingSpace())
1334 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1337 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1344 if (CurTok
[all...]

Completed in 574 milliseconds