Merge pull request #85439 from egorzhdan/egorzhdan/endif-objc

[cxx-interop] Emit `#endif // defined(__OBJC__)` with the comment consistently
This commit is contained in:
Egor Zhdan
2025-11-13 03:59:17 +00:00
committed by GitHub
5 changed files with 7 additions and 7 deletions

View File

@@ -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