We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isCGFloatType
CGFloat
Foundation
1 parent 5e10f08 commit 7fee597Copy full SHA for 7fee597
lib/AST/Type.cpp
@@ -822,7 +822,11 @@ bool TypeBase::isCGFloatType() {
822
return false;
823
824
auto *module = DC->getParentModule();
825
- return module->getName().is("CoreGraphics") && NTD->getName().is("CGFloat");
+ // on macOS `CGFloat` is part of a `CoreGraphics` module,
826
+ // but on Linux it could be found in `Foundation`.
827
+ return (module->getName().is("CoreGraphics") ||
828
+ module->getName().is("Foundation")) &&
829
+ NTD->getName().is("CGFloat");
830
}
831
832
bool TypeBase::isKnownStdlibCollectionType() {
0 commit comments