This addresses issue #1441 by providing a comprehensive clang-format
configuration that standardizes C++ code formatting across the Z3 codebase.
The configuration is based on analysis of existing code style patterns:
- 4-space indentation (no tabs)
- Attached braces (same line as declarations)
- Left-aligned pointers and references (Type* ptr, Type& ref)
- No column limit (allows long lines as commonly seen in codebase)
- Allows short functions/blocks on single lines
- Consistent spacing around operators and keywords
Features:
- Enables 'git clang-format' for formatting patches
- Supports editor integration with clang-format plugins
- Provides consistent style for new contributions
- Based on Google style with Z3-specific customizations
Usage:
- Format entire file: clang-format -i filename.cpp
- Format git changes: git clang-format
- Editor integration available for vim, emacs, VS Code, etc.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>