Skip to content

Commit 777a6bb

Browse files
committed
Minor const cleanup.
llvm-svn: 55160
1 parent 47f7711 commit 777a6bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class ASTContext {
200200

201201
/// getFunctionType - Return a normal function type with a typed argument
202202
/// list. isVariadic indicates whether the argument list includes '...'.
203-
QualType getFunctionType(QualType ResultTy, QualType *ArgArray,
203+
QualType getFunctionType(QualType ResultTy, const QualType *ArgArray,
204204
unsigned NumArgs, bool isVariadic);
205205

206206
/// getTypeDeclType - Return the unique reference to the type for

clang/include/clang/AST/Type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ class FunctionTypeNoProto : public FunctionType, public llvm::FoldingSetNode {
905905
/// 'int foo(int)' or 'int foo(void)'. 'void' is represented as having no
906906
/// arguments, not as having a single void argument.
907907
class FunctionTypeProto : public FunctionType, public llvm::FoldingSetNode {
908-
FunctionTypeProto(QualType Result, QualType *ArgArray, unsigned numArgs,
908+
FunctionTypeProto(QualType Result, const QualType *ArgArray, unsigned numArgs,
909909
bool isVariadic, QualType Canonical)
910910
: FunctionType(FunctionProto, Result, isVariadic, Canonical),
911911
NumArgs(numArgs) {

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ QualType ASTContext::getFunctionTypeNoProto(QualType ResultTy) {
816816

817817
/// getFunctionType - Return a normal function type with a typed argument
818818
/// list. isVariadic indicates whether the argument list includes '...'.
819-
QualType ASTContext::getFunctionType(QualType ResultTy, QualType *ArgArray,
819+
QualType ASTContext::getFunctionType(QualType ResultTy, const QualType *ArgArray,
820820
unsigned NumArgs, bool isVariadic) {
821821
// Unique functions, to guarantee there is only one function of a particular
822822
// structure.

0 commit comments

Comments
 (0)