Google C++ Style:修订间差异
(创建页面,内容为“=== google cpp style === 无框 === google h style === 无框 分类:Develop 分类:C++”) |
无编辑摘要 |
||
第1行: | 第1行: | ||
C++ is one of the main development languages used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more bug-prone and harder to read and maintain. | |||
The goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code . These rules exist to keep the code base manageable while still allowing coders to use C++ language features productively. | |||
''Style'', also known as readability, is what we call the conventions that govern our C++ code. The term Style is a bit of a misnomer, since these conventions cover far more than just source file formatting. | |||
Most open-source projects developed by Google conform to the requirements in this guide. | |||
Note that this guide is not a C++ tutorial: we assume that the reader is familiar with the language. | |||
=== google cpp style === | === google cpp style === | ||
[[文件:Google cpp style.png|无框]] | [[文件:Google cpp style.png|无框]] | ||
第4行: | 第14行: | ||
=== google h style === | === google h style === | ||
[[文件:Google h style.png|无框]] | [[文件:Google h style.png|无框]] | ||
See also: https://google.github.io/styleguide/cppguide.html | |||
[[分类:Develop]] | [[分类:Develop]] | ||
[[分类:C++]] | [[分类:C++]] |
2022年12月29日 (四) 16:00的版本
C++ is one of the main development languages used by many of Google's open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more bug-prone and harder to read and maintain.
The goal of this guide is to manage this complexity by describing in detail the dos and don'ts of writing C++ code . These rules exist to keep the code base manageable while still allowing coders to use C++ language features productively.
Style, also known as readability, is what we call the conventions that govern our C++ code. The term Style is a bit of a misnomer, since these conventions cover far more than just source file formatting.
Most open-source projects developed by Google conform to the requirements in this guide.
Note that this guide is not a C++ tutorial: we assume that the reader is familiar with the language.