Skip to content

Commit eb2cd93

Browse files
CopilotCISC
andcommitted
Replace clang-format with git clang-format to format only changed code
Co-authored-by: CISC <[email protected]>
1 parent 4f933db commit eb2cd93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ source ../../../.venv/bin/activate
111111
### C++ Code Formatting
112112
**ALWAYS format C++ code before committing:**
113113
```bash
114-
clang-format -i src/**/*.cpp include/**/*.h
114+
git clang-format --binary clang-format-16
115115
```
116116

117117
Configuration is in `.clang-format` with these key rules:
@@ -205,7 +205,7 @@ Primary tools:
205205
## Common Validation Steps
206206

207207
### After Making Changes
208-
1. **Format code**: `clang-format -i modified_files.cpp`
208+
1. **Format code**: `git clang-format --binary clang-format-16`
209209
2. **Build**: `cmake --build build --config Release`
210210
3. **Test**: `ctest --test-dir build --output-on-failure`
211211
4. **Server tests** (if modifying server): `cd tools/server/tests && source ../../../.venv/bin/activate && ./tests.sh`

0 commit comments

Comments
 (0)