Re: clang-format syntax
- From: Murray Cumming <murrayc murrayc com>
- To: Kjell Ahlstedt <kjell ahlstedt bredband net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: clang-format syntax
- Date: Thu, 25 Feb 2016 13:43:19 +0100
Add
BreakConstructorInitializersBeforeComma: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 0
Thanks. I've made that change in git.
[snip]
This is not ideal:
// left top width height
- m_Grid.attach(m_ScrolledWindow, 0, 2, 1, 1);
+ m_Grid.attach(m_ScrolledWindow, 0, 2, 1, 1);
It can be avoided with extra comments:
+ // clang-format off
// left top width height
m_Grid.attach(m_Toolbar, 0, 1, 1, 1);
+ // clang-format on
Yes, let's do that in a few places, though let's try to avoid needing
that.
Does anyone object to us running this on the source code in git, in
master, soon?
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]