3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-08 00:41:56 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Daily Backlog Burner
33de44cdc8 Daily Backlog Burner: Add .clang-format file for consistent code formatting
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>
2025-09-17 01:49:04 +00:00