Lines Matching refs:PP
47 SourceManager &SM = PP.getSourceManager(); in Init()
121 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
126 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
134 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs()
142 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
152 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
199 Res = ActualArgs->getStringifiedArgument(ArgNo, PP, in ExpandFunctionArguments()
205 PP, true, in ExpandFunctionArguments()
258 Macro, ArgNo, PP)) in ExpandFunctionArguments()
270 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
271 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, Macro, PP)[0]; in ExpandFunctionArguments()
285 if (PP.getLangOpts().MSVCCompat && NumToks == 1 && in ExpandFunctionArguments()
327 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
390 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 if (PP.getLangOpts().MicrosoftExt && Tok.is(tok::slash) && in PasteTokens()
636 if (!PP.getLangOpts().AsmPreprocessor) { in PasteTokens()
639 SourceManager &SM = PP.getSourceManager(); in PasteTokens()
645 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in PasteTokens()
676 SourceManager &SM = PP.getSourceManager(); in PasteTokens()
696 PP.LookUpIdentifierInfo(Tok); in PasteTokens()
731 PP.HandleMicrosoftCommentPaste(Tok); in HandleMicrosoftCommentPaste()
744 SourceManager &SM = PP.getSourceManager(); in getExpansionLocForMacroDefLoc()
828 SourceManager &SM = PP.getSourceManager(); in updateLocForMacroArgTokens()