Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
cfe/trunk/lib/Serialization/ASTReader.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Lines | if (Diags) { | ||||
Diags->Report(diag::err_pch_pp_detailed_record) << PPOpts.DetailedRecord; | Diags->Report(diag::err_pch_pp_detailed_record) << PPOpts.DetailedRecord; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
// Compute the #include and #include_macros lines we need. | // Compute the #include and #include_macros lines we need. | ||||
for (unsigned I = 0, N = ExistingPPOpts.Includes.size(); I != N; ++I) { | for (unsigned I = 0, N = ExistingPPOpts.Includes.size(); I != N; ++I) { | ||||
StringRef File = ExistingPPOpts.Includes[I]; | StringRef File = ExistingPPOpts.Includes[I]; | ||||
if (!ExistingPPOpts.ImplicitPCHInclude.empty() && | |||||
!ExistingPPOpts.PCHThroughHeader.empty()) { | |||||
// In case the through header is an include, we must add all the includes | |||||
// to the predefines so the start point can be determined. | |||||
SuggestedPredefines += "#include \""; | |||||
SuggestedPredefines += File; | |||||
SuggestedPredefines += "\"\n"; | |||||
continue; | |||||
} | |||||
if (File == ExistingPPOpts.ImplicitPCHInclude) | if (File == ExistingPPOpts.ImplicitPCHInclude) | ||||
continue; | continue; | ||||
if (std::find(PPOpts.Includes.begin(), PPOpts.Includes.end(), File) | if (std::find(PPOpts.Includes.begin(), PPOpts.Includes.end(), File) | ||||
!= PPOpts.Includes.end()) | != PPOpts.Includes.end()) | ||||
continue; | continue; | ||||
SuggestedPredefines += "#include \""; | SuggestedPredefines += "#include \""; | ||||
▲ Show 20 Lines • Show All 10,628 Lines • Show Last 20 Lines |