Skip to content

Commit

Permalink
Add StmtExpr node
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 16, 2024
1 parent 8d16634 commit 63f2bf9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/exhaustive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ pub enum Clang {
SimpleRequirement(SimpleRequirement),
SizeOfPackExpr(SizeOfPackExpr),
StaticAssertDecl(StaticAssertDecl),
StmtExpr(StmtExpr),
StringLiteral(StringLiteral),
SubstNonTypeTemplateParmExpr(SubstNonTypeTemplateParmExpr),
SubstTemplateTypeParmPackType(SubstTemplateTypeParmPackType),
Expand Down Expand Up @@ -2550,6 +2551,16 @@ pub struct StaticAssertDecl {
pub range: SourceRange,
}

#[derive(Deserialize, Debug)]
#[serde(deny_unknown_fields)]
#[non_exhaustive]
pub struct StmtExpr {
pub range: SourceRange,
pub r#type: Type,
#[serde(rename = "valueCategory")]
pub value_category: ValueCategory,
}

#[derive(Deserialize, Debug)]
#[serde(deny_unknown_fields)]
#[non_exhaustive]
Expand Down

0 comments on commit 63f2bf9

Please sign in to comment.