feat(clang): init project
This commit is contained in:
0
.clang-format
Normal file
0
.clang-format
Normal file
0
.clang-tidy
Normal file
0
.clang-tidy
Normal file
0
CMakeLists.txt
Normal file
0
CMakeLists.txt
Normal file
19
README.md
19
README.md
@@ -1,2 +1,21 @@
|
||||
# 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
0
azure-pipelines.yml
Normal file
0
docs/coding-standards.md
Normal file
0
docs/coding-standards.md
Normal file
0
docs/linter-setup.md
Normal file
0
docs/linter-setup.md
Normal file
0
scripts/run-linter.sh
Normal file
0
scripts/run-linter.sh
Normal file
0
scripts/setup-hooks.sh
Normal file
0
scripts/setup-hooks.sh
Normal file
0
src/main.cpp
Normal file
0
src/main.cpp
Normal file
0
src/utils.cpp
Normal file
0
src/utils.cpp
Normal file
0
src/utils.h
Normal file
0
src/utils.h
Normal file
0
tests/test_main.cpp
Normal file
0
tests/test_main.cpp
Normal file
Reference in New Issue
Block a user