HomeSort by relevance Sort by last modified time
    Searched defs:Tok (Results 1 - 25 of 53) sorted by null

1 2 3

  /external/clang/include/clang/AST/
CommentBriefParser.h 36 Token Tok;
39 SourceLocation Loc = Tok.getLocation();
40 L.lex(Tok);
CommentParser.h 56 Token Tok;
63 L.lex(Tok);
65 Tok = MoreLATokens.pop_back_val();
69 MoreLATokens.push_back(Tok);
70 Tok = OldTok;
77 MoreLATokens.push_back(Tok);
84 Tok = Toks[0];
88 return (Tok.is(tok::backslash_command) || Tok.is(tok::at_command)) &
    [all...]
  /external/clang/lib/Parse/
ParseAST.cpp 45 const Token &Tok = P.getCurToken();
46 if (Tok.is(tok::eof)) {
51 if (Tok.getLocation().isInvalid()) {
57 Tok.getLocation().print(OS, PP.getSourceManager());
58 if (Tok.isAnnotation()) {
61 // Do the equivalent of PP.getSpelling(Tok) except for the parts that would
65 unsigned Length = Tok.getLength();
66 const char *Spelling = SM.getCharacterData(Tok.getLocation(), &Invalid);
ParseStmtAsm.cpp 156 const Token &Tok = AsmToks[TokIndex];
157 Loc = Tok.getLocation();
179 const tok::TokenKind EndOfStream = tok::semi;
186 LineToks.push_back(Tok);
213 if (Tok.is(EndOfStream)) {
216 while (LineToks[LineIndex].getLocation() != Tok.getLocation()) {
224 if (Invalid || Tok.is(EndOfStream)) {
236 assert(Tok.is(EndOfStream));
260 const Token &Tok = AsmToks[i]
    [all...]
ParseOpenMP.cpp 29 auto Tok = P.getCurToken();
31 Tok.isAnnotation()
33 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok));
35 Tok = P.getPreprocessor().LookAhead(0);
37 Tok.isAnnotation()
39 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok));
57 assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!");
70 if (Tok.isNot(tok::annot_pragma_openmp_end))
    [all...]
  /external/clang/lib/Rewrite/Core/
TokenRewriter.cpp 35 while (RawTok.isNot(tok::eof)) {
37 if (Tok.is(tok::raw_identifier)) {
40 PP.LookUpIdentifierInfo(Tok);
87 Token Tok;
88 Tok.startToken();
90 Tok.setLocation(ScratchBuf->getToken(Val, Len, Spelling));
91 Tok.setLength(Len);
94 // set kind to tok::unknown.
95 Tok.setKind(tok::unknown)
    [all...]
HTMLRewrite.cpp 371 Token Tok;
372 L.LexFromRawLexer(Tok);
374 while (Tok.isNot(tok::eof)) {
377 unsigned TokOffs = SM.getFileOffset(Tok.getLocation());
378 unsigned TokLen = Tok.getLength();
379 switch (Tok.getKind()) {
381 case tok::identifier:
382 llvm_unreachable("tok::identifier in raw lexing mode!");
383 case tok::raw_identifier:
    [all...]
  /external/clang/lib/Lex/
MacroArgs.cpp 105 for (; ArgPtr->isNot(tok::eof); ++ArgPtr)
121 if (Result->is(tok::eof))
135 for (; ArgTok->isNot(tok::eof); ++ArgTok)
174 Token &Tok = Result.back();
175 PP.Lex(Tok);
176 } while (Result.back().isNot(tok::eof));
199 Token Tok;
200 Tok.startToken();
201 Tok.setKind(Charify ? tok::char_constant : tok::string_literal)
    [all...]
PPExpressions.cpp 92 if (PeekTok.is(tok::l_paren)) {
98 if (PeekTok.is(tok::code_completion)) {
130 if (PeekTok.isNot(tok::r_paren)) {
132 << "'defined'" << tok::r_paren;
133 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren;
173 if (PeekTok.is(tok::code_completion)) {
193 II->getTokenID() != tok::kw_true &&
194 II->getTokenID() != tok::kw_false)
196 Result.Val = II->getTokenID() == tok::kw_true;
207 case tok::eod
    [all...]
PPMacroExpansion.cpp 286 Callbacks->MacroExpands(Info.Tok, Info.MD, Info.Range,
390 if (I->is(tok::l_paren)) {
392 } else if (I->is(tok::r_paren)) {
396 } else if (I->is(tok::l_brace)) {
398 } else if (I->is(tok::r_brace)) {
444 if (I->is(tok::l_brace)) {
446 } else if (I->is(tok::r_brace)) {
450 } else if (I->is(tok::eof)) {
456 I->setKind(tok::comma);
464 if (FoundSeparatorToken && ArgStartIterator->is(tok::l_brace))
    [all...]
TokenLexer.cpp 26 void TokenLexer::Init(Token &Tok, SourceLocation ELEnd, MacroInfo *MI,
36 ExpandLocStart = Tok.getLocation();
38 AtStartOfLine = Tok.isAtStartOfLine();
39 HasLeadingSpace = Tok.hasLeadingSpace();
52 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) &&
147 if (ResultToks.empty() || !ResultToks.back().is(tok::comma))
161 if (!ResultToks.empty() && ResultToks.back().is(tok::hashhash))
185 if (i != 0 && !Tokens[i-1].is(tok::hashhash) && CurTok.hasLeadingSpace())
188 if (CurTok.is(tok::hash) || CurTok.is(tok::hashat))
    [all...]
  /external/clang/unittests/AST/
CommentLexer.cpp 48 StringRef getCommandName(const Token &Tok) {
49 return Traits.getCommandInfo(Tok.getCommandID())->Name;
52 StringRef getVerbatimBlockName(const Token &Tok) {
53 return Traits.getCommandInfo(Tok.getVerbatimBlockID())->Name;
56 StringRef getVerbatimLineName(const Token &Tok) {
57 return Traits.getCommandInfo(Tok.getVerbatimLineID())->Name;
70 Token Tok;
71 L.lex(Tok);
72 if (Tok.is(tok::eof)
    [all...]
CommentParser.cpp 72 Token Tok;
73 L.lex(Tok);
74 if (Tok.is(tok::eof))
    [all...]
  /external/llvm/lib/IR/
DataLayout.cpp 230 StringRef &Tok = Split.first; // Current token.
233 char Specifier = Tok.front();
234 Tok = Tok.substr(1);
249 unsigned AddrSpace = Tok.empty() ? 0 : getInt(Tok);
255 unsigned PointerMemSize = inBytes(getInt(Tok));
259 unsigned PointerABIAlign = inBytes(getInt(Tok));
265 PointerPrefAlign = inBytes(getInt(Tok));
286 unsigned Size = Tok.empty() ? 0 : getInt(Tok)
    [all...]
  /external/clang/lib/Format/
BreakableToken.h 75 BreakableToken(const FormatToken &Tok, unsigned IndentLevel,
78 : Tok(Tok), IndentLevel(IndentLevel), InPPDirective(InPPDirective),
81 const FormatToken &Tok;
98 BreakableSingleLineToken(const FormatToken &Tok, unsigned IndentLevel,
120 BreakableStringLiteral(const FormatToken &Tok, unsigned IndentLevel,
UnwrappedLineParser.h 110 void pushToken(FormatToken *Tok);
204 UnwrappedLineNode() : Tok(nullptr) {}
205 UnwrappedLineNode(FormatToken *Tok) : Tok(Tok) {}
207 FormatToken *Tok;
ContinuationIndenter.cpp 30 // the ), ], } or > matching \c Tok.
31 static unsigned getLengthToMatchingParen(const FormatToken &Tok) {
32 if (!Tok.MatchingParen)
34 FormatToken *End = Tok.MatchingParen;
38 return End->TotalLength - Tok.TotalLength + 1;
41 // Returns \c true if \c Tok is the "." or "->" of a call and starts the next
43 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) {
44 return Tok.isMemberAccess() && Tok.Previous && Tok.Previous->closesScope()
    [all...]
  /external/llvm/lib/TableGen/
TGLexer.cpp 293 tgtok::TokKind Tok = LexToken();
294 if (Tok == tgtok::Error) return true;
295 if (Tok != tgtok::StrVal) {
  /external/llvm/tools/llvm-mc/
llvm-mc.cpp 249 AsmToken Tok = Lexer.getTok();
251 switch (Tok.getKind()) {
313 Out->os().write_escaped(Tok.getString());
  /external/clang/lib/Frontend/
FrontendActions.cpp 558 while (RawTok.isNot(tok::eof)) {
568 Token Tok;
571 PP.Lex(Tok);
572 PP.DumpToken(Tok, true);
574 } while (Tok.isNot(tok::eof));
598 Token Tok;
602 PP.Lex(Tok);
603 } while (Tok.isNot(tok::eof))
    [all...]
PrintPreprocessedOutput.cpp 148 bool HandleFirstTokOnLine(Token &Tok);
162 const Token &Tok) {
163 return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok);
505 bool PrintPPOutputPPCallbacks::HandleFirstTokOnLine(Token &Tok) {
508 if (!MoveToLine(Tok.getLocation()))
513 unsigned ColNo = SM.getExpansionColumnNumber(Tok.getLocation());
519 if (ColNo == 1 && Tok.hasLeadingSpace())
528 if (ColNo <= 1 && Tok.is(tok::hash))
576 while (PragmaTok.isNot(tok::eod))
    [all...]
  /external/clang/lib/Rewrite/Frontend/
InclusionRewriter.cpp 80 const DirectoryLookup *Lookup, Token &Tok,
252 } while (!DirectiveToken.is(tok::eod) && DirectiveToken.isNot(tok::eof));
268 if (RawToken.is(tok::raw_identifier))
270 if (RawToken.is(tok::identifier))
278 FileID FileId, Lexer &RawLex, const DirectoryLookup *Lookup, Token &Tok,
281 RawLex.LexFromRawLexer(Tok);
282 if (Tok.isNot(tok::l_paren))
285 RawLex.LexFromRawLexer(Tok);
    [all...]
  /external/clang/unittests/Lex/
PPCallbacksTest.cpp 185 Token Tok;
186 PP.Lex(Tok);
187 if (Tok.is(tok::eof))
229 Token Tok;
230 PP.Lex(Tok);
231 if (Tok.is(tok::eof))
  /external/llvm/utils/TableGen/
CodeGenInstruction.cpp 202 std::string Tok = CStr.substr(start, wpos - start);
203 if (Tok == "@earlyclobber") {
  /frameworks/compile/slang/
slang.cpp 409 clang::Token Tok;
412 mPP->Lex(Tok);
413 } while (Tok.isNot(clang::tok::eof));

Completed in 916 milliseconds

1 2 3