aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins.h')
-rw-r--r--gcc/rust/expand/rust-macro-builtins.h37
1 files changed, 19 insertions, 18 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins.h b/gcc/rust/expand/rust-macro-builtins.h
index 7ed7515..6a9b31c 100644
--- a/gcc/rust/expand/rust-macro-builtins.h
+++ b/gcc/rust/expand/rust-macro-builtins.h
@@ -125,68 +125,69 @@ public:
static tl::optional<AST::Fragment> assert_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> file_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> column_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment>
include_bytes_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment>
include_str_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment>
stringify_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment>
compile_error_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> concat_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> env_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> cfg_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment>
include_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> line_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon);
+ AST::InvocKind semicolon);
static tl::optional<AST::Fragment> asm_handler (location_t invoc_locus,
AST::MacroInvocData &invoc,
- bool semicolon,
- bool is_global_asm);
+ AST::InvocKind semicolon,
+ AST::AsmKind is_global_asm);
static tl::optional<AST::Fragment>
format_args_handler (location_t invoc_locus, AST::MacroInvocData &invoc,
- bool semicolon, AST::FormatArgs::Newline nl);
+ AST::InvocKind semicolon, AST::FormatArgs::Newline nl);
- static tl::optional<AST::Fragment>
- sorry (location_t invoc_locus, AST::MacroInvocData &invoc, bool semicolon);
+ static tl::optional<AST::Fragment> sorry (location_t invoc_locus,
+ AST::MacroInvocData &invoc,
+ AST::InvocKind semicolon);
/* Builtin procedural macros do not work directly on tokens, but still need a
* builtin transcriber to be considered proper builtin macros */
static tl::optional<AST::Fragment>
- proc_macro_builtin (location_t, AST::MacroInvocData &, bool);
+ proc_macro_builtin (location_t, AST::MacroInvocData &, AST::InvocKind);
};
} // namespace Rust