lyx_mirror/sigc++/doc/conventions
Lars Gullik Bjønnes 6d678c927c more FILMagain stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@808 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:55:12 +00:00

26 lines
648 B
Plaintext

Okay here are the conventions for this project.
macros - all caps (MY_MACRO)
enum - same as macros
classes - cap each word lower others (Signal)
private classes - same as class with underscore or trailing _ (BasicSignal_Impl)
function - lowercase with underscore (foo_bar())
methods - lowercase with underscore (m.foo_bar())
data - lowercase (m.mydata)
private data - lowercase with trailing underscore (m.mydata_)
Namespaces are used where possible.
If namespaces are not available use a class to fake it unless
that is not allowed.
Format is GNU or modified GNU (indent first bracket)
class MyClass
{
MyClass();
}