Skip to content

Commit 274a68a

Browse files
committed
style: clang-format 20.1.8 on the incremental proxy fix
Signed-off-by: chidev <[email protected]>
1 parent 9baadf3 commit 274a68a

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

‎tests/test_lsp_resolution_probe.c‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,12 +1481,13 @@ static char *lrp_edge_set(const char *db_path) {
14811481
sqlite3 *db = NULL;
14821482
sqlite3_stmt *st = NULL;
14831483
if (sqlite3_open_v2(db_path, &db, SQLITE_OPEN_READONLY, NULL) != SQLITE_OK ||
1484-
sqlite3_prepare_v2(db,
1485-
"SELECT e.type || ' ' || replace(s.qualified_name, e.project || '.', '') "
1486-
"|| ' -> ' || replace(t.qualified_name, e.project || '.', '') "
1487-
"FROM edges e JOIN nodes s ON s.id = e.source_id "
1488-
"JOIN nodes t ON t.id = e.target_id ORDER BY 1",
1489-
-1, &st, NULL) != SQLITE_OK) {
1484+
sqlite3_prepare_v2(
1485+
db,
1486+
"SELECT e.type || ' ' || replace(s.qualified_name, e.project || '.', '') "
1487+
"|| ' -> ' || replace(t.qualified_name, e.project || '.', '') "
1488+
"FROM edges e JOIN nodes s ON s.id = e.source_id "
1489+
"JOIN nodes t ON t.id = e.target_id ORDER BY 1",
1490+
-1, &st, NULL) != SQLITE_OK) {
14901491
sqlite3_close(db);
14911492
return NULL;
14921493
}

‎tests/test_swift_member_calls.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,14 @@ static char *swb_edge_set(const char *db_path) {
268268
sqlite3 *db = NULL;
269269
sqlite3_stmt *st = NULL;
270270
if (sqlite3_open_v2(db_path, &db, SQLITE_OPEN_READONLY, NULL) != SQLITE_OK ||
271-
sqlite3_prepare_v2(db,
272-
"SELECT e.type || ' ' || replace(s.qualified_name, e.project || '.', '') "
273-
"|| ' -> ' || replace(t.qualified_name, e.project || '.', '') "
274-
"FROM edges e JOIN nodes s ON s.id = e.source_id "
275-
"JOIN nodes t ON t.id = e.target_id WHERE e.type <> 'OVERRIDE' "
276-
"ORDER BY 1",
277-
-1, &st, NULL) != SQLITE_OK) {
271+
sqlite3_prepare_v2(
272+
db,
273+
"SELECT e.type || ' ' || replace(s.qualified_name, e.project || '.', '') "
274+
"|| ' -> ' || replace(t.qualified_name, e.project || '.', '') "
275+
"FROM edges e JOIN nodes s ON s.id = e.source_id "
276+
"JOIN nodes t ON t.id = e.target_id WHERE e.type <> 'OVERRIDE' "
277+
"ORDER BY 1",
278+
-1, &st, NULL) != SQLITE_OK) {
278279
sqlite3_close(db);
279280
return NULL;
280281
}
@@ -358,8 +359,7 @@ TEST(swift_inherited_member_incremental_matches_full) {
358359
}
359360
}
360361
}
361-
static const char want[] =
362-
"CALLS App.Geo.Square.Square.paint -> App.Geo.Shape.Shape.redraw\n";
362+
static const char want[] = "CALLS App.Geo.Square.Square.paint -> App.Geo.Shape.Shape.redraw\n";
363363
int ok = inc && full && strcmp(inc, full) == 0 && strstr(full, want) &&
364364
route == (int)CBM_INCREMENTAL_ROUTE_CLOSURE_REPAIR;
365365
if (!ok) {

0 commit comments

Comments
 (0)