mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Renable GeneratedSourceInfo::Attribute to GeneratedSourceInfo::AttributeFromClang
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user