]> granicus.if.org Git - clang/commitdiff
Fix a handful of typos (closure->block) to avoid confusion.
authorSteve Naroff <snaroff@apple.com>
Thu, 4 Sep 2008 15:31:07 +0000 (15:31 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 4 Sep 2008 15:31:07 +0000 (15:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp
lib/AST/Expr.cpp
lib/Sema/Sema.h

index b84b958fb03094cfcda3acc6234c026da7a836b3..2264bca0f9cac26390281348974d83f0482715bd 100644 (file)
@@ -1768,7 +1768,7 @@ bool ASTContext::isObjCObjectPointerType(QualType Ty) const {
 //===----------------------------------------------------------------------===//
 
 /// 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;
index 1ab2220387f08686e323a527f8eb2cadd98e1a94..f72ff4f6ca90da73b9d75e227e725ae56ca87de4 100644 (file)
@@ -282,7 +282,7 @@ InitListExpr::InitListExpr(SourceLocation lbraceloc,
     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()->
index 320f3ac2bc4af8ccab00c28e2f28b78f4bc8d0b7..ce749e3f9a8c6f0bd36621901d8a39cf392149bf 100644 (file)
@@ -817,15 +817,15 @@ private:
     /// 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,