mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #85439 from egorzhdan/egorzhdan/endif-objc
[cxx-interop] Emit `#endif // defined(__OBJC__)` with the comment consistently
This commit is contained in:
@@ -1686,7 +1686,7 @@ void DeclAndTypeClangFunctionPrinter::printCxxMethod(
|
||||
if (!isDefinition) {
|
||||
os << ";\n";
|
||||
if (result.isObjCxxOnly())
|
||||
os << "#endif\n";
|
||||
os << "#endif // defined(__OBJC__)\n";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1699,7 +1699,7 @@ void DeclAndTypeClangFunctionPrinter::printCxxMethod(
|
||||
dispatchInfo);
|
||||
os << " }\n";
|
||||
if (result.isObjCxxOnly())
|
||||
os << "#endif\n";
|
||||
os << "#endif // defined(__OBJC__)\n";
|
||||
}
|
||||
|
||||
/// Returns true if the given property name like `isEmpty` can be remapped
|
||||
|
||||
Reference in New Issue
Block a user