Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:38:57 JST 2012
Kouhei Sutou 2012-03-15 15:08:49 +0900 (Thu, 15 Mar 2012) New Revision: 65586d6534cb5221bd7eaf3248f1b52e827007c8 https://github.com/mroonga/mroonga/commit/65586d6534cb5221bd7eaf3248f1b52e827007c8 Log: doc coding-style: add about naming rule for member variable Modified files: doc/source/developer/coding_style.rst Modified: doc/source/developer/coding_style.rst (+27 -0) =================================================================== --- doc/source/developer/coding_style.rst 2012-03-15 15:05:24 +0900 (deb3986) +++ doc/source/developer/coding_style.rst 2012-03-15 15:08:49 +0900 (56a560a) @@ -170,3 +170,30 @@ TODO: ちゃんと考える。 class HaMroonga: public handler { } + +メンバー変数名 +^^^^^^^^^^^^^^ + +メンバー変数名は ``snail_case`` とし、末尾にアンダースコア( ``_`` )を付ける。 + +よい例: + + class MyClass + { + char *my_name_; + } + +悪い例( ``UpperCamelCase`` である): + + class MyClass + { + char *MyName_; + } + +悪い例(末尾にアンダースコアがない): + + class MyClass + { + char *my_name; + } + -------------- next part -------------- HTML����������������������������...Télécharger