Skip to content

Commit 863375d

Browse files
committed
Add comment on BoundsAttributedType::classof
1 parent c501bfd commit 863375d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/include/clang/AST/Type.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,6 +3010,9 @@ class BoundsAttributedType : public Type, public llvm::FoldingSetNode {
30103010
bool referencesFieldDecls() const;
30113011

30123012
static bool classof(const Type *T) {
3013+
// Currently, only `class CountAttributedType` inherits
3014+
// `BoundsAttributedType` but the subclass will grow as we add more bounds
3015+
// annotations.
30133016
switch (T->getTypeClass()) {
30143017
case CountAttributed:
30153018
return true;

0 commit comments

Comments
 (0)