public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] clang-format: define C++ standard to improve formatting
@ 2020-12-14 23:02 Matthias Maennich
  2020-12-15 10:06 ` Dodji Seketeli
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Maennich @ 2020-12-14 23:02 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, gprocida, kernel-team, maennich

This is mostly seen for nested templates like
  std::pair<int, std::vector<int> > vs. std::pair<int, std::vector<int>>
                                ^^^                                   ^^

	* .clang-format: Set C++11 standard for formatting.

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

diff --git a/.clang-format b/.clang-format
index ef39428fa7f4..8b8640a9a141 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,6 +1,7 @@
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 ---
 BasedOnStyle: GNU
+Standard: c++11
 AlignConsecutiveDeclarations: true
 AlwaysBreakAfterReturnType: All
 BreakConstructorInitializers: BeforeColon
-- 
2.29.2.684.gfbc64c5ab5-goog


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

* Re: [PATCH] clang-format: define C++ standard to improve formatting
  2020-12-14 23:02 [PATCH] clang-format: define C++ standard to improve formatting Matthias Maennich
@ 2020-12-15 10:06 ` Dodji Seketeli
  0 siblings, 0 replies; 2+ messages in thread
From: Dodji Seketeli @ 2020-12-15 10:06 UTC (permalink / raw)
  To: Matthias Maennich; +Cc: libabigail, gprocida, kernel-team

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

> This is mostly seen for nested templates like
>   std::pair<int, std::vector<int> > vs. std::pair<int, std::vector<int>>
>                                 ^^^                                   ^^
>
> 	* .clang-format: Set C++11 standard for formatting.
>
> Signed-off-by: Matthias Maennich <maennich@google.com>

Applied to master, thanks!

Cheer,

-- 
		Dodji

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

end of thread, other threads:[~2020-12-15 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 23:02 [PATCH] clang-format: define C++ standard to improve formatting Matthias Maennich
2020-12-15 10:06 ` 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).