这是indexloc提供的服务,不要输入任何密码
Skip to content
match065 edited this page Apr 30, 2012 · 6 revisions

logo

Welcome to the grive wiki!

Grive news and discussion will be put in this Google+ page.

Contributing to Grive

First, Grive is released in GPLv2 only. All contributed code must be GPLv2 or compatible in order to merge to the project. No copyright assignment is required.

There is a few style guidelines for grive source code. Please follow it if you want to contribute:

  • The brackets should be place like this:
if ( ptr != 0 )
{
        return 0 ;
}
  • Use 0 for null pointer, not NULL.
  • No Hungarian notation.
  • Classes and functions have capital letters separating the words, e.g. SomeClass; Variable are all lower case, and use underscore _ to separate the words.
  • Class member variables have m_ as prefix.
  • All classes must be placed in the gr namespace. Non-class function must be placed in inner namespace space, e.g. gr::os::MakeDir().
  • Unit tests have its own namespace grut.
  • Indentations must be using tab characters with tab width 4.
Clone this wiki locally