public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Reformat comments
@ 2024-05-07 15:56 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2024-05-07 15:56 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:80fe1c7b6f5a253655f7b5a8849b7d3c746cecf4
commit 80fe1c7b6f5a253655f7b5a8849b7d3c746cecf4
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Wed Sep 6 14:39:46 2023 +0200
Reformat comments
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc (HIRCompileBase::setup_abi_options):
Reformat uncorrectly formatted comments.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diff:
---
gcc/rust/backend/rust-compile-base.cc | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/rust/backend/rust-compile-base.cc b/gcc/rust/backend/rust-compile-base.cc
index 78093a232ba9..cb8e650555da 100644
--- a/gcc/rust/backend/rust-compile-base.cc
+++ b/gcc/rust/backend/rust-compile-base.cc
@@ -252,8 +252,8 @@ HIRCompileBase::handle_deprecated_attribute_on_fndecl (
auto key_value = converted_item->get_name_value_pair ();
if (key_value.first.as_string ().compare ("since") == 0)
{
- // valid, but this is handled by Cargo and some third-party audit
- // tools
+ // valid, but this is handled by Cargo and some third-party
+ // audit tools
continue;
}
else if (key_value.first.as_string ().compare ("note") == 0)
@@ -373,10 +373,10 @@ HIRCompileBase::setup_abi_options (tree fndecl, ABI abi)
case Rust::ABI::CDECL:
// `decl_attributes` function (not the macro) has the side-effect of
// actually switching the codegen backend to use the ABI we annotated.
- // However, since `cdecl` is the default ABI GCC will be using, explicitly
- // specifying that ABI will cause GCC to emit a warning saying the
- // attribute is useless (which is confusing to the user as the attribute
- // is added by us).
+ // However, since `cdecl` is the default ABI GCC will be using,
+ // explicitly specifying that ABI will cause GCC to emit a warning
+ // saying the attribute is useless (which is confusing to the user as
+ // the attribute is added by us).
DECL_ATTRIBUTES (fndecl)
= tree_cons (get_identifier ("cdecl"), NULL, DECL_ATTRIBUTES (fndecl));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-07 15:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07 15:56 [gcc/devel/rust/master] Reformat comments Thomas Schwinge
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).