Lines Matching refs:RawLex
82 bool HandleHasInclude(FileID FileId, Lexer &RawLex,
87 StringRef NextIdentifierName(Lexer &RawLex, Token &RawToken);
317 StringRef InclusionRewriter::NextIdentifierName(Lexer &RawLex, in NextIdentifierName() argument
319 RawLex.LexFromRawLexer(RawToken); in NextIdentifierName()
330 FileID FileId, Lexer &RawLex, const DirectoryLookup *Lookup, Token &Tok, in HandleHasInclude() argument
333 RawLex.LexFromRawLexer(Tok); in HandleHasInclude()
337 RawLex.LexFromRawLexer(Tok); in HandleHasInclude()
345 RawLex.LexFromRawLexer(Tok); in HandleHasInclude()
364 RawLex.LexFromRawLexer(Tok); in HandleHasInclude()
380 RawLex.LexFromRawLexer(Tok); in HandleHasInclude()
410 Lexer RawLex(FileId, &FromFile, PP.getSourceManager(), PP.getLangOpts()); in Process() local
411 RawLex.SetCommentRetentionState(false); in Process()
426 unsigned NextToWrite = SM.getFileOffset(RawLex.getSourceLocation()); in Process()
431 RawLex.LexFromRawLexer(RawToken); in Process()
437 RawLex.setParsingPreprocessorDirective(true); in Process()
439 RawLex.LexFromRawLexer(RawToken); in Process()
447 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, NextToWrite, in Process()
473 StringRef Identifier = NextIdentifierName(RawLex, RawToken); in Process()
475 if (NextIdentifierName(RawLex, RawToken) == "system_header") { in Process()
477 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
485 CommentOutDirective(RawLex, HashToken, FromFile, LocalEOL, in Process()
498 RawLex.LexFromRawLexer(RawToken); in Process()
508 if (!HandleHasInclude(FileId, RawLex, nullptr, RawToken, in Process()
518 if (!HandleHasInclude(FileId, RawLex, Lookup, RawToken, in Process()
552 RawLex.SetKeepWhitespaceMode(true); in Process()
554 RawLex.LexFromRawLexer(RawToken); in Process()
561 RawLex.SetKeepWhitespaceMode(false); in Process()
567 RawLex.setParsingPreprocessorDirective(false); in Process()
569 RawLex.LexFromRawLexer(RawToken); in Process()