Bug 485626 - Update style guidelines to reflect namespace discussions
authorShawn Wilsher <me@shawnwilsher.com>
Tue, 31 Mar 2009 07:26:08 -0700
changeset 26765 d249eca423fd0e38c9f641c6f348d072a8aaab73
parent 26764 45fc547f59ff9b23ae95bfa60ce367c511cdfbaa
child 26766 98fd92d1d41e82abffaaf74352d20acba9266706
push idunknown
push userunknown
push dateunknown
bugs485626
milestone1.9.2a1pre
Bug 485626 - Update style guidelines to reflect namespace discussions r=asuth
storage/style.txt
--- a/storage/style.txt
+++ b/storage/style.txt
@@ -1,16 +1,19 @@
 Storage Module Style Guidelines
 
 These guidelines should be followed for all new code in this module.  Reviewers
 will be enforcing them, so please obey them!
 
-* All code should be contained within the namespace Mozilla::Storage at a
+* All code should be contained within the namespace mozilla::storage at a
   minimum.  The use of namespaces is strongly encouraged.
 
+* All functions being called in the global namespace should be prefixed with
+  "::" to indicate that they are in the global namespace.
+
 * The indentation level to use in source code is two spaces.  No tabs, please!
 
 * All files should have the following emacs and vim mode lines:
   -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
   vim: sw=2 ts=2 sts=2 et :
 
 * All functions that are not XPCOM should start with a lowercase letter.