From: Philip Herron Date: Thu, 31 Jul 2025 16:26:14 +0000 (+0100) Subject: gccrs: fix clang formatting X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e7a193af1f6d22e652bc3d54b2d78bdb96fbce0;p=thirdparty%2Fgcc.git gccrs: fix clang formatting gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): formatting * typecheck/rust-tyty-variance-analysis-private.h: likewise * typecheck/rust-tyty.cc (VariantDef::clone): likewise (VariantDef::monomorphized_clone): likewise * typecheck/rust-tyty.h: likewise Signed-off-by: Philip Herron --- diff --git a/gcc/rust/typecheck/rust-hir-type-check-expr.cc b/gcc/rust/typecheck/rust-hir-type-check-expr.cc index 92912e835ad..5bf8cc3bc1f 100644 --- a/gcc/rust/typecheck/rust-hir-type-check-expr.cc +++ b/gcc/rust/typecheck/rust-hir-type-check-expr.cc @@ -1802,7 +1802,7 @@ TypeCheckExpr::visit (HIR::ClosureExpr &expr) TyTy::TyVar result_type = expr.has_return_type () ? TyTy::TyVar ( - TypeCheckType::Resolve (expr.get_return_type ())->get_ref ()) + TypeCheckType::Resolve (expr.get_return_type ())->get_ref ()) : TyTy::TyVar::get_implicit_infer_var (expr.get_locus ()); // resolve the block diff --git a/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h b/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h index f4dc860fb11..deb76a7246d 100644 --- a/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h +++ b/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h @@ -324,7 +324,7 @@ public: Variance variance) override; void add_constraints_from_generic_args (HirId ref, SubstitutionRef &subst, Variance variance, - bool invariant_args) override {}; + bool invariant_args) override{}; void add_constrints_from_param (ParamType ¶m, Variance variance) override; Variance contra (Variance variance) override diff --git a/gcc/rust/typecheck/rust-tyty.cc b/gcc/rust/typecheck/rust-tyty.cc index a87efb4e381..c5488fca500 100644 --- a/gcc/rust/typecheck/rust-tyty.cc +++ b/gcc/rust/typecheck/rust-tyty.cc @@ -1704,7 +1704,7 @@ VariantDef::clone () const auto &&discriminant_opt = has_discriminant () ? tl::optional> ( - get_discriminant ().clone_expr ()) + get_discriminant ().clone_expr ()) : tl::nullopt; return new VariantDef (id, defid, identifier, ident, type, @@ -1720,7 +1720,7 @@ VariantDef::monomorphized_clone () const auto discriminant_opt = has_discriminant () ? tl::optional> ( - get_discriminant ().clone_expr ()) + get_discriminant ().clone_expr ()) : tl::nullopt; return new VariantDef (id, defid, identifier, ident, type, diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 585062b0cb7..8f37645b9eb 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -590,7 +590,7 @@ public: TypeBoundPredicate (const TypeBoundPredicate &other); - virtual ~TypeBoundPredicate () {}; + virtual ~TypeBoundPredicate (){}; TypeBoundPredicate &operator= (const TypeBoundPredicate &other);