public inbox for
 help / color / mirror / Atom feed
* Re: Setting up editors for the GNU/GCC coding style?
       [not found]     ` <>
@ 2022-07-29  9:29       ` Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-07-29  9:29 UTC (permalink / raw)
  To: Marc Poulhies
  Cc: gcc, Alexander Monakov, Iannetta Paul, David Malcolm, gcc-rust


On 2022-07-29T09:36:41+0200, Marc Poulhies via Gcc <> wrote:
> Iannetta Paul <> writes:
>> About configuring recent editors to follow the GNU coding style, I don't really
>> know but it should always be possible to register a hook that will run `indent`
>> when the file is saved.
> There is a clang-format config file in contrib that one can symlink in
> the root dir as .clang-format. I hope/guess tools like CLion can pick it
> and use it? At least this can be used to indent using clang-format tools
> and derivatives (like git-clang-format). In the GCC Rust project, we are
> using it (but judging by Jakub's last review for Philip's patch, the
> config is maybe not exhaustive, or our setup is not correct).

Simple answer there: these files are in 'gcc/config/' etc.,
but 'clang-format' is restricted to 'gcc/rust/' only (both in
'.github/workflows/clang-format.yml' and '':
"Running `clang-format` locally").

Unless everyone uses it, using 'clang-format' everywhere is too noisy;
it has a very strict (in my opinion: restrictive) understanding of
"proper" format.  ;-)

Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-29  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
     [not found] ` <>
     [not found]   ` <>
     [not found]     ` <>
2022-07-29  9:29       ` Setting up editors for the GNU/GCC coding style? 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).