public inbox for gcc-rust@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Setting up editors for the GNU/GCC coding style?
       [not found]     ` <8735ekmkty.fsf@adacore.com>
@ 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

Hi!

On 2022-07-29T09:36:41+0200, Marc Poulhies via Gcc <gcc@gcc.gnu.org> wrote:
> Iannetta Paul <paul.iannetta@ens-lyon.fr> 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 'CONTRIBUTING.md':
"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.  ;-)


Grüße
 Thomas
-----------------
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] <abd785fa4d39650d2d5b71157f81934b783e928d.camel@redhat.com>
     [not found] ` <fa8ed1f-c57f-277b-3261-cc41c9b3d0d6@ispras.ru>
     [not found]   ` <c8e42ea425cf665d0d3fe27b22ee1b17@ens-lyon.fr>
     [not found]     ` <8735ekmkty.fsf@adacore.com>
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).