yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11121
Re: Coding style for Yade [Was Re: [Branch ~yade-pkg/yade/git-trunk] Rev 4087: Fix compilation. (for latter reference regarding coding style)]
-
To:
"Anton Gladky" <gladky.anton@xxxxxxxxx>, "yade-dev" <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
"Eulitz, Alexander" <Alexander.Eulitz@xxxxxxxxxxxxxxxx>
-
Date:
Wed, 23 Jul 2014 13:43:15 +0200
-
In-reply-to:
<CALF6qJ=iRsHLLPRQoMcjxPL6-Lt6rpktnDaKPr4FvJYU6gubYQ@mail.gmail.com>
-
Thread-index:
Ac+mVgF0ftLZeGwYQg6/t6rXSVxJawAFM28A
-
Thread-topic:
[Yade-dev] Coding style for Yade [Was Re: [Branch ~yade-pkg/yade/git-trunk] Rev 4087: Fix compilation. (for latter reference regarding coding style)]
Hi there,
I added some information on the wiki page for KDevelop about a related problem.
https://yade-dem.org/wiki/Using_kdevelop4
Too long lines really cause problems in KDevelop then but there is simple solution as linked on wiki page.
Just wondering why nobody else got this problem here at yade.
-----Ursprüngliche Nachricht-----
Von: Yade-dev [mailto:yade-dev-bounces+alexander.eulitz=iwf.tu-berlin.de@xxxxxxxxxxxxxxxxxxx] Im Auftrag von Anton Gladky
Gesendet: Mittwoch, 23. Juli 2014 11:10
An: yade-dev
Betreff: [Yade-dev] Coding style for Yade [Was Re: [Branch ~yade-pkg/yade/git-trunk] Rev 4087: Fix compilation. (for latter reference regarding coding style)]
2014-07-22 16:12 GMT+02:00 Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>:
> http://codeketchup.blogspot.de/2013/05/simple-and-basic-c-coding-conve
> ntions.html
>
> Perfect. We can point to this.
> Only the formatting section, though, because elsewhere it also says
> "Do not use #pragma once."... ;)
Yes, sure "pragma once" works just fine with almost all modern compilers except of some exotic ones.
We should also try not to create lines longer than 100-120 symbols, better even 80. Alexander pointed, that in one file it is even longer than 1300 symbols (Ip2 description). We should really cut those lines in a smaller one.
Anton
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp
References