Skip to content

Commit 29d14e3

Browse files
authored
fix(autoware_bytetrack): fix bugprone-reserved-identifier (#9647)
fix: bugprone-reserved-identifier Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent b107ac7 commit 29d14e3

File tree

1 file changed

+10
-10
lines changed
  • perception/autoware_bytetrack/lib/src

1 file changed

+10
-10
lines changed

perception/autoware_bytetrack/lib/src/lapjv.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
/** Column-reduction and reduction transfer for a dense cost matrix.
4646
*/
47-
int_t _ccrrt_dense(
47+
int_t ccrrt_dense(
4848
const uint_t n, cost_t * cost[], int_t * free_rows, int_t * x, int_t * y, cost_t * v)
4949
{
5050
int_t n_free_rows;
@@ -108,7 +108,7 @@ int_t _ccrrt_dense(
108108

109109
/** Augmenting row reduction for a dense cost matrix.
110110
*/
111-
int_t _carr_dense(
111+
int_t carr_dense(
112112
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
113113
int_t * y, cost_t * v)
114114
{
@@ -181,7 +181,7 @@ int_t _carr_dense(
181181

182182
/** Find columns with minimum d[j] and put them on the SCAN list.
183183
*/
184-
uint_t _find_dense(
184+
uint_t find_dense(
185185
const uint_t n, uint_t lo, const cost_t * d, int_t * cols, [[maybe_unused]] int_t * y)
186186
{
187187
uint_t hi = lo + 1;
@@ -202,7 +202,7 @@ uint_t _find_dense(
202202

203203
// Scan all columns in TODO starting from arbitrary column in SCAN
204204
// and try to decrease d of the TODO columns using the SCAN column.
205-
int_t _scan_dense(
205+
int_t scan_dense(
206206
const uint_t n, cost_t * cost[], uint_t * plo, uint_t * phi, cost_t * d, int_t * cols,
207207
int_t * pred, const int_t * y, const cost_t * v)
208208
{
@@ -267,7 +267,7 @@ int_t find_path_dense(
267267
if (lo == hi) {
268268
PRINTF("%d..%d -> find\n", lo, hi);
269269
n_ready = lo;
270-
hi = _find_dense(n, lo, d, cols, y);
270+
hi = find_dense(n, lo, d, cols, y);
271271
PRINTF("check %d..%d\n", lo, hi);
272272
PRINT_INDEX_ARRAY(cols, n);
273273
for (uint_t k = lo; k < hi; k++) {
@@ -279,7 +279,7 @@ int_t find_path_dense(
279279
}
280280
if (final_j == -1) {
281281
PRINTF("%d..%d -> scan\n", lo, hi);
282-
final_j = _scan_dense(n, cost, &lo, &hi, d, cols, pred, y, v);
282+
final_j = scan_dense(n, cost, &lo, &hi, d, cols, pred, y, v);
283283
PRINT_COST_ARRAY(d, n);
284284
PRINT_INDEX_ARRAY(cols, n);
285285
PRINT_INDEX_ARRAY(pred, n);
@@ -304,7 +304,7 @@ int_t find_path_dense(
304304

305305
/** Augment for a dense cost matrix.
306306
*/
307-
int_t _ca_dense(
307+
int_t ca_dense(
308308
const uint_t n, cost_t * cost[], const uint_t n_free_rows, int_t * free_rows, int_t * x,
309309
int_t * y, cost_t * v)
310310
{
@@ -348,14 +348,14 @@ int lapjv_internal(const uint_t n, cost_t * cost[], int_t * x, int_t * y)
348348

349349
NEW(free_rows, int_t, n);
350350
NEW(v, cost_t, n);
351-
ret = _ccrrt_dense(n, cost, free_rows, x, y, v);
351+
ret = ccrrt_dense(n, cost, free_rows, x, y, v);
352352
int i = 0;
353353
while (ret > 0 && i < 2) {
354-
ret = _carr_dense(n, cost, ret, free_rows, x, y, v);
354+
ret = carr_dense(n, cost, ret, free_rows, x, y, v);
355355
i++;
356356
}
357357
if (ret > 0) {
358-
ret = _ca_dense(n, cost, ret, free_rows, x, y, v);
358+
ret = ca_dense(n, cost, ret, free_rows, x, y, v);
359359
}
360360
FREE(v);
361361
FREE(free_rows);

0 commit comments

Comments
 (0)