Conversation
Introduce .clang-format, .clang-tidy, .editorconfig, and .pre-commit-config.yaml for consistent code style and linting. Add linting integration to CMake and supporting scripts in tools/. Apply formatting and minor style cleanups across examples, source, and test files to match new standards.
There was a problem hiding this comment.
Pull request overview
This PR introduces comprehensive code formatting, linting, and style tooling to ensure consistent code quality across the codebase. Configuration files for clang-format, clang-tidy, editorconfig, and pre-commit hooks are added, along with supporting shell scripts in the tools/ directory. The changes apply automated formatting across C++ source files, headers, and shell scripts, standardizing include order, namespace formatting, brace placement, and switch statement structure. The formatting updates affect virtual file system components, logging subsystems, type system utilities, concurrency primitives, and debug facilities, ensuring uniform style throughout the project.
Key changes:
- Added tooling configuration files (.clang-format, .clang-tidy, .editorconfig, .pre-commit-config.yaml)
- Introduced shell scripts for code formatting, linting, and pre-commit hook setup
- Applied consistent formatting and style cleanups across all source and header files
Reviewed changes
Copilot reviewed 144 out of 144 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/setup_hooks.sh | Script to install and configure pre-commit hooks with auto-detection of clang-tidy |
| tools/lint_code.sh | Script to run clang-tidy on source files using compile commands |
| tools/format_code.sh | Script to format C/C++ source files using clang-format |
| src/entropy/*.cpp | Applied formatting to C API implementations (include order, function signatures, whitespace) |
| src/VirtualFileSystem/*.{h,cpp} | Standardized formatting for VFS components (namespaces, includes, braces) |
| src/TypeSystem/*.h | Formatted type system headers (namespace braces, include order) |
| src/Logging/*.{h,cpp} | Applied consistent style to logging subsystem (switch statements, namespaces) |
| src/Graph/*.h | Formatted graph utilities (namespace structure, comments) |
| src/Debug/*.h | Standardized debug utilities formatting |
| src/Core/*.{h,cpp} | Applied formatting to core object model and service infrastructure |
| src/Concurrency/*.cpp | Formatted concurrency implementation files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Introduce .clang-format, .clang-tidy, .editorconfig, and .pre-commit-config.yaml for consistent code style and linting. Add linting integration to CMake and supporting scripts in tools/. Apply formatting and minor style cleanups across examples, source, and test files to match new standards.