public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v1] Add .clang-format approximation
@ 2019-01-01  0:00 Matthias Maennich via libabigail
  2019-01-01  0:00 ` Dodji Seketeli
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Maennich via libabigail @ 2019-01-01  0:00 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, kernel-team, Matthias Maennich

Add .clang-format definitions that are an approximation of the current
coding style. As I understand it, the current style is based on what GNU
Emacs implements for C++. Hence these rules might not be entirely
accurate, but a good-enough approximation to allow contributers to
follow the coding style more easily.

I expect modifications for specific cases and when clang-format itself
evolves over time.

As of now, this definition is most useful in partial code formatting,
such as executed by `git clang-format` on staged files or
clang-format.py as a means of integration into various editors.

	* .clang-format: New File.

Signed-off-by: Matthias Maennich <maennich@google.com>
---
 .clang-format | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 .clang-format

diff --git a/.clang-format b/.clang-format
new file mode 100644
index 000000000000..e63b65144a2b
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,10 @@
+---
+BasedOnStyle: GNU
+AlwaysBreakAfterReturnType: All
+BinPackParameters: false
+BreakStringLiterals: false
+PointerAlignment: Left
+SpaceBeforeParens: ControlStatements
+TabWidth: 8
+UseTab: Always
+---
-- 
2.21.0.1020.gf2820cf01a-goog

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

* Re: [PATCH v1] Add .clang-format approximation
  2019-01-01  0:00 [PATCH v1] Add .clang-format approximation Matthias Maennich via libabigail
@ 2019-01-01  0:00 ` Dodji Seketeli
  0 siblings, 0 replies; 2+ messages in thread
From: Dodji Seketeli @ 2019-01-01  0:00 UTC (permalink / raw)
  To: Matthias Maennich; +Cc: libabigail, kernel-team

Hello Matthias,

Matthias Maennich <maennich@google.com> a écrit:

> 	* .clang-format: New File.

Applied to master.  Thanks!!

Cheers,

-- 
		Dodji

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

end of thread, other threads:[~2019-05-20  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [PATCH v1] Add .clang-format approximation Matthias Maennich via libabigail
2019-01-01  0:00 ` Dodji Seketeli

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