@@ -1115,7 +1115,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
1115
1115
const ezgl::color contour_color{0 , 0 , 0 , 40 };
1116
1116
const bool draw_crit_path_contour = g_vpr_ctx.server ().draw_crit_path_contour ();
1117
1117
1118
- auto drawFlylineTimingEdgeHelperFn = [](ezgl::renderer* renderer, const ezgl::color& color, ezgl::line_dash line_style, int line_width, float delay,
1118
+ auto draw_flyline_timing_edge_helper_fn = [](ezgl::renderer* renderer, const ezgl::color& color, ezgl::line_dash line_style, int line_width, float delay,
1119
1119
const tatum::NodeId& prev_node, const tatum::NodeId& node, bool skip_draw_delays=false ) {
1120
1120
renderer->set_color (color);
1121
1121
renderer->set_line_dash (line_style);
@@ -1127,16 +1127,16 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
1127
1127
renderer->set_line_width (0 );
1128
1128
};
1129
1129
1130
- for (const auto & [pathIndex, elementIndexes ]: indexes) {
1131
- if (pathIndex < paths.size ()) {
1132
- const tatum::TimingPath& path = paths[pathIndex ];
1130
+ for (const auto & [path_index, element_indexes ]: indexes) {
1131
+ if (path_index < paths.size ()) {
1132
+ const tatum::TimingPath& path = paths[path_index ];
1133
1133
1134
1134
// Walk through the timing path drawing each edge
1135
1135
tatum::NodeId prev_node;
1136
1136
float prev_arr_time = std::numeric_limits<float >::quiet_NaN ();
1137
- int elementCounter = 0 ;
1137
+ int element_counter = 0 ;
1138
1138
for (const tatum::TimingPathElem& elem : path.data_arrival_path ().elements ()) {
1139
- bool drawCurrentElement = elementIndexes .empty () ? true : elementIndexes .find (elementCounter ) != elementIndexes .end ();
1139
+ bool draw_current_element = element_indexes .empty () ? true : element_indexes .find (element_counter ) != element_indexes .end ();
1140
1140
1141
1141
// draw element
1142
1142
tatum::NodeId node = elem.node ();
@@ -1146,28 +1146,28 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
1146
1146
// any routing which corresponds to the edge
1147
1147
//
1148
1148
// We pick colors from the kelly max-contrast list, for long paths there may be repeats
1149
- ezgl::color color = kelly_max_contrast_colors[elementCounter % kelly_max_contrast_colors.size ()];
1149
+ ezgl::color color = kelly_max_contrast_colors[element_counter % kelly_max_contrast_colors.size ()];
1150
1150
1151
1151
if (prev_node) {
1152
1152
float delay = arr_time - prev_arr_time;
1153
1153
if (draw_state->show_crit_path == DRAW_CRIT_PATH_FLYLINES
1154
1154
|| draw_state->show_crit_path
1155
1155
== DRAW_CRIT_PATH_FLYLINES_DELAYS) {
1156
- if (drawCurrentElement ) {
1157
- drawFlylineTimingEdgeHelperFn (g, color, ezgl::line_dash::none, /* line_width*/ 4 , delay, prev_node, node);
1156
+ if (draw_current_element ) {
1157
+ draw_flyline_timing_edge_helper_fn (g, color, ezgl::line_dash::none, /* line_width*/ 4 , delay, prev_node, node);
1158
1158
} else if (draw_crit_path_contour) {
1159
- drawFlylineTimingEdgeHelperFn (g, contour_color, ezgl::line_dash::none, /* line_width*/ 1 , delay, prev_node, node, /* skip_draw_delays*/ true );
1159
+ draw_flyline_timing_edge_helper_fn (g, contour_color, ezgl::line_dash::none, /* line_width*/ 1 , delay, prev_node, node, /* skip_draw_delays*/ true );
1160
1160
}
1161
1161
} else {
1162
1162
VTR_ASSERT (draw_state->show_crit_path != DRAW_NO_CRIT_PATH);
1163
1163
1164
- if (drawCurrentElement ) {
1164
+ if (draw_current_element ) {
1165
1165
// Draw the routed version of the timing edge
1166
1166
draw_routed_timing_edge_connection (prev_node, node, color, g);
1167
1167
1168
- drawFlylineTimingEdgeHelperFn (g, color, ezgl::line_dash::asymmetric_5_3, /* line_width*/ 3 , delay, prev_node, node);
1168
+ draw_flyline_timing_edge_helper_fn (g, color, ezgl::line_dash::asymmetric_5_3, /* line_width*/ 3 , delay, prev_node, node);
1169
1169
} else if (draw_crit_path_contour) {
1170
- drawFlylineTimingEdgeHelperFn (g, color, ezgl::line_dash::asymmetric_5_3, /* line_width*/ 3 , delay, prev_node, node, /* skip_draw_delays*/ true );
1170
+ draw_flyline_timing_edge_helper_fn (g, color, ezgl::line_dash::asymmetric_5_3, /* line_width*/ 3 , delay, prev_node, node, /* skip_draw_delays*/ true );
1171
1171
}
1172
1172
}
1173
1173
}
@@ -1176,7 +1176,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
1176
1176
prev_arr_time = arr_time;
1177
1177
// end draw element
1178
1178
1179
- elementCounter ++;
1179
+ element_counter ++;
1180
1180
}
1181
1181
}
1182
1182
}
0 commit comments