From d9f4043c0ac040aedd3a785661cb76bbac2d7592 Mon Sep 17 00:00:00 2001 From: Arjav Patel Date: Thu, 4 Jun 2026 23:25:35 +0530 Subject: [PATCH] tools/nxstyle: Whitelist lifecycle_msgs and rosidl_runtime_c prefixes. Phase 8 of the micro-ROS on NuttX integration adds GetState service server and client examples under apps/examples/microros_{srv,cli}. The rosidl token-pasting macros generate identifiers such as lifecycle_msgs__srv__GetState_Request lifecycle_msgs__srv__GetState_Response lifecycle_msgs__msg__State__PRIMARY_STATE_ACTIVE rosidl_runtime_c__String__assign Add the lifecycle_msgs package name and the rosidl_runtime_c prefix to the existing rosidl whitelist introduced for Int32 / std_msgs identifiers. Both prefixes are package-scoped and already cover the full mangled identifiers above, so no bare CamelCase tokens are added. Signed-off-by: Arjav Patel --- tools/nxstyle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 36c0834bcc4f8..4bc0ce192d12f 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -240,6 +240,8 @@ static const char *g_white_prefix[] = "nav_msgs", /* nav_msgs__msg__Odometry, ... */ "builtin_interfaces", /* builtin_interfaces__msg__Time, ... */ "rcl_interfaces", /* rcl_interfaces__msg__Log, ... */ + "lifecycle_msgs", /* lifecycle_msgs__srv__GetState, ... */ + "rosidl_runtime_c", /* rosidl_runtime_c__String__assign, ... */ "Int8", /* ROSIDL_GET_MSG_TYPE_SUPPORT(_, _, Int8) */ "Int16", "Int32",