//===----------------------------------------------------------------------===//
/// typesAreBlockCompatible - This routine is called when comparing two
-/// closure types. Types must be strictly compatible here.
+/// block types. Types must be strictly compatible here.
bool ASTContext::typesAreBlockCompatible(QualType lhs, QualType rhs) {
if (lhs.getCVRQualifiers() != rhs.getCVRQualifiers())
return false;
InitExprs.push_back(initexprs[i]);
}
-/// getFunctionType - Return the underlying function type for this closure.
+/// getFunctionType - Return the underlying function type for this block.
///
const FunctionType *BlockExpr::getFunctionType() const {
return getType()->getAsBlockPointerType()->
/// c/v/r qualifiers, which we accept as an extension.
CompatiblePointerDiscardsQualifiers,
- /// IntToBlockPointer - The assignment converts an int to a closure
+ /// IntToBlockPointer - The assignment converts an int to a block
/// pointer. We disallow this.
IntToBlockPointer,
- /// IncompatibleBlockPointer - The assignment is between two closure
+ /// IncompatibleBlockPointer - The assignment is between two block
/// pointers types that are not compatible.
IncompatibleBlockPointer,
- /// BlockVoidPointer - The assignment is between a closure pointer and
+ /// BlockVoidPointer - The assignment is between a block pointer and
/// void*, we accept for now.
BlockVoidPointer,