Lines Matching refs:PP

60   SourceManager &SM = PP.getSourceManager();  in Init()
134 if (ActualArgs) ActualArgs->destroy(PP); in destroy()
139 unsigned MacroArgNo, Preprocessor &PP) { in MaybeRemoveCommaBeforeVaArgs() argument
147 if (!HasPasteOperator && !PP.getLangOpts().MSVCCompat) in MaybeRemoveCommaBeforeVaArgs()
155 if (PP.getLangOpts().C99 && !PP.getLangOpts().GNUMode in MaybeRemoveCommaBeforeVaArgs()
165 PP.Diag(ResultToks.back().getLocation(), diag::ext_paste_comma); in MaybeRemoveCommaBeforeVaArgs()
228 &ConcatenatedVAOPTResultToks[0], PP, VCtx.hasCharifyBefore() /*Charify*/, in stringifyVAOPTContents()
252 VAOptExpansionContext VCtx(PP); in ExpandFunctionArguments()
300 ActualArgs->invokedWithVariadicArgument(Macro, PP); in ExpandFunctionArguments()
389 UnexpArg, PP, Charify, ExpansionLocStart, ExpansionLocEnd); in ExpandFunctionArguments()
442 Macro, ArgNo, PP)) in ExpandFunctionArguments()
454 if (ActualArgs->ArgNeedsPreexpansion(ArgTok, PP)) in ExpandFunctionArguments()
455 ResultArgToks = &ActualArgs->getPreExpArgument(ArgNo, PP)[0]; in ExpandFunctionArguments()
469 if (PP.getLangOpts().MSVCCompat && NumToks == 1 && in ExpandFunctionArguments()
524 PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma); in ExpandFunctionArguments()
595 Macro, ArgNo, PP); in ExpandFunctionArguments()
605 Tokens = PP.cacheMacroExpandedTokens(this, ResultToks); in ExpandFunctionArguments()
633 return PP.HandleEndOfTokenLexer(Tok); in Lex()
636 SourceManager &SM = PP.getSourceManager(); in Lex()
656 (PP.getLangOpts().MSVCCompat && in Lex()
712 PP.HandlePoisonedIdentifier(Tok); in Lex()
716 return PP.HandleIdentifier(Tok); in Lex()
735 (PP.getLangOpts().MSVCCompat && in pasteTokens()
743 if (PP.getLangOpts().MicrosoftExt && (CurIdx >= 2) && in pasteTokens()
773 unsigned LHSLen = PP.getSpelling(LHSTok, BufPtr, &Invalid); in pasteTokens()
780 unsigned RHSLen = PP.getSpelling(RHS, BufPtr, &Invalid); in pasteTokens()
798 PP.CreateString(Buffer, ResultTokTmp); in pasteTokens()
808 PP.IncrementPasteCounter(true); in pasteTokens()
815 PP.IncrementPasteCounter(false); in pasteTokens()
819 SourceManager &SourceMgr = PP.getSourceManager(); in pasteTokens()
831 PP.getLangOpts(), ScratchBufStart, in pasteTokens()
850 SourceManager &SM = PP.getSourceManager(); in pasteTokens()
856 if (PP.getLangOpts().MicrosoftExt && LHSTok.is(tok::slash) && in pasteTokens()
863 if (!PP.getLangOpts().AsmPreprocessor) { in pasteTokens()
867 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms in pasteTokens()
898 SourceManager &SM = PP.getSourceManager(); in pasteTokens()
918 PP.LookUpIdentifierInfo(LHSTok); in pasteTokens()
945 PP.Diag(OpLoc, diag::ext_comment_paste_microsoft); in HandleMicrosoftCommentPaste()
955 PP.HandleMicrosoftCommentPaste(Tok); in HandleMicrosoftCommentPaste()
968 SourceManager &SM = PP.getSourceManager(); in getExpansionLocForMacroDefLoc()
1056 SourceManager &SM = PP.getSourceManager(); in updateLocForMacroArgTokens()