Skip to content

Commit 620b61c

Browse files
committed
Add CLAUDE.md guidance file
1 parent c8055e8 commit 620b61c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CLAUDE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Build Commands
6+
- Configure: `cmake -S . -B ./build -G Ninja` or `cmake . --preset <configure-preset>` (CMake 3.21+)
7+
- Build: `cmake --build ./build`
8+
- Run tests: `cd ./build && ctest -C Debug && cd ..`
9+
- Run specific test: `cd ./build && ./test/tests "[test name]" && cd ..`
10+
- Static analysis: Enable with `-Dinfiz_ENABLE_CLANG_TIDY=ON` or `-Dinfiz_ENABLE_CPPCHECK=ON`
11+
12+
## Code Style Guidelines
13+
- Standard: C++23
14+
- Formatting: 2-space indentation, 120 char line limit, braces on new lines for functions/classes
15+
- Naming: Classes=PascalCase, Methods/Variables=camelCase, Constants/Enums=UPPER_CASE
16+
- Error handling: Use exceptions with descriptive messages, lambda error handlers
17+
- Features: Use `constexpr`, `consteval`, `[[nodiscard]]`, concepts, format strings
18+
- Headers: Include guards with `INFIZ_NAME_H` format, sort includes logically
19+
- Functions: Prefer pure functions marked with `[[nodiscard]]` where possible

0 commit comments

Comments
 (0)