Skip to content
Bryan Call edited this page Mar 19, 2026 · 2 revisions

Coding Style

Formatting rules, naming conventions, and best practices for Apache Traffic Server.

Language Standard

Formatting

Automated Enforcement

Line Length

Indentation

Brace Style

Pointer and Reference Alignment

Running the Formatter

Naming Conventions

Classes

Functions and Variables

Constants and Macros

Member Variables

C++20 Patterns

Smart Pointers and RAII

Range-based For Loops

Structured Bindings

What NOT to Use

Comments and Documentation

Comment Philosophy

When to Comment

When NOT to Comment

License Headers

Python Style

See Also

Clone this wiki locally