Skip to content

Commit

Permalink
pw_{assert, containers}: Layering check fixes
Browse files Browse the repository at this point in the history
Get these two modules to build with layering check enabled.

Bug: 219091175
Change-Id: I13c6e8263cc556aadd04cee63aaa6cdc0dacbc53
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/261252
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Armando Montanez <[email protected]>
Docs-Not-Needed: Ted Pudlik <[email protected]>
Pigweed-Auto-Submit: Ted Pudlik <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
tpudlik authored and CQ Bot Account committed Jan 21, 2025
1 parent bffbd10 commit 75ef591
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pw_assert/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,15 @@ pw_cc_test(
"pw_assert_test/fake_backend.h",
],
deps = [
":config",
":facade",
"//pw_assert",
"//pw_compilation_testing:negative_compilation_testing",
"//pw_preprocessor",
"//pw_result",
"//pw_span",
"//pw_status",
"//pw_string",
"//pw_string:builder",
"//pw_unit_test",
],
)
Expand Down
2 changes: 2 additions & 0 deletions pw_assert_basic/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ cc_library(
":handler",
":pw_assert_basic",
"//pw_assert:check.facade",
"//pw_assert:config",
"//pw_preprocessor",
],
# Other libraries may not always depend on this library, even if it is
Expand All @@ -82,6 +83,7 @@ cc_library(
"basic_handler.cc",
],
implementation_deps = [
"//pw_assert:config",
"//pw_preprocessor",
"//pw_string:builder",
"//pw_sys_io",
Expand Down
9 changes: 7 additions & 2 deletions pw_containers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ cc_library(
":constexpr_tag",
":raw_storage",
"//pw_assert",
"//pw_preprocessor",
"//pw_varint",
],
)
Expand Down Expand Up @@ -289,6 +290,7 @@ pw_cc_test(
":filtered_view",
":flat_map",
":intrusive_list",
"//pw_span",
],
)

Expand All @@ -298,7 +300,7 @@ pw_cc_test(
"flat_map_test.cc",
],
deps = [
":pw_containers",
":flat_map",
"//pw_polyfill",
"//pw_unit_test",
],
Expand All @@ -314,6 +316,7 @@ pw_cc_test(
":inline_var_len_entry_queue",
"//pw_assert",
"//pw_bytes",
"//pw_varint",
],
)

Expand All @@ -323,8 +326,8 @@ pw_cc_test(
"vector_test.cc",
],
deps = [
":pw_containers",
":test_helpers",
":vector",
"//pw_compilation_testing:negative_compilation_testing",
"//pw_unit_test",
],
Expand Down Expand Up @@ -389,6 +392,7 @@ pw_cc_test(
":intrusive_forward_list",
":vector",
"//pw_compilation_testing:negative_compilation_testing",
"//pw_preprocessor",
"//pw_unit_test",
],
)
Expand All @@ -400,6 +404,7 @@ pw_cc_test(
":intrusive_list",
":vector",
"//pw_compilation_testing:negative_compilation_testing",
"//pw_preprocessor",
"//pw_unit_test",
],
)
Expand Down

0 comments on commit 75ef591

Please sign in to comment.