Lines Matching refs:RawToken
87 StringRef NextIdentifierName(Lexer &RawLex, Token &RawToken);
316 /// Find the next identifier in the pragma directive specified by \p RawToken.
318 Token &RawToken) {
319 RawLex.LexFromRawLexer(RawToken);
320 if (RawToken.is(tok::raw_identifier))
321 PP.LookUpIdentifierInfo(RawToken);
322 if (RawToken.is(tok::identifier))
323 return RawToken.getIdentifierInfo()->getName();
430 Token RawToken;
431 RawLex.LexFromRawLexer(RawToken);
435 while (RawToken.isNot(tok::eof)) {
436 if (RawToken.is(tok::hash) && RawToken.isAtStartOfLine()) {
438 Token HashToken = RawToken;
439 RawLex.LexFromRawLexer(RawToken);
440 if (RawToken.is(tok::raw_identifier))
441 PP.LookUpIdentifierInfo(RawToken);
442 if (RawToken.getIdentifierInfo() != nullptr) {
443 switch (RawToken.getIdentifierInfo()->getPPKeywordID()) {
471 StringRef Identifier = NextIdentifierName(RawLex, RawToken);
473 if (NextIdentifierName(RawLex, RawToken) == "system_header") {
478 FileType = SM.getFileCharacteristic(RawToken.getLocation());
491 bool elif = (RawToken.getIdentifierInfo()->getPPKeywordID() ==
496 RawLex.LexFromRawLexer(RawToken);
497 if (RawToken.is(tok::raw_identifier))
498 PP.LookUpIdentifierInfo(RawToken);
500 if (RawToken.is(tok::identifier)) {
502 SourceLocation Loc = RawToken.getLocation();
505 if (RawToken.getIdentifierInfo()->isStr("__has_include")) {
506 if (!HandleHasInclude(FileId, RawLex, nullptr, RawToken,
510 } else if (RawToken.getIdentifierInfo()->isStr(
516 if (!HandleHasInclude(FileId, RawLex, Lookup, RawToken,
528 SM.getFileOffset(RawToken.getLocation()) +
529 RawToken.getLength(),
533 } while (RawToken.isNot(tok::eod));
536 SM.getFileOffset(RawToken.getLocation()) +
537 RawToken.getLength(),
552 RawLex.LexFromRawLexer(RawToken);
553 } while (RawToken.isNot(tok::eod) && RawToken.isNot(tok::eof));
555 SM.getFileOffset(RawToken.getLocation()) +
556 RawToken.getLength(),
567 RawLex.LexFromRawLexer(RawToken);