Lines Matching refs:PP
47 SourceManager &SM = PP.getSourceManager(); in Init()
118 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
123 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
131 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs()
139 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
149 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
200 Res = ActualArgs->getStringifiedArgument(ArgNo, PP, in ExpandFunctionArguments()
206 PP, true, in ExpandFunctionArguments()
259 Macro, ArgNo, PP)) in ExpandFunctionArguments()
271 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
272 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, Macro, PP)[0]; in ExpandFunctionArguments()
286 if (PP.getLangOpts().MSVCCompat && NumToks == 1 && in ExpandFunctionArguments()
329 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
392 Macro, ArgNo, PP); in ExpandFunctionArguments()
402 Tokens = PP.cacheMacroExpandedTokens(this, ResultToks); in ExpandFunctionArguments()
431 return PP.HandleEndOfTokenLexer(Tok); in Lex()
434 SourceManager &SM = PP.getSourceManager(); in Lex()
452 (PP.getLangOpts().MSVCCompat && in Lex()
508 PP.HandlePoisonedIdentifier(Tok); in Lex()
512 return PP.HandleIdentifier(Tok); in Lex()
527 if (PP.getLangOpts().MicrosoftExt && (CurToken >= 2) && in PasteTokens()
552 unsigned LHSLen = PP.getSpelling(Tok, BufPtr, &Invalid); in PasteTokens()
559 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in PasteTokens()
577 PP.CreateString(Buffer, ResultTokTmp); in PasteTokens()
587 PP.IncrementPasteCounter(true); in PasteTokens()
594 PP.IncrementPasteCounter(false); in PasteTokens()
598 SourceManager &SourceMgr = PP.getSourceManager(); in PasteTokens()
610 PP.getLangOpts(), ScratchBufStart, in PasteTokens()
629 SourceManager &SM = PP.getSourceManager(); in PasteTokens()
635 if (PP.getLangOpts().MicrosoftExt && Tok.is(tok::slash) && in PasteTokens()
642 if (!PP.getLangOpts().AsmPreprocessor) { in PasteTokens()
646 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in PasteTokens()
677 SourceManager &SM = PP.getSourceManager(); in PasteTokens()
697 PP.LookUpIdentifierInfo(Tok); in PasteTokens()
724 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
734 PP.HandleMicrosoftCommentPaste(Tok); in HandleMicrosoftCommentPaste()
747 SourceManager &SM = PP.getSourceManager(); in getExpansionLocForMacroDefLoc()
835 SourceManager &SM = PP.getSourceManager(); in updateLocForMacroArgTokens()