public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-7891] gccrs: ast: Add `get_kind` method to `MacroRulesDefinition`
@ 2024-01-16 18:04 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:04 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c2ea7f6f36c48483a1a776fb51e04214d4526724

commit r14-7891-gc2ea7f6f36c48483a1a776fb51e04214d4526724
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Wed Aug 2 12:50:06 2023 +0200

    gccrs: ast: Add `get_kind` method to `MacroRulesDefinition`
    
    gcc/rust/ChangeLog:
    
            * ast/rust-macro.h: Add new method to `MacroRulesDefinition` to allow
            getting the `MacroKind` contained.

Diff:
---
 gcc/rust/ast/rust-macro.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h
index 76d244e604e..490e8121427 100644
--- a/gcc/rust/ast/rust-macro.h
+++ b/gcc/rust/ast/rust-macro.h
@@ -576,6 +576,8 @@ public:
     return AST::Kind::MACRO_RULES_DEFINITION;
   }
 
+  MacroKind get_kind () const { return kind; }
+
 protected:
   /* Use covariance to implement clone function as returning this object rather
    * than base */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-16 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:04 [gcc r14-7891] gccrs: ast: Add `get_kind` method to `MacroRulesDefinition` Arthur Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).