[cfe-commits] r41618 - in /cfe/trunk: AST/ASTContext.cpp include/clang/AST/ASTContext.h

Steve Naroff snaroff at apple.com
Thu Aug 30 11:14:25 PDT 2007


Author: snaroff
Date: Thu Aug 30 13:14:25 2007
New Revision: 41618

URL: http://llvm.org/viewvc/llvm-project?rev=41618&view=rev
Log:
Fix a comment.

Modified:
    cfe/trunk/AST/ASTContext.cpp
    cfe/trunk/include/clang/AST/ASTContext.h

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

==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Thu Aug 30 13:14:25 2007
@@ -432,9 +432,8 @@
   return QualType(New, 0);
 }
 
-/// getArrayType - If NumElts is a constant expression, we return a unique
-/// reference to an AST node of type ConstantArrayType. If NumElts is not
-/// a constant expression, we return an instance of VaribleLengthArrayType.
+/// getVariableArrayType - Returns a non-unique reference to the type for a
+/// variable array of the specified element type.
 QualType ASTContext::getVariableArrayType(QualType EltTy, Expr *NumElts,
                                           ArrayType::ArraySizeModifier ASM,
                                           unsigned EltTypeQuals) {

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=41618&r1=41617&r2=41618&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Thu Aug 30 13:14:25 2007
@@ -77,15 +77,14 @@
   /// reference to the specified type.
   QualType getReferenceType(QualType T);
   
-  /// getArrayType - If NumElts is a constant expression, we return a unique
-  /// reference to an AST node of type ConstantArrayType. If NumElts is not
-  /// a constant expression, we return an instance of VaribleLengthArrayType.
+  /// getVariableArrayType - Returns a non-unique reference to the type for a
+  /// variable array of the specified element type.
   QualType getVariableArrayType(QualType EltTy, Expr *NumElts,
                                 ArrayType::ArraySizeModifier ASM,
                                 unsigned EltTypeQuals);
 
-  /// getConstantArrayType - Return the unique reference to the type for an 
-  /// array of the specified element type.
+  /// getConstantArrayType - Return the unique reference to the type for a
+  /// constant array of the specified element type.
   QualType getConstantArrayType(QualType EltTy, const llvm::APInt &ArySize,
                                 ArrayType::ArraySizeModifier ASM,
                                 unsigned EltTypeQuals);





More information about the cfe-commits mailing list