Skip to content

Commit 862e6cd

Browse files
committed
Upgrade clang-format to version 19
1 parent a9b3f37 commit 862e6cd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/clang-format-check.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Run clang-format style check for C/C++ programs.
16-
uses: jidicula/clang-format-action@v4.13.0
16+
uses: jidicula/clang-format-action@v4.14.0
1717
with:
18-
clang-format-version: '18'
18+
clang-format-version: '19'
1919
check-path: "src"

src/engine/include/commandlineoptionsparser.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class CommandLineOptionsParser {
162162

163163
std::visit(overloaded{
164164
// integral value matcher including bool
165-
[&data, &idx, argv, &commandLineOption](std::integral auto OptValueType::*arg) {
165+
[&data, &idx, argv, &commandLineOption](std::integral auto OptValueType::* arg) {
166166
using IntType = std::remove_reference_t<decltype(data.*arg)>;
167167
if constexpr (std::is_same_v<IntType, bool>) {
168168
data.*arg = true;
@@ -180,7 +180,7 @@ class CommandLineOptionsParser {
180180
},
181181

182182
// CommandLineOptionalInt32 value matcher
183-
[&data, &idx, argv](CommandLineOptionalInt32 OptValueType::*arg) {
183+
[&data, &idx, argv](CommandLineOptionalInt32 OptValueType::* arg) {
184184
data.*arg = CommandLineOptionalInt32(CommandLineOptionalInt32::State::kOptionPresent);
185185
if (idx + 1U < argv.size()) {
186186
std::string_view opt(argv[idx + 1]);
@@ -192,7 +192,7 @@ class CommandLineOptionsParser {
192192
},
193193

194194
// std::string_view value matcher
195-
[&data, &idx, argv, &commandLineOption](std::string_view OptValueType::*arg) {
195+
[&data, &idx, argv, &commandLineOption](std::string_view OptValueType::* arg) {
196196
if (idx + 1U < argv.size()) {
197197
data.*arg = std::string_view(argv[++idx]);
198198
return;
@@ -201,7 +201,7 @@ class CommandLineOptionsParser {
201201
},
202202

203203
// optional std::string_view value matcher
204-
[this, &data, &idx, argv](std::optional<std::string_view> OptValueType::*arg) {
204+
[this, &data, &idx, argv](std::optional<std::string_view> OptValueType::* arg) {
205205
if (idx + 1U < argv.size() && this->isOptionValue(argv[idx + 1])) {
206206
data.*arg = std::string_view(argv[idx + 1]);
207207
++idx;
@@ -211,7 +211,7 @@ class CommandLineOptionsParser {
211211
},
212212

213213
// duration value matcher
214-
[&data, &idx, argv, &commandLineOption](Duration OptValueType::*arg) {
214+
[&data, &idx, argv, &commandLineOption](Duration OptValueType::* arg) {
215215
if (idx + 1U < argv.size()) {
216216
data.*arg = ParseDuration(argv[++idx]);
217217
return;

0 commit comments

Comments
 (0)