devicetree: Add DT_FOREACH_ANCESTOR macro #160535
Annotations
1 error, 1 warning, and 3 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
-#define DT_FOREACH_ANCESTOR(node_id, fn) \
- DT_CAT(node_id, _FOREACH_ANCESTOR)(fn)
+#define DT_FOREACH_ANCESTOR(node_id, fn) DT_CAT(node_id, _FOREACH_ANCESTOR)(fn)
File:include/zephyr/devicetree.h
Line:3008
You may want to run clang-format on this change:
- /* When traversing upwards, there are no fixed attributes and labels */
- #define TEST_FUNC(parent) { /* No operation */ }
- #define TEST_FUNC_AND_COMMA(parent) TEST_FUNC(parent),
+/* When traversing upwards, there are no fixed attributes and labels */
+#define TEST_FUNC(parent) \
+ { /* No operation */ \
+ }
+#define TEST_FUNC_AND_COMMA(parent) TEST_FUNC(parent),
File:tests/lib/devicetree/api/src/main.c
Line:2235
You may want to run clang-format on this change:
- #undef TEST_FUNC_AND_COMMA
- #undef TEST_FUNC
+#undef TEST_FUNC_AND_COMMA
+#undef TEST_FUNC
File:tests/lib/devicetree/api/src/main.c
Line:2251
|
Run Compliance Tests:
include/zephyr/devicetree.h#L3008
include/zephyr/devicetree.h:3008
-#define DT_FOREACH_ANCESTOR(node_id, fn) \
- DT_CAT(node_id, _FOREACH_ANCESTOR)(fn)
+#define DT_FOREACH_ANCESTOR(node_id, fn) DT_CAT(node_id, _FOREACH_ANCESTOR)(fn)
|
Run Compliance Tests:
tests/lib/devicetree/api/src/main.c#L2235
tests/lib/devicetree/api/src/main.c:2235
- /* When traversing upwards, there are no fixed attributes and labels */
- #define TEST_FUNC(parent) { /* No operation */ }
- #define TEST_FUNC_AND_COMMA(parent) TEST_FUNC(parent),
+/* When traversing upwards, there are no fixed attributes and labels */
+#define TEST_FUNC(parent) \
+ { /* No operation */ \
+ }
+#define TEST_FUNC_AND_COMMA(parent) TEST_FUNC(parent),
|
Run Compliance Tests:
tests/lib/devicetree/api/src/main.c#L2251
tests/lib/devicetree/api/src/main.c:2251
- #undef TEST_FUNC_AND_COMMA
- #undef TEST_FUNC
+#undef TEST_FUNC_AND_COMMA
+#undef TEST_FUNC
|
Loading