Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 11, 2025

Summary

  • ✅ Added comprehensive .clang-format configuration file with consistent formatting rules
  • ✅ Applied formatting to all 117 C++ source files (.h, .hpp, .cpp, .c, .cc, .cxx)
  • ✅ Configured for Allman brace style, 4-space indentation, 120-character line limit
  • ✅ Improved code readability and consistency across the entire C++ codebase

Configuration Details

The .clang-format file uses LLVM base style with project-specific customizations:

  • Brace Style: Allman (opening braces on new lines)
  • Indentation: 4 spaces, no tabs
  • Line Length: 120 characters maximum
  • Standard: C++17
  • Namespace: No indentation for namespace contents
  • Template Breaking: Always break before template declarations

Changes Made

  • 84 files changed: 7,664 insertions(+), 6,269 deletions(-)
  • New file: .clang-format configuration
  • Formatted files: All C++ headers and source files in the repository

Benefits

  • Consistent code formatting across the entire codebase
  • Improved readability and maintainability
  • Easy to apply to new C++ files using clang-format command
  • Standardized development workflow

Test Plan

  • Verify all C++ files compile after formatting
  • Ensure no functional changes, only formatting improvements
  • Confirm .clang-format configuration works correctly

🤖 Generated with Claude Code


Resolves #386

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #386
@konard konard self-assigned this Sep 11, 2025
konard and others added 2 commits September 11, 2025 10:48
- Added comprehensive .clang-format configuration file with consistent formatting rules
- Applied formatting to all 117 C++ source files (.h, .hpp, .cpp, .c, .cc, .cxx)
- Configured for Allman brace style, 4-space indentation, 120-character line limit
- Improved code readability and consistency across the entire C++ codebase
- Uses LLVM base style with project-specific customizations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Apply global .clang-format formatting settings for all C++ repo Apply global .clang-format formatting settings for all C++ files Sep 11, 2025
@konard konard marked this pull request as ready for review September 11, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply global .clang-format formatting settings for all C++ repo

2 participants