mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-08-29 01:14:06 +02:00
@@ -34,6 +34,13 @@ alwaysApply: true
|
||||
- Prefer `std::string` over `char*` for string members.
|
||||
- Prefer pass-by-value and move for sink parameters (parameters that get stored).
|
||||
|
||||
## Control flow
|
||||
|
||||
- Prefer positive `if` conditions that wrap the main logic instead of early
|
||||
`continue` or `return` to skip work.
|
||||
- Example: use `if (!visited.contains(vertex)) { ... }` rather than
|
||||
`if (visited.contains(vertex)) continue;`.
|
||||
|
||||
## File Extensions
|
||||
|
||||
- C++ source: `.cc`
|
||||
|
||||
Reference in New Issue
Block a user