Google C++ Style Guidevariables, and function static variables, must be Plain Old Data (POD): only ints, chars, floats, or pointers, or arrays/structs of POD. The order in which class constructors and initializers for static function (such as getenv(), or getpid()) does not itself depend on any other globals. However, a static POD variable within function scope may be initialized with the result of a function, since its initialization quick_exit(), you need to register it in both places.) As a result we only allow static variables to contain POD data. This rule completely disallows vector (use C arrays instead), or string (use const char []).0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Java Style GuideSpecial characters 2.3.1 Whitespace characters Aside from the line terminator sequence, the ASCII horizontal space char- acter (0x20) is the only whitespace character that appears anywhere in a source file indentation level if and only if they begin with syntactically parallel elements. Section 4.6.3 on Horizontal alignment addresses the discouraged practice of using a variable number of spaces to align certain Multiple consecutive blank lines are permitted, but never required (or encour- aged). 4.6.2 Horizontal whitespace Beyond where required by the language or other style rules, and apart from lit- erals0 码力 | 19 页 | 84.76 KB | 1 年前3
共 2 条
- 1













