Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .github/workflows/cpp-build-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,21 @@ jobs:
echo "## Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
lcov --summary coverageFiltered.info >> $GITHUB_STEP_SUMMARY

# -------------------------------------------------------
# Step 7: Run Clang-Tidy (experimenting , not exit)
# - Modern C++ static analysis
# - Enforces best practices
# - Add `--warnings-as-errors=*` to exit code 1
# -------------------------------------------------------
- name: Run clang-tidy
# run: |
# echo "Running clang-tidy..."
# clang-tidy \
# -checks='clang-analyzer-*,modernize-*,performance-*,readability-*' \
# -p build \
# $(find ./src -name '*.cpp')
run: |
echo "Running clang-tidy using .clang-tidy options"
clang-tidy \
-p build \
-header-filter='^src/.*' $(find src -name "*.cpp")
# # -------------------------------------------------------
# # Step 7: Run Clang-Tidy (experimenting , not exit)
# # - Modern C++ static analysis
# # - Enforces best practices
# # - Add `--warnings-as-errors=*` to exit code 1
# # -------------------------------------------------------
# - name: Run clang-tidy
# # run: |
# # echo "Running clang-tidy..."
# # clang-tidy \
# # -checks='clang-analyzer-*,modernize-*,performance-*,readability-*' \
# # -p build \
# # $(find ./src -name '*.cpp')
# run: |
# echo "Running clang-tidy using .clang-tidy options"
# clang-tidy \
# -p build \
# -header-filter='^src/.*' $(find src -name "*.cpp")
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ RUN \
# install clang tidy
apt-get install -y clang-tidy && \
# install lcov
apt-get install -y lcov
apt-get install -y lcov && \
# install gtk4
apt-get install -y libgtkmm-4.0-dev

# Set the working directory inside the Docker image
WORKDIR /cpp-lab
Expand Down
4 changes: 4 additions & 0 deletions docs/uml/ap/ap_mvc_example.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/ap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ View ↔ ViewModel ↔ Model # view automatically update
(data binding)
```
### 2. MVC
![Diagram](../../docs/uml/ap/ap_mvc_example.drawio.svg)
- **MVC (Model - View - Controller)** is an architectural pattern that separates the user interface (`View`) from the application logic and data (`Model`) using an intermediary component called the `Controller`.
- **Components:**
- **Model**: is responsible for managing and abstracting data sources (databases, APIs, etc.). The `Model` handles data retrieval, storage, and business logic.
Expand Down
Loading