Skip to content

Commit

Permalink
+ Expression::is_packed_template_arguments()
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyG committed Jul 15, 2024
1 parent 1b31b9f commit 79a9b2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/reflifc/include/reflifc/Expression.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ namespace reflifc

Syntax syntax() const;

bool is_packed_template_arguments() const;
Expression packed_template_arguments() const;

SizeofExpression as_sizeof() const;
Expand Down
5 changes: 5 additions & 0 deletions lib/reflifc/src/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ namespace reflifc
return { ifc_, ifc_->syntax_tree_expressions()[index_].syntax };
}

bool Expression::is_packed_template_arguments() const
{
return sort() == ifc::ExprSort::PackedTemplateArguments;
}

Expression Expression::packed_template_arguments() const
{
return { ifc_, ifc_->packed_template_arguments()[index_].arguments };
Expand Down

0 comments on commit 79a9b2e

Please sign in to comment.