Skip to content
Draft
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
build/
build-ninja/
.cache
cache.sqlite-journal
CMakeCache.txt
CMakeFiles/
CMakeScripts/
Expand Down Expand Up @@ -31,3 +32,10 @@ vendor/
*.log

cache.sqlite
cache.sqlite-journal

# Additional ignores
build-*/
.DS_Store

dumps/*
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@
"unittests",
"unpremult",
"vcpkg"
]
],
"files.associations": {
"__tree": "cpp",
"map": "cpp"
}
}
12 changes: 10 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ Under no circumstances is the agent permitted to execute commands using `sudo`.

When making changes to C++ files (`.cpp`, `.hpp`), it is mandatory to run `clang-format` to ensure code style consistency.

**Important:** The `vendor`, `build`, and `.git` directories must be excluded from formatting.
**Important:** Exclude the following directories from formatting: `vendor/`, `build/`, `build-ninja/`, and `.git/`.

You can format all relevant files using the following command:

```bash
find . -name "*.cpp" -o -name "*.hpp" | grep -v "^./vendor/" | grep -v "^./build/" | grep -v "^./.git/" | xargs clang-format -i
find . \( -name "*.cpp" -o -name "*.hpp" \) \
| grep -v -E "^\./(vendor|build|build-ninja|\.git)/" \
| xargs clang-format -i
```

Alternatively, run the helper script:

```bash
./scripts/format-cpp.sh
```

## Build and Run (macOS)
Expand Down
Loading