From: Steve Naroff Date: Thu, 30 Aug 2007 18:14:25 +0000 (+0000) Subject: Fix a comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdbf7b030a3e0ddb95240076683830e6f78c79a5;p=clang Fix a comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41618 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index 6a852950a7..8879336b43 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -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) { diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index b1c71ac98c..4502babadb 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -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 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);