diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 16:13:59 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:55:59 +0100 |
commit | e99e565e0aa866cdec407f851d651096fb190f7f (patch) | |
tree | af88fb6f68ad04e5626ac1f596222db5ffa13f21 /gcc/rust/ast/rust-expr.h | |
parent | 80c68893f446bf883c67dd78c317b5c0f0f55f4f (diff) | |
download | gcc-e99e565e0aa866cdec407f851d651096fb190f7f.zip gcc-e99e565e0aa866cdec407f851d651096fb190f7f.tar.gz gcc-e99e565e0aa866cdec407f851d651096fb190f7f.tar.bz2 |
gccrs: Replace usages of Location with location_t in the lexer, AST, and HIR
gcc/rust/ChangeLog:
* ast/rust-ast-builder.h: Replace Location with location_t.
* ast/rust-ast.h: Likewise.
* ast/rust-expr.h: Likewise.
* ast/rust-item.h: Likewise.
* ast/rust-macro.h: Likewise.
* ast/rust-path.h: Likewise.
* hir/tree/rust-hir-expr.h: Likewise.
* hir/tree/rust-hir-item.h: Likewise.
* hir/tree/rust-hir-path.h: Likewise.
* hir/tree/rust-hir.h: Likewise.
* lex/rust-lex.cc: Likewise.
* lex/rust-lex.h: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index b3aa417..69937bf 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -2396,8 +2396,8 @@ class BlockExpr : public ExprWithBlock std::vector<Attribute> inner_attrs; std::vector<std::unique_ptr<Stmt> > statements; std::unique_ptr<Expr> expr; - Location start_locus; - Location end_locus; + location_t start_locus; + location_t end_locus; bool marked_for_strip = false; public: @@ -2412,8 +2412,8 @@ public: BlockExpr (std::vector<std::unique_ptr<Stmt> > block_statements, std::unique_ptr<Expr> block_expr, std::vector<Attribute> inner_attribs, - std::vector<Attribute> outer_attribs, Location start_locus, - Location end_locus) + std::vector<Attribute> outer_attribs, location_t start_locus, + location_t end_locus) : outer_attrs (std::move (outer_attribs)), inner_attrs (std::move (inner_attribs)), statements (std::move (block_statements)), expr (std::move (block_expr)), @@ -2470,8 +2470,8 @@ public: location_t get_locus () const override final { return start_locus; } - Location get_start_locus () const { return start_locus; } - Location get_end_locus () const { return end_locus; } + location_t get_start_locus () const { return start_locus; } + location_t get_end_locus () const { return end_locus; } void accept_vis (ASTVisitor &vis) override; @@ -4596,7 +4596,7 @@ struct TupleClobber { // as gccrs still doesen't contain a symbol class I have put them as strings std::string symbol; - Location loc; + location_t loc; }; struct TupleTemplateStr @@ -4604,7 +4604,7 @@ struct TupleTemplateStr // as gccrs still doesen't contain a symbol class I have put them as strings std::string symbol; std::string optional_symbol; - Location loc; + location_t loc; }; // Inline Assembly Node @@ -4616,7 +4616,7 @@ public: std::vector<InlineAsmOperand> operands; TupleClobber clobber_abi; InlineAsmOptions options; - std::vector<Location> line_spans; + std::vector<location_t> line_spans; }; } // namespace AST |