找传奇、传世资源到传世资源站!

Google C++ Style Guide.pdf

  • 资源分类:Google/学习书籍
  • 发 布 人:房东的猫
  • 文件大小:775946
  • 文件格式:.pdf
  • 浏览次数:29
  • 下载次数: 0
  • 发布时间:9月4日

  • 标签: pdf
8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

Table of ContentsC VersionHeaderFilesSelf-contained Headers The #define GuardForward Declarations Inline FunctionsNames and Order of IncludesScoping NamespacesUnnamed Namespaces and Static VariablesNonmember, Static Member, and Global FunctionsLocal Variables Static and Global Variablesthread_local VariablesClasses Doing Work in Constructors Implicit ConversionsCopyable and Movable Types Structs vs. ClassesInheritance Operator Overloading Access ControlDeclaration OrderFunctions Output Parameters Write Short FunctionsReference Arguments Function OverloadingDefault Arguments Trailing Return Type SyntaxGoogleSpecificMagicOwnership and Smart Pointers cpplintOther C FeaturesRvalue References Friends Exceptionsnoexcept Run-Time Type Information (RTTI)Casting Streams Preincrement and PredecrementUse of const Use of constexpr Integer Types64-bit Portability Preprocessor Macros0 and nullptr/NULL sizeof autoBraced Initializer List Lambda expressionsTemplate metaprogramming Boost std::hashC 11 Nonstandard Extensions AliasesNaming General Naming Rules File Names Type NamesVariable Names Constant NamesFunction Names Namespace NamesEnumerator Names Macro NamesExceptions to Naming RulesComments Comment Style File Comments Class CommentsFunction Comments Variable CommentsImplementation CommentsPunctuation, Spelling and GrammarTODO Comments Deprecation CommentsFormatting Line Length Non-ASCII CharactersSpaces vs. Tabs Function Declarations and DefinitionsLambda Expressions Function CallsBraced Initializer List Format ConditionalsLoops and Switch StatementsPointer and Reference ExpressionsBoolean Expressions Return ValuesVariable and Array InitializationPreprocessor Directives Class FormatConstructor Initializer Lists Namespace FormattingHorizontal Whitespace Vertical WhitespaceExceptionsto theRulesExisting Non-conformant Code Windows CodePartingWords

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复