Lines Matching refs:PP
62 SourceManager &SM = PP.getSourceManager(); in Init()
136 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
141 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
149 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs()
157 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
167 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
230 &ConcatenatedVAOPTResultToks[0], PP, VCtx.hasCharifyBefore() /*Charify*/, in stringifyVAOPTContents()
254 VAOptExpansionContext VCtx(PP); in ExpandFunctionArguments()
302 ActualArgs->invokedWithVariadicArgument(Macro, PP); in ExpandFunctionArguments()
391 UnexpArg, PP, Charify, ExpansionLocStart, ExpansionLocEnd); in ExpandFunctionArguments()
444 Macro, ArgNo, PP)) in ExpandFunctionArguments()
456 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
457 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, PP)[0]; in ExpandFunctionArguments()
471 if (PP.getLangOpts().MSVCCompat && NumToks == 1 && in ExpandFunctionArguments()
525 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
596 Macro, ArgNo, PP); in ExpandFunctionArguments()
606 Tokens = PP.cacheMacroExpandedTokens(this, ResultToks); in ExpandFunctionArguments()
634 return PP.HandleEndOfTokenLexer(Tok); in Lex()
637 SourceManager &SM = PP.getSourceManager(); in Lex()
657 (PP.getLangOpts().MSVCCompat && in Lex()
713 PP.HandlePoisonedIdentifier(Tok); in Lex()
717 return PP.HandleIdentifier(Tok); in Lex()
736 (PP.getLangOpts().MSVCCompat && in pasteTokens()
744 if (PP.getLangOpts().MicrosoftExt && (CurIdx >= 2) && in pasteTokens()
774 unsigned LHSLen = PP.getSpelling(LHSTok, BufPtr, &Invalid); in pasteTokens()
781 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in pasteTokens()
799 PP.CreateString(Buffer, ResultTokTmp); in pasteTokens()
809 PP.IncrementPasteCounter(true); in pasteTokens()
816 PP.IncrementPasteCounter(false); in pasteTokens()
820 SourceManager &SourceMgr = PP.getSourceManager(); in pasteTokens()
832 PP.getLangOpts(), ScratchBufStart, in pasteTokens()
851 SourceManager &SM = PP.getSourceManager(); in pasteTokens()
857 if (PP.getLangOpts().MicrosoftExt && LHSTok.is(tok::slash) && in pasteTokens()
864 if (!PP.getLangOpts().AsmPreprocessor) { in pasteTokens()
868 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in pasteTokens()
899 SourceManager &SM = PP.getSourceManager(); in pasteTokens()
919 PP.LookUpIdentifierInfo(LHSTok); in pasteTokens()
946 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
956 PP.HandleMicrosoftCommentPaste(Tok); in HandleMicrosoftCommentPaste()
969 SourceManager &SM = PP.getSourceManager(); in getExpansionLocForMacroDefLoc()
1071 SourceManager &SM = PP.getSourceManager(); in updateLocForMacroArgTokens()