Skip to content

Commit 13a8b08

Browse files
committed
Pass of clang-format
1 parent 91711db commit 13a8b08

16 files changed

+138
-105
lines changed

rpc/cc/arduino/cli/commands/v1/board.pb.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/board.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ message BoardDetailsResponse {
5959
repeated Programmer programmers = 13;
6060
// Set to true if the board supports debugging
6161
bool debugging_supported = 14;
62-
// If a board with the specified FQBN is connected returns its serial number too
62+
// If a board with the specified FQBN is connected returns its serial number
63+
// too
6364
string serial_number = 15;
6465
}
6566

@@ -246,7 +247,8 @@ message BoardSearchRequest {
246247
Instance instance = 1;
247248
// The search query to filter the board list by.
248249
string search_args = 2;
249-
// Set to true to get also the boards marked as "hidden" in installed platforms
250+
// Set to true to get also the boards marked as "hidden" in installed
251+
// platforms
250252
bool include_hidden_boards = 3;
251253
}
252254

rpc/cc/arduino/cli/commands/v1/commands.pb.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/commands.proto

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ service ArduinoCoreService {
4444
rpc UpdateIndex(UpdateIndexRequest) returns (stream UpdateIndexResponse) {}
4545

4646
// Update libraries index
47-
rpc UpdateLibrariesIndex(UpdateLibrariesIndexRequest) returns (stream UpdateLibrariesIndexResponse) {}
47+
rpc UpdateLibrariesIndex(UpdateLibrariesIndexRequest)
48+
returns (stream UpdateLibrariesIndexResponse) {}
4849

4950
// Update packages indexes for both Cores and Libraries
50-
rpc UpdateCoreLibrariesIndex(UpdateCoreLibrariesIndexRequest) returns (stream UpdateCoreLibrariesIndexResponse) {}
51+
rpc UpdateCoreLibrariesIndex(UpdateCoreLibrariesIndexRequest)
52+
returns (stream UpdateCoreLibrariesIndexResponse) {}
5153

5254
// Outdated returns a message with a list of outdated Cores and Libraries
5355
rpc Outdated(OutdatedRequest) returns (OutdatedResponse) {}
@@ -84,36 +86,45 @@ service ArduinoCoreService {
8486
rpc BoardSearch(BoardSearchRequest) returns (BoardSearchResponse);
8587

8688
// List boards connection and disconnected events.
87-
rpc BoardListWatch(stream BoardListWatchRequest) returns (stream BoardListWatchResponse);
89+
rpc BoardListWatch(stream BoardListWatchRequest)
90+
returns (stream BoardListWatchResponse);
8891

8992
// Compile an Arduino sketch.
9093
rpc Compile(CompileRequest) returns (stream CompileResponse);
9194

9295
// Download and install a platform and its tool dependencies.
93-
rpc PlatformInstall(PlatformInstallRequest) returns (stream PlatformInstallResponse);
96+
rpc PlatformInstall(PlatformInstallRequest)
97+
returns (stream PlatformInstallResponse);
9498

9599
// Download a platform and its tool dependencies to the `staging/packages`
96100
// subdirectory of the data directory.
97-
rpc PlatformDownload(PlatformDownloadRequest) returns (stream PlatformDownloadResponse);
101+
rpc PlatformDownload(PlatformDownloadRequest)
102+
returns (stream PlatformDownloadResponse);
98103

99104
// Uninstall a platform as well as its tool dependencies that are not used by
100105
// other installed platforms.
101-
rpc PlatformUninstall(PlatformUninstallRequest) returns (stream PlatformUninstallResponse);
106+
rpc PlatformUninstall(PlatformUninstallRequest)
107+
returns (stream PlatformUninstallResponse);
102108

103109
// Upgrade an installed platform to the latest version.
104-
rpc PlatformUpgrade(PlatformUpgradeRequest) returns (stream PlatformUpgradeResponse);
110+
rpc PlatformUpgrade(PlatformUpgradeRequest)
111+
returns (stream PlatformUpgradeResponse);
105112

106113
// Upload a compiled sketch to a board.
107114
rpc Upload(UploadRequest) returns (stream UploadResponse);
108115

109116
// Upload a compiled sketch to a board using a programmer.
110-
rpc UploadUsingProgrammer(UploadUsingProgrammerRequest) returns (stream UploadUsingProgrammerResponse);
117+
rpc UploadUsingProgrammer(UploadUsingProgrammerRequest)
118+
returns (stream UploadUsingProgrammerResponse);
111119

112120
// List programmers available for a board.
113-
rpc ListProgrammersAvailableForUpload(ListProgrammersAvailableForUploadRequest) returns (ListProgrammersAvailableForUploadResponse);
121+
rpc ListProgrammersAvailableForUpload(
122+
ListProgrammersAvailableForUploadRequest)
123+
returns (ListProgrammersAvailableForUploadResponse);
114124

115125
// Burn bootloader to a board.
116-
rpc BurnBootloader(BurnBootloaderRequest) returns (stream BurnBootloaderResponse);
126+
rpc BurnBootloader(BurnBootloaderRequest)
127+
returns (stream BurnBootloaderResponse);
117128

118129
// Search for a platform in the platforms indexes.
119130
rpc PlatformSearch(PlatformSearchRequest) returns (PlatformSearchResponse);
@@ -123,26 +134,33 @@ service ArduinoCoreService {
123134

124135
// Download the archive file of an Arduino library in the libraries index to
125136
// the staging directory.
126-
rpc LibraryDownload(LibraryDownloadRequest) returns (stream LibraryDownloadResponse);
137+
rpc LibraryDownload(LibraryDownloadRequest)
138+
returns (stream LibraryDownloadResponse);
127139

128140
// Download and install an Arduino library from the libraries index.
129-
rpc LibraryInstall(LibraryInstallRequest) returns (stream LibraryInstallResponse);
141+
rpc LibraryInstall(LibraryInstallRequest)
142+
returns (stream LibraryInstallResponse);
130143

131144
// Install a library from a Zip File
132-
rpc ZipLibraryInstall(ZipLibraryInstallRequest) returns (stream ZipLibraryInstallResponse);
145+
rpc ZipLibraryInstall(ZipLibraryInstallRequest)
146+
returns (stream ZipLibraryInstallResponse);
133147

134148
// Download and install a library from a git url
135-
rpc GitLibraryInstall(GitLibraryInstallRequest) returns (stream GitLibraryInstallResponse);
149+
rpc GitLibraryInstall(GitLibraryInstallRequest)
150+
returns (stream GitLibraryInstallResponse);
136151

137152
// Uninstall an Arduino library.
138-
rpc LibraryUninstall(LibraryUninstallRequest) returns (stream LibraryUninstallResponse);
153+
rpc LibraryUninstall(LibraryUninstallRequest)
154+
returns (stream LibraryUninstallResponse);
139155

140156
// Upgrade all installed Arduino libraries to the newest version available.
141-
rpc LibraryUpgradeAll(LibraryUpgradeAllRequest) returns (stream LibraryUpgradeAllResponse);
157+
rpc LibraryUpgradeAll(LibraryUpgradeAllRequest)
158+
returns (stream LibraryUpgradeAllResponse);
142159

143160
// List the recursive dependencies of a library, as defined by the `depends`
144161
// field of the library.properties files.
145-
rpc LibraryResolveDependencies(LibraryResolveDependenciesRequest) returns (LibraryResolveDependenciesResponse);
162+
rpc LibraryResolveDependencies(LibraryResolveDependenciesRequest)
163+
returns (LibraryResolveDependenciesResponse);
146164

147165
// Search the Arduino libraries index for libraries.
148166
rpc LibrarySearch(LibrarySearchRequest) returns (LibrarySearchResponse);
@@ -177,8 +195,7 @@ message DestroyRequest {
177195
Instance instance = 1;
178196
}
179197

180-
message DestroyResponse {
181-
}
198+
message DestroyResponse {}
182199

183200
message RescanRequest {
184201
// Arduino Core Service instance from the Init response.
@@ -250,8 +267,7 @@ message UpgradeResponse {
250267
TaskProgress task_progress = 2;
251268
}
252269

253-
message VersionRequest {
254-
}
270+
message VersionRequest {}
255271

256272
message VersionResponse {
257273
// The version of Arduino CLI in use.
@@ -274,18 +290,19 @@ message LoadSketchResponse {
274290
repeated string other_sketch_files = 3;
275291
// List of absolute paths to additional sketch files
276292
repeated string additional_files = 4;
277-
// List of absolute paths to supported files in the sketch root folder, main file excluded
293+
// List of absolute paths to supported files in the sketch root folder, main
294+
// file excluded
278295
repeated string root_folder_files = 5;
279296
}
280297

281-
message ArchiveSketchRequest{
298+
message ArchiveSketchRequest {
282299
// Absolute path to Sketch file or folder containing Sketch file
283300
string sketch_path = 1;
284-
// Absolute path to archive that will be created or folder that will contain it
301+
// Absolute path to archive that will be created or folder that will contain
302+
// it
285303
string archive_path = 2;
286304
// Specifies if build directory should be included in the archive
287305
bool include_build_dir = 3;
288306
}
289307

290-
message ArchiveSketchResponse {
291-
}
308+
message ArchiveSketchResponse {}

rpc/cc/arduino/cli/commands/v1/common.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ message DownloadProgress {
3838
}
3939

4040
message TaskProgress {
41-
// Description of the task.
42-
string name = 1;
43-
// Additional information about the task.
44-
string message = 2;
45-
// Whether the task is complete.
46-
bool completed = 3;
41+
// Description of the task.
42+
string name = 1;
43+
// Additional information about the task.
44+
string message = 2;
45+
// Whether the task is complete.
46+
bool completed = 3;
4747
}
4848

4949
message Programmer {

rpc/cc/arduino/cli/commands/v1/compile.proto

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,60 +31,60 @@ message CompileRequest {
3131
// `BoardAttach` method is used.
3232
string fqbn = 2;
3333
// The path where the sketch is stored.
34-
string sketch_path = 3;
34+
string sketch_path = 3;
3535
// Show all build preferences used instead of compiling.
36-
bool show_properties = 4;
36+
bool show_properties = 4;
3737
// Print preprocessed code to stdout instead of compiling.
38-
bool preprocess = 5;
38+
bool preprocess = 5;
3939
// Builds of 'core.a' are saved into this path to be cached and reused.
40-
string build_cache_path = 6;
40+
string build_cache_path = 6;
4141
// Path to use to store the files used for the compilation. If omitted,
4242
// a directory will be created in the operating system's default temporary
4343
// path.
44-
string build_path = 7;
44+
string build_path = 7;
4545
// List of custom build properties separated by commas.
4646
repeated string build_properties = 8;
4747
// Used to tell gcc which warning level to use. The level names are: "none",
4848
// "default", "more" and "all".
49-
string warnings = 9;
49+
string warnings = 9;
5050
// Turns on verbose mode.
51-
bool verbose = 10;
51+
bool verbose = 10;
5252
// Suppresses almost every output.
53-
bool quiet = 11;
53+
bool quiet = 11;
5454
// VID/PID specific build properties.
55-
string vid_pid = 12;
55+
string vid_pid = 12;
5656
// The max number of concurrent compiler instances to run (as `make -jx`).
5757
// If jobs is set to 0, it will use the number of available CPUs as the
5858
// maximum.
5959
int32 jobs = 14;
6060
// List of custom libraries paths separated by commas.
61-
repeated string libraries = 15;
61+
repeated string libraries = 15;
6262
// Optimize compile output for debug, not for release.
63-
bool optimize_for_debug = 16;
63+
bool optimize_for_debug = 16;
6464
// Optional: save the build artifacts in this directory, the directory must
6565
// exist.
66-
string export_dir = 18;
66+
string export_dir = 18;
6767
// Optional: cleanup the build folder and do not use any previously cached
6868
// build
69-
bool clean = 19;
69+
bool clean = 19;
7070
// When set to `true` only the compilation database will be produced and no
7171
// actual build will be performed.
72-
bool create_compilation_database_only = 21;
72+
bool create_compilation_database_only = 21;
7373
// This map (source file -> new content) let the builder use the provided
7474
// content instead of reading the corresponding file on disk. This is useful
7575
// for IDE that have unsaved changes in memory. The path must be relative to
7676
// the sketch directory. Only files from the sketch are allowed.
77-
map<string, string> source_override = 22;
77+
map<string, string> source_override = 22;
7878
// When set to `true` the compiled binary will be copied to the export
7979
// directory.
80-
google.protobuf.BoolValue export_binaries = 23;
80+
google.protobuf.BoolValue export_binaries = 23;
8181
}
8282

8383
message CompileResponse {
8484
// The output of the compilation process.
8585
bytes out_stream = 1;
8686
// The error output of the compilation process.
87-
bytes err_stream = 2;
87+
bytes err_stream = 2;
8888
// The compiler build path
8989
string build_path = 3;
9090
// The libraries used in the build

rpc/cc/arduino/cli/commands/v1/core.pb.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/core.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ message PlatformInstallRequest {
3030
string architecture = 3;
3131
// Platform version to install.
3232
string version = 4;
33-
// Set to true to not run (eventual) post install scripts for trusted platforms
33+
// Set to true to not run (eventual) post install scripts for trusted
34+
// platforms
3435
bool skip_post_install = 5;
3536
}
3637

rpc/cc/arduino/cli/commands/v1/lib.pb.go

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)