출처


언리얼 엔진을 위한 에픽 C++ 코딩 표준 | 언리얼 엔진 5.5 문서 | Epic Developer Community

# .clang-format
---
Language: Cpp
BasedOnStyle: Microsoft

# 들여쓰기 및 너비
IndentWidth: 4
TabWidth: 4
UseTab: Always
ColumnLimit: 120

# 포인터 위치 (Type* Variable) - UE 표준
PointerAlignment: Left

# 제어문 설정
# 한 줄 if문 허용 (if(!character) return nullptr;)
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true

# 함수 및 인자 설정
# 긴 인자 목록을 한 줄에 욱여넣지 않음 (세로 나열 유도)
BinPackArguments: false
BinPackParameters: false

# 괄호 및 줄바꿈 스타일
BreakBeforeBraces: Allman
AllowShortFunctionsOnASingleLine: Empty

# Switch 문 들여쓰기
IndentCaseLabels: true

# 전처리기(#region 등) 들여쓰기 무시
IndentPPDirectives: None

# 네임스페이스 들여쓰기 안함 (UE 표준)
NamespaceIndentation: None

# 접근 지정자(public:) 들여쓰기
AccessModifierOffset: -4
...

등록해서 편하게 쓰기

📜 [Project Sanzo] 코드 컨벤션

1. 🎯 기본 원칙

2. 네이밍 규칙 (Naming Conventions)

명확성과 일관성을 위해 PascalCase를 사용하며, 줄임말 사용을 지양합니다.

📁 클래스 및 에셋 명명

✍️ 변수 및 함수