From 726fc37d8ae838747d86173309ca57aed7daede8 Mon Sep 17 00:00:00 2001 From: liona24 Date: Fri, 15 Mar 2024 15:49:01 +0100 Subject: [PATCH 1/2] Add missing kinds --- src/kind.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kind.rs b/src/kind.rs index 9a5c344..53a2132 100644 --- a/src/kind.rs +++ b/src/kind.rs @@ -72,6 +72,7 @@ kind! { AutoType, AvailabilityAttr, BinaryOperator, + BinaryConditionalOperator, BindingDecl, BlockCommandComment, BlockPointerType, @@ -153,6 +154,7 @@ kind! { DependentSizedArrayType, DependentTemplateSpecializationType, DeprecatedAttr, + DesignatedInitExpr, DiagnoseIfAttr, DisableTailCallsAttr, DoStmt, @@ -187,6 +189,7 @@ kind! { ImplicitValueInitExpr, IncompleteArrayType, IndirectFieldDecl, + IndirectGotoStmt, InitListExpr, InjectedClassNameType, InlineCommandComment, @@ -251,6 +254,7 @@ kind! { SizeOfPackExpr, StaticAssertDecl, StringLiteral, + StmtExpr, SubstNonTypeTemplateParmExpr, SubstTemplateTypeParmPackType, SubstTemplateTypeParmType, From 66ebbffcc8ecdaf065083c0824e3c2b0fbc3dc0d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 15 Mar 2024 20:39:43 -0700 Subject: [PATCH 2/2] Sort new Kind variants from PR 29 --- src/kind.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kind.rs b/src/kind.rs index 53a2132..4d705c4 100644 --- a/src/kind.rs +++ b/src/kind.rs @@ -71,8 +71,8 @@ kind! { AttributedType, AutoType, AvailabilityAttr, - BinaryOperator, BinaryConditionalOperator, + BinaryOperator, BindingDecl, BlockCommandComment, BlockPointerType, @@ -253,8 +253,8 @@ kind! { SimpleRequirement, SizeOfPackExpr, StaticAssertDecl, - StringLiteral, StmtExpr, + StringLiteral, SubstNonTypeTemplateParmExpr, SubstTemplateTypeParmPackType, SubstTemplateTypeParmType,