Skip to content

Commit

Permalink
[clang][Interp][NFC] Add Descriptor::isCompositeArray()
Browse files Browse the repository at this point in the history
Unused for now, but will be used in later commits.
  • Loading branch information
tbaederr committed Jul 5, 2023
1 parent 5c23e27 commit ddd8c61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/AST/Interp/Descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ struct Descriptor final {

/// Checks if the descriptor is of an array of primitives.
bool isPrimitiveArray() const { return IsArray && !ElemDesc; }
/// Checks if the descriptor is of an array of composites.
bool isCompositeArray() const { return IsArray && ElemDesc; }
/// Checks if the descriptor is of an array of zero size.
bool isZeroSizeArray() const { return Size == 0; }
/// Checks if the descriptor is of an array of unknown size.
Expand Down

0 comments on commit ddd8c61

Please sign in to comment.