[Spice-devel] Coding style and naming conventions for C++

Lukáš Hrázký lhrazky at redhat.com
Tue Jan 30 10:30:24 UTC 2018


On Tue, 2018-01-30 at 04:47 -0500, Frediano Ziglio wrote:
> Currently there's a docs/spice_style.txt file in spice-server
> repository
> (the website on spice-space uses it).
> I don't know how much of a good idea to extend it, maybe some styles
> do not fit that well with C++ (like the multi line indentation you
> mentioned or the always brackets in the if).

Why would you not always want curly brackets in C++ as opposed to C? Or
would you like to change it universally? (I'm slightly in favor of
always curly brackets just for the 'adding debug messages' reason)

Lukas


More information about the Spice-devel mailing list