Re: C and C++ Style checking now enforced

John Emmas <[email protected]>
Newsgroups gmane.comp.audio.ardour.devel
Message-ID <[email protected]>
On 09/05/2015 07:25, Paul Davis wrote:
> (this is really just for developers with write/push access to the 
> Ardour git repository)
>
> Attempts to push code that doesn't comply with the Ardour style guide 
> to git.ardour.org <http://git.ardour.org> will now fail.
>
> There may be a few teething troubles as we get this started. Let me 
> know if you run into issues.
>

Hi Paul,

I've been experimenting with this on Windows to see if I can make it 
work with TortoiseGit (which I can't).  Python gives me a runtime error 
saying "Py_Initialize: can't initialize sys standard streams - 
LookupError: unknown encoding: cp0".

I do have a little more success if I try committing from a command line 
but it's not hugely better.  Maybe I happened to pick a bad file to test 
with - but I get dozens of errors from 
'libs/backends/jack/jack_utils.cc' - just in the existing code.  For 
example, all these lines fail, starting at line 139:-

     samplerates.push_back (_("8000Hz"));
     samplerates.push_back (_("22050Hz"));
     samplerates.push_back (_("44100Hz"));
     samplerates.push_back (_("48000Hz"));
     samplerates.push_back (_("88200Hz"));
     samplerates.push_back (_("96000Hz"));
     samplerates.push_back (_("192000Hz"));

All the above give me "missing space before open parenthesis".  But 
perhaps most damningly, any function call at all - e.g.

     whatever ();

gives me "missing space after close parenthesis".  Just flagging these 
up to you.

John

_______________________________________________
ardour-dev mailing list
[email protected]
http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.