CSE/알쓸모

Google C++ Style Guide 정리하기 - 시작

세드릭 2025. 2. 24. 22:50

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

 

Google C++ Style Guide

Google C++ Style Guide Background 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 ca

google.github.io

 

라떼썰 같은 꼰대 이야기일지 모르겠으나...
Code convention을 숙지하는 것은 협업의 시작이다.

 

보통 3개월인 수습 기간 동안 숙지할 것을 권장하며

수습이 끝난 후에는 프로젝트 코드에 가장 얕은 권한이 주어진다.

그리고 pull request, code review 를 거치며 코딩 스타일을 체득한다.

 

2022년 chatGPT 이후, 일단 구현해보자가 흐름이라면

앞으로의 이야기는 흐름을 거스른다고 느낄 수도 있겠다.

 

구글 스타일 가이드를 모두 번역할 계획보다는

정말로 필요한 부분만 번역해서 업로드할 계획이다.

 

1. Header Files

2. Scoping

3. Classes

4. Functions

5. Naming

6. Comments

7. Formatting