-
Notifications
You must be signed in to change notification settings - Fork 43
Example how to use the module api #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,10 @@ | |
|
|
||
| load("@score_baselibs//:bazel/unit_tests.bzl", "cc_gtest_unit_test", "cc_unit_test_suites_for_host_and_qnx") | ||
| load("@score_baselibs//score/language/safecpp:toolchain_features.bzl", "COMPILER_WARNING_FEATURES") | ||
| load("@score_tooling//bazel/rules/score_module:score_module.bzl", "safety_element_out_of_context") | ||
|
|
||
| load("@rules_python//sphinxdocs:sphinx_docs_library.bzl", "sphinx_docs_library") | ||
|
|
||
|
|
||
| cc_library( | ||
| name = "clock", | ||
|
|
@@ -467,3 +471,71 @@ cc_unit_test_suites_for_host_and_qnx( | |
| "//visibility:public", | ||
| ], | ||
| ) | ||
|
|
||
|
|
||
| # ############################################################ | ||
| # SAFETY ELEMENT OUT OF CONTEXT | ||
| # ############################################################ | ||
| sphinx_docs_library( | ||
| name = "assumptions_of_use", | ||
| srcs = ["design/assumptions_of_use.md"], | ||
| ) | ||
|
|
||
| sphinx_docs_library( | ||
| name = "component_requirements", | ||
| srcs = ["design/component_requirements.md"], | ||
| ) | ||
|
|
||
| sphinx_docs_library( | ||
| name = "architectural_design", | ||
| srcs = ["design/architectural_design.md"], | ||
| ) | ||
|
|
||
| sphinx_docs_library( | ||
| name = "safety_analysis", | ||
| srcs = ["design/safety_analysis.md"], | ||
| ) | ||
|
|
||
| safety_element_out_of_context( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you show how this would be used? e.g. by a different module or by integration? |
||
| name = "seooc_concurrency", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. content question: is concurrency a seeoc or baselibs? |
||
| architectural_design = ":architectural_design", | ||
| assumptions_of_use = ":assumptions_of_use", | ||
| component_requirements = ":component_requirements", | ||
| implementations = [ | ||
| "//score/concurrency:clock", | ||
| "//score/concurrency:concurrency", | ||
| "//score/concurrency:condition_variable", | ||
| "//score/concurrency:delayed_task", | ||
| "//score/concurrency:destruction_guard", | ||
| "//score/concurrency:executor", | ||
| "//score/concurrency:executor_mock", | ||
| "//score/concurrency/future:future", | ||
| "//score/concurrency/future:test_types", | ||
| "//score/concurrency:interruptible_conditional_variable_mock", | ||
| "//score/concurrency:interruptible_interprocess_condition_variable", | ||
| "//score/concurrency:interruptible_wait", | ||
| "//score/concurrency:long_running_threads_container", | ||
| "//score/concurrency:notification", | ||
| "//score/concurrency:periodic_task", | ||
| "//score/concurrency:shared_task_result", | ||
| "//score/concurrency:synchronized_queue", | ||
| "//score/concurrency:task_result", | ||
| "//score/concurrency:task_result_base", | ||
| "//score/concurrency/thread_load_tracking:thread_load_tracking", | ||
| "//score/concurrency:thread_pool", | ||
| "//score/concurrency/timed_executor:concurrent_timed_executor", | ||
| "//score/concurrency/timed_executor:delayed_task", | ||
| "//score/concurrency/timed_executor:periodic_task", | ||
| "//score/concurrency/timed_executor:timed_executor", | ||
| "//score/concurrency/timed_executor:timed_executor_mock", | ||
| "//score/concurrency/timed_executor:timed_task", | ||
| ], | ||
| safety_analysis = ":safety_analysis", | ||
| tests = [ | ||
| "//score/concurrency/future:unit_test_suite_host", | ||
| "//score/concurrency/thread_load_tracking:unit_test_suite_host", | ||
| "//score/concurrency/timed_executor:unit_test_suite_host", | ||
| "//score/concurrency:unit_test_suite_host", | ||
| ], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Architectural Design | ||
|
|
||
| Architectural design documentation for the concurrency module. | ||
|
|
||
| (To be completed) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Assumptions of Use | ||
|
|
||
| Assumptions of use documentation for the concurrency module. | ||
|
|
||
| (To be completed) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Component Requirements | ||
|
|
||
| Component requirements documentation for the concurrency module. | ||
|
|
||
| (To be completed) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Safety Analysis | ||
|
|
||
| Safety analysis documentation for the concurrency module. | ||
|
|
||
| (To be completed) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,3 +156,4 @@ cc_unit_test_suites_for_host_and_qnx( | |
| "//visibility:public", | ||
| ], | ||
| ) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Further iterations needed to use the docs macro and not sphinx_docs, but I guess that should be "just effort".