mirror of
https://github.com/espressif/openthread.git
synced 2026-10-07 00:07:42 +00:00
[otns] make various enhancements to Otns (#11643)
This commit contains various enhancements to the `Otns` class: - Makes `Otns` methods non-static. This aligns their use with the clang-tidy `readability-static-accessed-through-instance` check, which disallows accessing static methods through an instance. - Updates the `make-pretty` script to enable OTNS and include it in `clang-tidy` checks. - Adds a stub implementation of `otPlatOtnsStatus()` in the simulation and fake platforms. This allows the OTNS feature to be enabled in `make-pretty` builds and covered by GitHub Action CI checks. - Simplifies the `EmitStatus` methods to use the `String` class for constructing the status string. - Adds a new helper method to construct the CoAP status string, removing duplicated code.
This commit is contained in:
@@ -129,6 +129,7 @@ OT_CLANG_TIDY_BUILD_OPTS=(
|
||||
'-DOT_NAT64_TRANSLATOR=ON'
|
||||
'-DOT_NETDATA_PUBLISHER=ON'
|
||||
'-DOT_NETDIAG_CLIENT=ON'
|
||||
'-DOT_OTNS=ON'
|
||||
'-DOT_PING_SENDER=ON'
|
||||
'-DOT_REFERENCE_DEVICE=ON'
|
||||
'-DOT_SERVICE=ON'
|
||||
|
||||
Reference in New Issue
Block a user