Skip to content

Commit 1fe3520

Browse files
authored
Upgrade to clang-format 17 (#364)
1 parent dfb9dd8 commit 1fe3520

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,6 @@ WhitespaceSensitiveMacros:
179179
- STRINGIZE
180180
- PP_STRINGIZE
181181
- BOOST_PP_STRINGIZE
182+
InsertNewlineAtEOF: true
182183
...
183184

.github/workflows/merge-criteria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Run clang-format
6464
uses: jidicula/[email protected]
6565
with:
66-
clang-format-version: '13'
66+
clang-format-version: '17'
6767
check-path: '${{ matrix.project }}/src'
6868
exclude-regex: '(lib|telemetry/src/st|ground_station/src/format)'
6969

flight_computer/src/cli/cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,4 +466,4 @@ void cli_print_var_range(const cli_value_t *var) {
466466
cli_print_linef("Allowed values: OFF, ON");
467467
} break;
468468
}
469-
}
469+
}

flight_computer/src/config/globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ volatile recorder_status_e global_recorder_status = REC_OFF;
4141
event_action_map_elem_t* event_action_map = nullptr;
4242

4343
char telemetry_code_version[20] = {};
44-
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)
44+
// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)

flight_computer/src/control/orientation_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ void quaternion_kinematics(orientation_filter_t* filter, vf32_t angular_vel) {
4242

4343
/* Normalize Prediction */
4444
normalize_q(filter->estimate_data);
45-
}
45+
}

ground_station/src/hmi/bmp.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,4 @@ const unsigned char usb_logo[] PROGMEM = {
561561
0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
562562
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00,
563563
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
564-
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
564+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

ground_station/src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,4 @@ DRESULT disk_ioctl(BYTE pdrv, // Physical drive nmuber (0..)
296296
return RES_PARERR;
297297
}
298298
}
299-
}
299+
}

0 commit comments

Comments
 (0)