Maintain consistent formatting throughout the codebase to improve readability and maintainability. This includes standardizing function declaration spacing, comment styles, pointer/reference formatting, and type naming conventions.
Maintain consistent formatting throughout the codebase to improve readability and maintainability. This includes standardizing function declaration spacing, comment styles, pointer/reference formatting, and type naming conventions.
Key formatting rules to follow:
// Avoid - inconsistent spacing
const NATSConnectionPtr & getConnection(){return connection;}
const String & getQueueName() const{return queue_name;}
2. **Comments**: Use triple slashes (///) for single-line comments instead of double slashes (//)
```cpp
/// Implements `instrumentation` system table, which allows you to get information about functions instrumented by XRay.
// Avoid: // Get a vector of indices.
*
and &
operators
```cpp
// Preferred
std::vector// Avoid
std::vector
UInt32
instead of uint32_t
in ClickHouse codebase)Consistent formatting reduces cognitive load during code reviews and makes the codebase more professional and maintainable.
Enter the URL of a public GitHub repository