mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-29 15:26:05 +00:00
6d678c927c
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@808 a592a061-630c-0410-9148-cb99ea01b6c8
26 lines
648 B
Plaintext
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();
|
|
}
|
|
|