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

/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/clang/lib/Lex/
H A DTokenLexer.cpp191 const Token &CurTok = Tokens[i]; local
192 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) {
197 getExpansionLocForMacroDefLoc(CurTok.getLocation());
202 if (CurTok.is(tok::hash)) // Stringify
216 if (CurTok.hasLeadingSpace() || NextTokGetsSpace)
228 IdentifierInfo *II = CurTok.getIdentifierInfo();
232 ResultToks.push_back(CurTok);
298 updateLocForMacroArgTokens(CurTok.getLocation(),
307 CurTok
[all...]
H A DPPDirectives.cpp1280 Token CurTok; local
1282 Lex(CurTok);
1283 while (CurTok.isNot(tok::eod)) {
1284 End = CurTok.getLocation();
1287 if (CurTok.is(tok::code_completion)) {
1289 Lex(CurTok);
1295 if (CurTok.hasLeadingSpace())
1300 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1303 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1310 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/Chapter2/
H A Dtoy.cpp134 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
136 /// lexer and updates CurTok with its results.
137 static int CurTok; variable
139 return CurTok = gettok();
148 if (!isascii(CurTok))
152 int TokPrec = BinopPrecedence[CurTok];
172 if (CurTok != '(') // Simple variable ref.
178 if (CurTok != ')') {
184 if (CurTok
[all...]
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h110 AsmToken CurTok; member in class:llvm::MCAsmLexer
139 return CurTok = LexToken();
149 return CurTok;
163 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
166 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
169 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/external/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/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/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/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/Chapter7/
H A Dtoy.cpp236 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
238 /// lexer and updates CurTok with its results.
239 static int CurTok; variable
241 return CurTok = gettok();
250 if (!isascii(CurTok))
254 int TokPrec = BinopPrecedence[CurTok];
274 if (CurTok != '(') // Simple variable ref.
280 if (CurTok != ')') {
286 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.cpp260 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
262 /// lexer and updates CurTok with its results.
263 static int CurTok; variable
265 return CurTok = gettok();
274 if (!isascii(CurTok))
278 int TokPrec = BinopPrecedence[CurTok];
298 if (CurTok != '(') // Simple variable ref.
304 if (CurTok != ')') {
310 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dtoy.cpp284 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
286 /// lexer and updates CurTok with its results.
287 static int CurTok; variable
289 return CurTok = gettok();
298 if (!isascii(CurTok))
302 int TokPrec = BinopPrecedence[CurTok];
322 if (CurTok != '(') // Simple variable ref.
328 if (CurTok != ')') {
334 if (CurTok
[all...]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
H A Dtoy.cpp237 /// CurTok/getNextToken - Provide a simple token buffer. CurTok is the current
239 /// lexer and updates CurTok with its results.
240 static int CurTok; variable
242 return CurTok = gettok();
251 if (!isascii(CurTok))
255 int TokPrec = BinopPrecedence[CurTok];
275 if (CurTok != '(') // Simple variable ref.
281 if (CurTok != ')') {
287 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.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...]

Completed in 764 milliseconds