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

/external/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/lib/MC/MCParser/
H A DMCAsmLexer.cpp15 MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()), TokStart(0) {
/external/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/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h119 AsmToken CurTok; member in class:llvm::MCAsmLexer
147 return CurTok = LexToken();
157 return CurTok;
171 AsmToken::TokenKind getKind() const { return CurTok.getKind(); }
174 bool is(AsmToken::TokenKind K) const { return CurTok.is(K); }
177 bool isNot(AsmToken::TokenKind K) const { return CurTok.isNot(K); }
/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/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/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/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/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/clang/lib/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/clang/lib/Lex/
H A DTokenLexer.cpp141 const Token &CurTok = Tokens[i]; local
142 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat)) {
147 getExpansionLocForMacroDefLoc(CurTok.getLocation());
152 if (CurTok.is(tok::hash)) // Stringify
166 if (CurTok.hasLeadingSpace() || NextTokGetsSpace)
178 IdentifierInfo *II = CurTok.getIdentifierInfo();
182 ResultToks.push_back(CurTok);
230 updateLocForMacroArgTokens(CurTok.getLocation(),
239 CurTok
[all...]
H A DPPDirectives.cpp1147 Token CurTok; local
1149 Lex(CurTok);
1150 while (CurTok.isNot(tok::eod)) {
1151 End = CurTok.getLocation();
1154 if (CurTok.is(tok::code_completion)) {
1156 Lex(CurTok);
1162 if (CurTok.hasLeadingSpace())
1167 FilenameBuffer.resize(PreAppendSize+CurTok.getLength());
1170 unsigned ActualLen = getSpelling(CurTok, BufPtr);
1177 if (CurTok
[all...]

Completed in 575 milliseconds