Add batch 2 (danielholanda_LeFlow, The-OpenROAD-Project_OpenSTA, omarelhedaby_CNN-FPGA, QShen3_CNN-FPGA, openrisc_mor1kx)
23d354c verified | description: C++ function call indentation for OpenSTA | |
| globs: ["**/*.cc", "**/*.hh", "**/*.h"] | |
| alwaysApply: false | |
| # C++ Function Call Indentation | |
| ## Short Calls β Single Line | |
| When arguments fit within the column limit (90 chars), keep them on one line: | |
| ```cpp | |
| // β GOOD | |
| adjusted_data_arrival = delaySum(required, data_shift_to_enable_clk, this); | |
| // β BAD | |
| adjusted_data_arrival = delaySum(required, | |
| data_shift_to_enable_clk, | |
| this); | |
| ``` | |
| ## Nested Function Calls β Align Under Inner Call | |
| When breaking nested calls across lines: | |
| - Indent continuation lines of the inner call under its first argument (align with content after `innerFunc(`). | |
| - Place remaining outer arguments on the same line as the inner call's closing `)`, indented under the outer function. | |
| ```cpp | |
| // β GOOD | |
| required = delayDiff(delaySum(max_delay, | |
| search_->clkPathArrival(disable_path), | |
| this), | |
| margin, this); | |
| // β BAD | |
| required = delayDiff( | |
| delaySum(max_delay, | |
| search_->clkPathArrival(disable_path), | |
| this), | |
| margin, | |
| this); | |
| ``` | |