Code Example

⚙️ Manual Customization

Indent Width
Use Tabs
Indent Case Labels
Indent Preprocessor
Indent Goto Labels
Namespace Indentation
Spaces in Parentheses
Space in Empty Parens
Spaces in Angles < >
Spaces in Brackets [ ]
Space After C-Style Cast
Space Before Assignment
Space After Logical Not
Space Before Colon
Brace Breaking Style
Space Before Parentheses
Brace Wrapping After Function
Brace Wrapping After Class
Pointer / Reference Alignment
Align Consecutive Assignments
Align Consecutive Declarations
Align Trailing Comments
Align Escaped Newlines
Align Operands
Align Array Initializers
Column Limit
0 = no limit
Max Empty Lines
Continuation Indent
Bin Pack Arguments
Bin Pack Parameters
Break Before Binary Operators
Break Before Ternary
Allow Short Functions On Single Line
Allow Short If Statements On Single Line
Allow Short Loops
Allow Short Blocks
Allow Short Case Labels
Allow Short Lambdas
Sort Includes
Sort Using Declarations
Fix Namespace Comments
Compact Namespaces
Include Block Style
Break Template Declarations
Insert Braces
Remove Braces (LLVM)
Insert Trailing Commas
Cpp Standard

.clang-format

Generated configuration file

# Click "Generate" or "Analyze Code" to create your .clang-format file

🔎 Detected Patterns

Analyze code to see detected patterns