[cfe-commits] r55768 - in /cfe/trunk/lib: AST/ASTContext.cpp AST/Expr.cpp Sema/Sema.h

Steve Naroff snaroff at apple.com
Thu Sep 4 08:31:10 PDT 2008


Author: snaroff
Date: Thu Sep  4 10:31:07 2008
New Revision: 55768

URL: http://llvm.org/viewvc/llvm-project?rev=55768&view=rev
Log:
Fix a handful of typos (closure->block) to avoid confusion.

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp
    cfe/trunk/lib/AST/Expr.cpp
    cfe/trunk/lib/Sema/Sema.h

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=55768&r1=55767&r2=55768&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Thu Sep  4 10:31:07 2008
@@ -1768,7 +1768,7 @@
 //===----------------------------------------------------------------------===//
 
 /// 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;

Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=55768&r1=55767&r2=55768&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Thu Sep  4 10:31:07 2008
@@ -282,7 +282,7 @@
     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()->

Modified: cfe/trunk/lib/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.h?rev=55768&r1=55767&r2=55768&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/Sema.h (original)
+++ cfe/trunk/lib/Sema/Sema.h Thu Sep  4 10:31:07 2008
@@ -817,15 +817,15 @@
     /// 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,
     





More information about the cfe-commits mailing list