Fix a handful of typos (closure->block) to avoid confusion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Steve Naroff 2008-09-04 15:31:07 +00:00
Родитель 1c7d067550
Коммит bfdcae678d
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1768,7 +1768,7 @@ bool ASTContext::isObjCObjectPointerType(QualType Ty) const {
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
/// typesAreBlockCompatible - This routine is called when comparing two /// 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) { bool ASTContext::typesAreBlockCompatible(QualType lhs, QualType rhs) {
if (lhs.getCVRQualifiers() != rhs.getCVRQualifiers()) if (lhs.getCVRQualifiers() != rhs.getCVRQualifiers())
return false; return false;

Просмотреть файл

@ -282,7 +282,7 @@ InitListExpr::InitListExpr(SourceLocation lbraceloc,
InitExprs.push_back(initexprs[i]); 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 { const FunctionType *BlockExpr::getFunctionType() const {
return getType()->getAsBlockPointerType()-> return getType()->getAsBlockPointerType()->

Просмотреть файл

@ -817,15 +817,15 @@ private:
/// c/v/r qualifiers, which we accept as an extension. /// c/v/r qualifiers, which we accept as an extension.
CompatiblePointerDiscardsQualifiers, CompatiblePointerDiscardsQualifiers,
/// IntToBlockPointer - The assignment converts an int to a closure /// IntToBlockPointer - The assignment converts an int to a block
/// pointer. We disallow this. /// pointer. We disallow this.
IntToBlockPointer, IntToBlockPointer,
/// IncompatibleBlockPointer - The assignment is between two closure /// IncompatibleBlockPointer - The assignment is between two block
/// pointers types that are not compatible. /// pointers types that are not compatible.
IncompatibleBlockPointer, IncompatibleBlockPointer,
/// BlockVoidPointer - The assignment is between a closure pointer and /// BlockVoidPointer - The assignment is between a block pointer and
/// void*, we accept for now. /// void*, we accept for now.
BlockVoidPointer, BlockVoidPointer,