From: Arthur Cohen Date: Wed, 22 Jan 2025 16:52:26 +0000 (+0000) Subject: gccrs: ast: Add Path::is_lang_item() X-Git-Tag: basepoints/gcc-16~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b745da3ae583e853af0e453400c674a6363e72b;p=thirdparty%2Fgcc.git gccrs: ast: Add Path::is_lang_item() gcc/rust/ChangeLog: * ast/rust-path.h: New function. --- diff --git a/gcc/rust/ast/rust-path.h b/gcc/rust/ast/rust-path.h index 2a76acc48c3..c2537034b61 100644 --- a/gcc/rust/ast/rust-path.h +++ b/gcc/rust/ast/rust-path.h @@ -622,6 +622,8 @@ public: std::string as_string () const override; + bool is_lang_item () const { return kind == Kind::LangItem; } + // TODO: this seems kinda dodgy std::vector &get_segments () {