Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SF: Source 번역 제출 #149

Merged
merged 8 commits into from
Jul 4, 2019
Merged

SF: Source 번역 제출 #149

merged 8 commits into from
Jul 4, 2019

Conversation

luncliff
Copy link
Member

@luncliff luncliff commented Jul 2, 2019

Note

진행상황을 다음과 같이 갱신하게 됩니다.

  • SF.1: 다른 관례를 따르는 중이 아니라면 .cpp는 코드 파일에, .h는 인터페이스 파일에 사용하라
  • SF.2: .h 파일에는 개체 변수(object definition) 혹은 inline이 아닌 함수의 정의가 있어서는 안된다
  • SF.3: .h 파일은 여러 소스 파일에서 사용되는 선언을 담아라
  • SF.4: 파일에서 무언가 선언하기 전에 .h를 include하라
  • SF.5: .cpp파일은 반드시 해당 인터페이스를 정의하는 .h를 include해야 한다
  • SF.6: using namespace는 네임스페이스의 이름 바꾸기, std처럼 기본적인 라이브러리, 혹은 지역 유효범위 안에서(만) 사용하라
  • SF.7: 헤더파일에서는 전체 유효범위(global scope)에 주는 using namespace를 작성하지 마라
  • SF.8: 모든 .h파일에서 #include 가드(guard)를 사용하라
  • SF.9: 소스 파일들이 순환 의존(cyclic dependencies)하게 하지마라
  • SF.10: 묵시적으로 #include된 이름이 필요하지 않도록 하라
  • SF.11: 헤더 파일은 독립적으로 사용할 수 있게(self-contained) 만들어라
  • SF.20: namespace는 논리적 구조를 표현할 때 사용하라
  • SF.21: 헤더에서 이름없는(anonymous) 네임스페이스를 사용하지 마라
  • SF.22: 이름없는(anonymous) 네임스페이스는 내부(internal)/노출시키지 않는(non-exported) 개체에 사용하라

@luncliff luncliff added the Update label Jul 2, 2019
@luncliff luncliff added this to the 2018년 9월 문서 번역 milestone Jul 2, 2019
@luncliff luncliff requested a review from a team July 2, 2019 17:43
@luncliff luncliff self-assigned this Jul 2, 2019
@luncliff luncliff merged commit 4394751 into CppKorea:sync Jul 4, 2019
@luncliff luncliff deleted the section/source branch July 4, 2019 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant