Skip to content

Commit 71fe854

Browse files
committed
Rename Max to NumElements
1 parent aa2d44b commit 71fe854

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/AST/ASTContext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ class ASTContext : public RefCountedBase<ASTContext> {
278278
ArrayParameterTypes;
279279

280280
/// Store the unique Type corresponding to each Kind.
281-
mutable std::array<Type *,
282-
llvm::to_underlying(PredefinedSugarType::Kind::Max)>
281+
mutable std::array<Type *, llvm::to_underlying(
282+
PredefinedSugarType::Kind::NumElements)>
283283
PredefinedSugarTypes{};
284284

285285
/// The set of nested name specifiers.

clang/include/clang/AST/Type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ class alignas(TypeAlignment) Type : public ExtQualsTypeCommonBase {
22692269
PtrdiffT,
22702270

22712271
// Indicates how many items the enum has.
2272-
Max
2272+
NumElements
22732273
};
22742274

22752275
class PresefinedSugarTypeBitfields {

0 commit comments

Comments
 (0)