/// getEnumDeclIntegerType - returns the integer type compatible with the
/// given enum type.
-QualType ASTContext::getEnumDeclIntegerType(EnumDecl *ED) const {
- if (EnumConstantDecl *C = ED->getEnumConstantList())
+QualType ASTContext::getEnumDeclIntegerType(const EnumDecl *ED) const {
+ if (const EnumConstantDecl *C = ED->getEnumConstantList())
return C->getType();
// If the enum list is empty, it is typed as if it contained a single zero
/// getEnumDeclIntegerType - returns the integer type compatible with the
/// given enum type.
- QualType getEnumDeclIntegerType(EnumDecl *ED) const;
+ QualType getEnumDeclIntegerType(const EnumDecl *ED) const;
//===--------------------------------------------------------------------===//
// Type Operators