From: Simon Marchi <simon.marchi@polymtl.ca>
To: Aditya Kamath <Aditya.Kamath1@ibm.com>,
Aditya Vidyadhar Kamath <akamath996@gmail.com>,
Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
"tom@tromey.com" <tom@tromey.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
SANGAMESH MALLAYYA <sangamesh.swamy@in.ibm.com>
Subject: Re: [PATCH v4 1/4] Fix styles in aix-thread.c to follow GNU style code.
Date: Mon, 5 Oct 2026 16:06:41 -0400 [thread overview]
Message-ID: <f1766789-136c-4f55-8171-607fb9f69aec@polymtl.ca> (raw)
In-Reply-To: <DSWPR15MB3198179BD29A03A8661B1AD3A8D6962@DSWPR15MB319817.namprd15.prod.outlook.com>
On 10/5/26 2:54 PM, Aditya Kamath wrote:
> Hi Simon,
>
> Thank you for the update. I have made the changes as per your suggestion. Sending a v5 version of the same.
>
>>There are still many formatting problems in the file (bad alignment,
>>missing space, etc), so if we're doing this change we might as well do
>>it right. I would suggest running clang-format on the whole file.
>>There will be a lot of unwanted changes, but also a lot of good ones.
>>Using an interactive diff tool (like meld), you can easily pick the
>>changes you want and revert those you don't want.
>
> We do not have meld on AIX but that is okay. Ran
> /home/clang+llvm-23.1.2-powerpc64-ibm-aix-7.2/bin/clang-format -style=GNU -i gdb/aix-thread.c
>
> And then made changes manually, then tested.
>
> Thanks for the suggestion. It was pretty useful.
Btw, if you have it in your clang installation, another useful tool is
git-clang-format. It allows you to ask clang-format to reformat only
the lines you touched in a given commit. This helps to quickly verify
the formatting of a given patch. Again, not all changes made by
clang-format are good for us, so you then have to manually accept or
reject the changes it did.
Simon
next prev parent reply other threads:[~2026-10-05 20:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 11:44 Aditya Vidyadhar Kamath
2026-10-05 14:06 ` Simon Marchi
2026-10-05 17:16 ` Aditya Kamath
2026-10-05 17:28 ` Aditya Kamath
2026-10-05 17:35 ` Simon Marchi
2026-10-05 14:19 ` Simon Marchi
2026-10-05 18:54 ` Aditya Kamath
2026-10-05 20:06 ` Simon Marchi [this message]
2026-10-06 13:23 ` Aditya Kamath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1766789-136c-4f55-8171-607fb9f69aec@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=Aditya.Kamath1@ibm.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=akamath996@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=sangamesh.swamy@in.ibm.com \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox