Google C++ Style Guide - Google C++ 风格指南

Every major open-source project has its own style guide: a set of conventions (sometimes arbitrary) about how to write code for that project. It is much easier to understand a large codebase when all the code in it is in a consistent style.
每个较大的开源项目都有自己的风格指南:关于如何为该项目编写代码的一系列约定 (有时候会比较武断)。当所有代码均保持一致的风格,在理解大型代码库时更为轻松。

“Style” covers a lot of ground, from “use camelCase for variable names” to “never use global variables” to “never use exceptions.” This project (google/styleguide) links to the style guidelines we use for Google code. If you are modifying a project that originated at Google, you may be pointed to this page to see the style guides that apply to that project.
风格的含义涵盖范围广,从“变量使用驼峰格式 (camelCase)”到“决不使用全局变量”再到“决不使用异常”,等等诸如此类。英文版项目维护的是在 Google 使用的编程风格指南。如果你正在修改的项目源自 Google,你可能会被引导至英文版项目页面,以了解项目所使用的风格。

This project also contains cpplint, a tool to assist with style guide compliance, and google-c-style.el, an Emacs settings file for Google style.
英文版项目还包含 cpplint - 一个用来帮助适应风格准则的工具,以及 google-c-style.el,Google 风格的 Emacs 配置文件。
https://github.com/google/styleguide/tree/gh-pages/cpplint
https://raw.githubusercontent.com/google/styleguide/gh-pages/google-c-style.el

1. Google C++ Style Guide - Google C++ 风格指南

Google C++ Style Guide
https://google.github.io/styleguide/cppguide.html

Google C++ 风格指南
https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/contents/

2. Google Style Guides

https://github.com/google/styleguide

  • An AngularJS Style Guide for Closure Users at Google
    https://google.github.io/styleguide/angularjs-google-style.html
  • Google Common Lisp Style Guide
    https://google.github.io/styleguide/lispguide.xml
  • Google C++ Style Guide
    https://google.github.io/styleguide/cppguide.html
  • C# at Google Style Guide
    https://google.github.io/styleguide/csharp-style.html
  • Go Style Guide
    https://github.com/google/styleguide/tree/gh-pages/go
  • Google HTML/CSS Style Guide
    https://google.github.io/styleguide/htmlcssguide.html
  • Google JavaScript Style Guide
    https://google.github.io/styleguide/jsguide.html
  • Google Java Style Guide
    https://google.github.io/styleguide/javaguide.html
  • Google Objective-C Style Guide
    https://github.com/google/styleguide/blob/gh-pages/objcguide.md
  • Google Python Style Guide
    https://google.github.io/styleguide/pyguide.html
  • Google’s R Style Guide
    https://google.github.io/styleguide/Rguide.html
  • Shell Style Guide
    https://google.github.io/styleguide/shellguide.html
  • Swift Style Guide
    https://google.github.io/swift/
  • Google TypeScript Style Guide
    https://google.github.io/styleguide/tsguide.html
  • Google Vimscript Style Guide
    https://google.github.io/styleguide/vimscriptguide.xml

3. Google 开源项目风格指南 (中文版)

https://zh-google-styleguide.readthedocs.io/en/latest/

  • Google C++ 风格指南
    https://google-styleguide.readthedocs.io/zh_CN/latest/google-cpp-styleguide/contents.html
  • Google Objective-C 风格指南
    https://google-styleguide.readthedocs.io/zh_CN/latest/google-objc-styleguide/contents.html
  • Google Python 风格指南
    https://google-styleguide.readthedocs.io/zh_CN/latest/google-python-styleguide/contents.html
  • Google Shell 风格指南
    https://google-styleguide.readthedocs.io/zh_CN/latest/google-shell-styleguide/contents.html
  • Google JavaScript 风格指南
    https://google-styleguide.readthedocs.io/zh_CN/latest/google-javascript-styleguide/contents.html
  • Google TypeScript 风格指南
    https://zh-google-styleguide.readthedocs.io/en/latest/google-typescript-styleguide/contents/
  • Google JSON 风格指南
    https://github.com/darcyliu/google-styleguide/blob/master/JSONStyleGuide.md

4. Note

Google Style Guides
https://github.com/google/styleguide

Google 开源项目风格指南 - GitHub 托管地址
https://github.com/zh-google-styleguide/zh-google-styleguide

Google 开源项目风格指南 - 下载离线文档
https://github.com/zh-google-styleguide/zh-google-styleguide/releases

References

https://yongqiang.blog.csdn.net/

Google C++ Style Guide - Google C++ 风格指南相关推荐

  1. Google Python Style Guide(谷歌python规范指南)

    来自:Google Python Style Guide 1. 背景 Python是谷歌内部使用的主要动态语言(脚本语言).这份指导手册列出了使用Python的编程人员应该做的和不应该做的. 为了帮助 ...

  2. Google Objective-C Style Guide

    看题目就知道了-哪天有空翻译成中文的-不多说了-上链接- Google Objective-C Style Guide 转载于:https://blog.51cto.com/lulala/659124

  3. Google cpp style guide 之 include

    首先是传送门: Google cpp style guide: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml 中文版:( ...

  4. Google JavaScript Style Guide

    转自:http://google.github.io/styleguide/javascriptguide.xml Google JavaScript Style Guide Revision 2.9 ...

  5. 几个简单代码片段-- Google C++ style guide

    欧洲杯,德国VS意大利.战车遇到浪漫之师,结果如何? Who Cares!!! 开球之前,review一下近期写的代码,发现一些代码写的不是很规范.于是,重新温习一下 Google C++ style ...

  6. Software Engineering at Google翻译-III-8-Style Guides and Rules(风格指南和规则 )

    第8章 风格指南和规则 作者: Shaindel Schwartz 编辑: Tom Manshreck 参考:https://github.com/daizhenhong/swe-at-google/ ...

  7. Google Python Style Guide

    https://google.github.io/styleguide/pyguide.html 转载于:https://www.cnblogs.com/bettyty/p/6357323.html

  8. Google C++ style guide——命名约定

    1.通过命名规则 函数命名.变量命名.文件命名应具有描写叙述性. 类型和变量应该是名词,函数名能够用"命令性"动词. 2.文件命名 文件名称所有小写,能够包括下划线(_)或者断线( ...

  9. Google C++编程风格指南

    [译]Google C++编程风格指南(八)[完] 2008年09月03日 星期三 17:06 原文地址:Google C++ Style Guide 规则之例外 前面说明的编码习惯基本是强制性的,但 ...

最新文章

  1. R语言使用ggpubr包的ggarrange函数组合多张结论图:使用ggpubr包将表格嵌套在可视化图像中
  2. Mysql5.7的gtid主从半同步复制和组复制
  3. Understanding G1 GC Logs--转载
  4. Redis scan命令原理
  5. c打印无符号整数_C语言基础知识:printf的输出格式,C/C++语言编程讲解
  6. 某级数的前两项A1=1,A2=1,以后各项具有如下关系:An=An-2+2An-1。使用非递归的算法求解满足要求的n值的程序。
  7. SVC较好的介绍资料
  8. 升级ubuntu后EMACS 无法使用
  9. [9018_1563][bzoj_2144]跳跳棋
  10. C++模板函数 学习记录
  11. Android对话框控件读写,Android 对话框控件
  12. Python实现文件编码转换GB2312、GBK、UTF-8
  13. 安卓开发环境使用 Lombok
  14. MacBook快捷键
  15. android修改便携式热点的默认SSID名称
  16. 计算机网络学习之物理层篇
  17. 支付宝微信个人收款支付系统解决方案
  18. Python网页应用开发神器fac框架正式发布
  19. (nlogn)的时间复杂度求 最近点对 hdu 1007 凹凸曼与小怪兽的故事 poj3714 Raid...
  20. 故障树算法JAVA实现

热门文章

  1. 谷歌发布2018年度搜索排行榜
  2. 不使用加减乘除+-*/,实现减法运算
  3. 程序员B站项目分享:啪一下子回到了10年前的B站,要泪目了
  4. 【导数术】2.导数基本不等式
  5. 现在学 NLP 还来得及吗?
  6. js高级-h5新特性
  7. java计算机毕业设计校友闲置书籍管理平台源码+lw文档+系统+数据库
  8. 你是个靠谱的程序员吗?
  9. android 第三方recovery刷机
  10. 【调剂】江南大学人工智能与计算机学院2023年硕士研究生调剂公告(非全日制)...