]> granicus.if.org Git - clang/commitdiff
Fix a comment.
authorSteve Naroff <snaroff@apple.com>
Thu, 30 Aug 2007 18:14:25 +0000 (18:14 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 30 Aug 2007 18:14:25 +0000 (18:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41618 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp
include/clang/AST/ASTContext.h

index 6a852950a70620e6542888a16d15f3b2d68d239d..8879336b43708d97b4d567bf7811bd86a6e1e0ac 100644 (file)
@@ -432,9 +432,8 @@ QualType ASTContext::getConstantArrayType(QualType EltTy,
   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) {
index b1c71ac98c8dc6ac602a660f9fd9dad366002839..4502babadbf17b092ad52c72203c2f7cda025097 100644 (file)
@@ -77,15 +77,14 @@ public:
   /// 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 a
-  /// 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);