본문 바로가기

프로그래밍/C, C++

구글 C++ 스타일 가이드

https://google.github.io/styleguide/cppguide.html


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.


구글 측에서 공개하고 있는 C++ 코딩 스타일에 대한 가이드입니다.



예를 들면

With few exceptions, place code in a namespace. Namespaces should have unique names based on the project name, and possibly its path. Do not use using-directives (e.g. using namespace foo). Do not use inline namespaces.

와 같은 식으로 규정하고 있습니다.

'프로그래밍 > C, C++' 카테고리의 다른 글

The Definitive C++ Book Guide and List  (0) 2019.03.10
KNK C를 보고있습니다.  (0) 2018.12.09