Skip to content

Commit 0a9dd52

Browse files
authored
Merge pull request #36626 from vespa-engine/arnej/reformat-minors
run clang-format in defaults, fsa, jrt_test, lowercasing_test, messag…
2 parents 3d3e577 + 11c4d88 commit 0a9dd52

29 files changed

Lines changed: 671 additions & 868 deletions

File tree

defaults/src/apps/printdefault/printdefault.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
22

33
#include <vespa/defaults.h>
4+
45
#include <stdio.h>
56
#include <string.h>
67

@@ -29,7 +30,7 @@ void dumpAllVars() {
2930
printf("vespa version = '%s'\n", V_TAG_COMPONENT);
3031
}
3132

32-
int main(int argc, char **argv) {
33+
int main(int argc, char** argv) {
3334
if (argc != 2) {
3435
fprintf(stderr, "usage: %s <variable>\n", argv[0]);
3536
fprintf(stderr, " variable names are: home, user, hostname, portbase, configservers,\n");
@@ -58,7 +59,8 @@ int main(int argc, char **argv) {
5859
} else if (strcmp(argv[1], "configservers_rpc") == 0) {
5960
size_t count = 0;
6061
for (std::string v : vespa::Defaults::vespaConfigServerRpcAddrs()) {
61-
if (count++ > 0) printf(",");
62+
if (count++ > 0)
63+
printf(",");
6264
printf("%s", v.c_str());
6365
}
6466
printf("\n");
@@ -69,7 +71,8 @@ int main(int argc, char **argv) {
6971
} else if (strcmp(argv[1], "configsources") == 0) {
7072
size_t count = 0;
7173
for (std::string v : vespa::Defaults::vespaConfigSourcesRpcAddrs()) {
72-
if (count++ > 0) printf(",");
74+
if (count++ > 0)
75+
printf(",");
7376
printf("%s", v.c_str());
7477
}
7578
printf("\n");

0 commit comments

Comments
 (0)