public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* Add clang-format for libstdc++
@ 2023-02-07 20:38 Dimitrij Mijoski
  2023-02-07 21:01 ` Thomas Rodgers
  2023-02-07 21:17 ` Jonathan Wakely
  0 siblings, 2 replies; 9+ messages in thread
From: Dimitrij Mijoski @ 2023-02-07 20:38 UTC (permalink / raw)
  To: libstdc++

Is there interest to add a clang-format file for libstdc++?

The basic idea is to take the existing clang format located at contrib/clang-format,
copy it to contrib/clang-format-libstdc++, and modify it according to libstdc++ rules
https://gcc.gnu.org/onlinedocs/libstdc++/manual/source_code_style.html .
Similarly to the first clang-format, it will be optional and it will be enabled if the developer
calls the command:

make clang-format

inside the build tree. That will create the symbolic link srcdir/libstdc++-v3/.clang-format .
Alternatively, it can be put directly where it is required without the need for the invocation
of make.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-02-13 10:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-07 20:38 Add clang-format for libstdc++ Dimitrij Mijoski
2023-02-07 21:01 ` Thomas Rodgers
2023-02-07 21:19   ` Jonathan Wakely
2023-02-07 21:24     ` Thomas Rodgers
2023-02-10 22:05   ` Stephan Bergmann
2023-02-10 23:02     ` Jonathan Wakely
2023-02-13 10:18       ` Stephan Bergmann
2023-02-07 21:17 ` Jonathan Wakely
2023-02-08 20:04   ` Björn Schäpers

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).