diff --git a/script/make-pretty b/script/make-pretty index 68f229cec..c9b62dec4 100755 --- a/script/make-pretty +++ b/script/make-pretty @@ -117,6 +117,7 @@ readonly OT_CLANG_TIDY_BUILD_OPTS=( readonly OT_CLANG_TIDY_CHECKS="\ -*,\ google-readability-casting,\ +misc-unused-using-decls,\ modernize-use-bool-literals,\ modernize-use-equals-default,\ modernize-use-equals-delete,\ diff --git a/src/cli/cli_dataset.cpp b/src/cli/cli_dataset.cpp index 53270ca50..18a4ff1a5 100644 --- a/src/cli/cli_dataset.cpp +++ b/src/cli/cli_dataset.cpp @@ -47,7 +47,6 @@ using ot::Utils::CmdLineParser::ParseAsIp6Address; using ot::Utils::CmdLineParser::ParseAsUint16; using ot::Utils::CmdLineParser::ParseAsUint32; using ot::Utils::CmdLineParser::ParseAsUint64; -using ot::Utils::CmdLineParser::ParseAsUint8; namespace ot { namespace Cli { diff --git a/src/cli/cli_udp.cpp b/src/cli/cli_udp.cpp index 90badb433..501d29aab 100644 --- a/src/cli/cli_udp.cpp +++ b/src/cli/cli_udp.cpp @@ -40,8 +40,6 @@ #include "common/encoding.hpp" #include "utils/parse_cmdline.hpp" -using ot::Encoding::BigEndian::HostSwap16; - using ot::Utils::CmdLineParser::ParseAsHexString; using ot::Utils::CmdLineParser::ParseAsIp6Address; using ot::Utils::CmdLineParser::ParseAsUint16; diff --git a/src/core/meshcop/dataset.cpp b/src/core/meshcop/dataset.cpp index c4591948e..02ddff0e1 100644 --- a/src/core/meshcop/dataset.cpp +++ b/src/core/meshcop/dataset.cpp @@ -48,9 +48,6 @@ namespace ot { namespace MeshCoP { -using ot::Encoding::BigEndian::HostSwap16; -using ot::Encoding::BigEndian::HostSwap32; - Dataset::Dataset(Type aType) : mUpdateTime(0) , mLength(0) diff --git a/src/core/meshcop/joiner_router.cpp b/src/core/meshcop/joiner_router.cpp index 09d97f8cf..b8c12b998 100644 --- a/src/core/meshcop/joiner_router.cpp +++ b/src/core/meshcop/joiner_router.cpp @@ -48,8 +48,6 @@ #include "thread/thread_netif.hpp" #include "thread/uri_paths.hpp" -using ot::Encoding::BigEndian::HostSwap16; - namespace ot { namespace MeshCoP { diff --git a/src/core/thread/address_resolver.cpp b/src/core/thread/address_resolver.cpp index a6e179c24..de1e8ab8b 100644 --- a/src/core/thread/address_resolver.cpp +++ b/src/core/thread/address_resolver.cpp @@ -49,8 +49,6 @@ #include "thread/thread_netif.hpp" #include "thread/uri_paths.hpp" -using ot::Encoding::BigEndian::HostSwap16; - namespace ot { AddressResolver::AddressResolver(Instance &aInstance) diff --git a/src/core/thread/mesh_forwarder.cpp b/src/core/thread/mesh_forwarder.cpp index ad51a66eb..c0b5a1afe 100644 --- a/src/core/thread/mesh_forwarder.cpp +++ b/src/core/thread/mesh_forwarder.cpp @@ -52,8 +52,6 @@ #include "thread/mle_router.hpp" #include "thread/thread_netif.hpp" -using ot::Encoding::BigEndian::HostSwap16; - namespace ot { void ThreadLinkInfo::SetFrom(const Mac::RxFrame &aFrame) diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index a777337d7..d6189190d 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -51,8 +51,6 @@ #include "thread/uri_paths.hpp" #include "utils/otns.hpp" -using ot::Encoding::BigEndian::HostSwap16; - namespace ot { namespace Mle { diff --git a/tests/unit/test_cmd_line_parser.cpp b/tests/unit/test_cmd_line_parser.cpp index 59339e209..33c99dd98 100644 --- a/tests/unit/test_cmd_line_parser.cpp +++ b/tests/unit/test_cmd_line_parser.cpp @@ -42,8 +42,6 @@ using ot::Utils::CmdLineParser::ParseAsHexString; using ot::Utils::CmdLineParser::ParseAsInt16; using ot::Utils::CmdLineParser::ParseAsInt32; using ot::Utils::CmdLineParser::ParseAsInt8; -using ot::Utils::CmdLineParser::ParseAsIp6Address; -using ot::Utils::CmdLineParser::ParseAsIp6Prefix; using ot::Utils::CmdLineParser::ParseAsUint16; using ot::Utils::CmdLineParser::ParseAsUint32; using ot::Utils::CmdLineParser::ParseAsUint64; diff --git a/tests/unit/test_lowpan.cpp b/tests/unit/test_lowpan.cpp index 6fc0e1604..540ac0f47 100644 --- a/tests/unit/test_lowpan.cpp +++ b/tests/unit/test_lowpan.cpp @@ -32,7 +32,6 @@ #include "test_util.hpp" using namespace ot; -using ot::Encoding::BigEndian::HostSwap16; namespace ot {