Renable GeneratedSourceInfo::Attribute to GeneratedSourceInfo::AttributeFromClang

This commit is contained in:
Doug Gregor
2024-11-15 09:01:04 -08:00
parent e9b89e99dc
commit 24a12ebc34
12 changed files with 20 additions and 20 deletions

View File

@@ -862,7 +862,7 @@ ModuleDecl::getOriginalLocation(SourceLoc loc) const {
// replaced function bodies. The body is actually different code to the
// original file.
case GeneratedSourceInfo::PrettyPrinted:
case GeneratedSourceInfo::Attribute:
case GeneratedSourceInfo::AttributeFromClang:
// No original location, return the original buffer/location
return {startBufferID, startLoc};
}
@@ -1149,7 +1149,7 @@ std::optional<MacroRole> SourceFile::getFulfilledMacroRole() const {
case GeneratedSourceInfo::ReplacedFunctionBody:
case GeneratedSourceInfo::PrettyPrinted:
case GeneratedSourceInfo::DefaultArgument:
case GeneratedSourceInfo::Attribute:
case GeneratedSourceInfo::AttributeFromClang:
return std::nullopt;
}
}