Lines Matching defs:PP

1016 ASTFileSignature ASTWriter::writeUnhashedControlBlock(Preprocessor &PP,
1029 PP.getHeaderSearchInfo().getHeaderSearchOpts().ModulesHashContent) {
1062 void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context,
1117 if (!PP.getHeaderSearchInfo()
1142 auto &Map = PP.getHeaderSearchInfo().getModuleMap();
1255 = PP.getHeaderSearchInfo().getHeaderSearchOpts();
1286 AddString(PP.getHeaderSearchInfo().getModuleCachePath(), Record);
1291 const PreprocessorOptions &PPOpts = PP.getPreprocessorOpts();
1356 PP.getHeaderSearchInfo().getHeaderSearchOpts(),
1357 PP.getLangOpts().Modules);
1426 if (PP->getHeaderSearchInfo()
1434 PP->Diag(SourceLocation(), diag::err_module_unable_to_hash_content)
1737 PP->Diag(U.FileNameLoc, diag::err_module_no_size_mtime_for_header)
1876 const Preprocessor &PP) {
1959 Content->getBuffer(PP.getDiagnostics(), PP.getFileManager());
1973 Content->getBuffer(PP.getDiagnostics(), PP.getFileManager());
2074 const Preprocessor &PP) {
2083 if (PP.getSourceManager().getFileID(Loc) == PP.getPredefinesFileID())
2092 void ASTWriter::WritePreprocessor(const Preprocessor &PP, bool IsModule) {
2093 PreprocessingRecord *PPRec = PP.getPreprocessingRecord();
2101 if (PP.getCounterValue() != 0) {
2102 RecordData::value_type Record[] = {PP.getCounterValue()};
2106 if (PP.isRecordingPreamble() && PP.hasRecordedPreamble()) {
2108 auto SkipInfo = PP.getPreambleSkipInfo();
2119 for (const auto &Cond : PP.getPreambleConditionalStack()) {
2134 if (PP.SawDateOrTime())
2135 PP.Diag(SourceLocation(), diag::warn_module_uses_date_time) << IsModule;
2138 // emitting each to the PP section.
2143 for (auto &Id : PP.getIdentifierTable())
2155 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name);
2162 if (shouldIgnoreMacro(MD, IsModule, PP))
2177 auto Leafs = PP.getLeafModuleMacros(Name);
2623 auto TopHeaders = Mod->getTopHeaders(PP->getFileManager());
2904 if (!PP->getPreprocessorOpts().WriteCommentListToPCH)
3210 Preprocessor &PP;
3241 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP,
3244 : Writer(Writer), PP(PP), IdResolver(IdResolver), IsModule(IsModule),
3351 Writer.getDeclID(getDeclForLocalLookup(PP.getLangOpts(), *D)));
3363 void ASTWriter::WriteIdentifierTable(Preprocessor &PP,
3375 *this, PP, IdResolver, IsModule,
3384 for (const auto &ID : PP.getIdentifierTable())
4308 PP = &SemaRef.PP;
4313 PP = nullptr;
4348 Preprocessor &PP = SemaRef.PP;
4488 WriteControlBlock(PP, Context, isysroot, OutputFile);
4565 for (const auto &ID : PP.getIdentifierTable()) {
4701 WriteSourceManagerBlock(Context.getSourceManager(), PP);
4703 WritePreprocessor(PP, isModule);
4704 WriteHeaderSearch(PP.getHeaderSearchInfo());
4708 WriteIdentifierTable(PP, SemaRef.IdResolver, isModule);
4821 AddSourceLocation(PP.getModuleImportLoc(Import.M), ImportedModules);
4846 return writeUnhashedControlBlock(PP, Context);