feat(clang): init project

This commit is contained in:
2025-09-09 10:59:25 +08:00
parent 2cf485db02
commit cfc13ff82c
13 changed files with 19 additions and 0 deletions

0
.clang-format Normal file
View File

0
.clang-tidy Normal file
View File

0
CMakeLists.txt Normal file
View File

View File

@@ -1,2 +1,21 @@
# cpp-linter-template # cpp-linter-template
## 專案結構
cpp-linter-template/
├── .clang-tidy # linter 配置檔
├── .clang-format # 格式化配置檔
├── azure-pipelines.yml # Azure DevOps CI/CD 配置
├── CMakeLists.txt # 建構配置
├── README.md # 專案說明
├── docs/ # 文件目錄
│ ├── linter-setup.md # Linter 設定指南
│ └── coding-standards.md # 編碼標準
├── src/ # 原始碼
│ ├── main.cpp # 主程式(含各種測試案例)
│ ├── utils.cpp # 工具函數
│ └── utils.h # 標頭檔
├── tests/ # 測試程式碼
│ └── test_main.cpp # 簡單測試
└── scripts/ # 輔助腳本
├── run-linter.sh # 本地執行 linter
└── setup-hooks.sh # 設定 git hooks

0
azure-pipelines.yml Normal file
View File

0
docs/coding-standards.md Normal file
View File

0
docs/linter-setup.md Normal file
View File

0
scripts/run-linter.sh Normal file
View File

0
scripts/setup-hooks.sh Normal file
View File

0
src/main.cpp Normal file
View File

0
src/utils.cpp Normal file
View File

0
src/utils.h Normal file
View File

0
tests/test_main.cpp Normal file
View File