Skip to content

Commit b9c92b8

Browse files
committed
Fix formatting, copyrights
1 parent c14bf3c commit b9c92b8

15 files changed

Lines changed: 158 additions & 26 deletions

File tree

.clang-format

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
BasedOnStyle: Google
32
AccessModifierOffset: -2
43
AllowAllParametersOfDeclarationOnNextLine: false
@@ -47,4 +46,3 @@ CommentPragmas: '^.*A2Lfactory:'
4746
# Make sure language specific settings are below the generic settings to be compatible to all languages.
4847
Language: Cpp
4948
Standard: c++17
50-
...

MODULE.bazel

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,19 @@ use_repo(toolchains_qnx, "toolchains_qnx_ifs")
105105

106106
bazel_dep(name = "score_baselibs_rust", version = "0.0.3")
107107
bazel_dep(name = "score_baselibs", version = "0.2.2")
108-
109-
git_override(
110-
module_name = "score_baselibs",
111-
commit = "9925dba1fd2ca7f2d33300cd2c01e6af022024cd",
112-
remote = "https://github.com/eclipse-score/baselibs.git",
113-
)
108+
# git_override(
109+
# module_name = "score_baselibs",
110+
# commit = "9925dba1fd2ca7f2d33300cd2c01e6af022024cd",
111+
# remote = "https://github.com/eclipse-score/baselibs.git",
112+
# )
114113

115114
# Hedron's Compile Commands Extractor for Bazel
116115
# https://github.com/hedronvision/bazel-compile-commands-extractor
117116
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
118117
git_override(
119118
module_name = "hedron_compile_commands",
120-
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
121119
commit = "0e990032f3c5a866e72615cf67e5ce22186dcb97",
120+
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
122121
# Replace the commit hash (above) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main).
123122
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
124123
)
125-
126-

MODULE.bazel.lock

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

src/health_monitoring_lib/BUILD

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
1313

14-
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test", "rust_static_library")
14+
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_static_library", "rust_test")
1515
load("@score_baselibs//:bazel/unit_tests.bzl", "cc_gtest_unit_test", "cc_unit_test_suites_for_host_and_qnx")
1616

1717
rust_library(
@@ -27,7 +27,6 @@ rust_library(
2727
],
2828
)
2929

30-
3130
rust_static_library(
3231
name = "health_monitoring_lib_ffi",
3332
srcs = glob(["src/**/*.rs"]),
@@ -52,26 +51,25 @@ rust_test(
5251
cc_library(
5352
name = "health_monitoring_lib_cc",
5453
srcs = [
55-
"cpp/deadline/deadline_monitor.cpp",
56-
"cpp/health_monitor.cpp",
5754
"cpp/common.cpp",
55+
"cpp/deadline/deadline_monitor.cpp",
5856
"cpp/ffi_helpers.h",
59-
],
57+
"cpp/health_monitor.cpp",
58+
],
6059
hdrs = [
61-
"cpp/include/score/hm/deadline/deadline_monitor.h",
6260
"cpp/include/score/hm/common.h",
63-
"cpp/include/score/hm/health_monitor.h"
64-
61+
"cpp/include/score/hm/deadline/deadline_monitor.h",
62+
"cpp/include/score/hm/health_monitor.h",
63+
],
64+
copts = [
65+
"-Isrc/health_monitoring_lib/cpp", # private include path
6566
],
66-
visibility = ["//visibility:public"],
6767
strip_include_prefix = "cpp/include",
68+
visibility = ["//visibility:public"],
6869
deps = [
6970
":health_monitoring_lib_ffi",
7071
"@score_baselibs//score/result",
7172
],
72-
copts = [
73-
"-Isrc/health_monitoring_lib/cpp", # private include path
74-
],
7573
)
7674

7775
cc_gtest_unit_test(
@@ -82,4 +80,4 @@ cc_gtest_unit_test(
8280
deps = [
8381
":health_monitoring_lib_cc",
8482
],
85-
)
83+
)

src/health_monitoring_lib/cpp/common.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#include <score/hm/common.h>
214

315
namespace score::hm::internal

src/health_monitoring_lib/cpp/deadline/deadline_monitor.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#include "score/hm/deadline/deadline_monitor.h"
214
#include "ffi_helpers.h"
315

src/health_monitoring_lib/cpp/ffi_helpers.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#ifndef SCORE_HM_FFI_HELPERS_HPP
214
#define SCORE_HM_FFI_HELPERS_HPP
315

src/health_monitoring_lib/cpp/health_monitor.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#include "score/hm/health_monitor.h"
214

315
extern "C" {

src/health_monitoring_lib/cpp/include/score/hm/common.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#ifndef SCORE_HM_COMMON_H
214
#define SCORE_HM_COMMON_H
315

src/health_monitoring_lib/cpp/include/score/hm/deadline/deadline_monitor.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/********************************************************************************
2+
* Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
********************************************************************************/
113
#ifndef SCORE_HM_DEADLINE_DEADLINE_MONITOR_H
214
#define SCORE_HM_DEADLINE_DEADLINE_MONITOR_H
315

0 commit comments

Comments
 (0)