diff --git a/pw_assert_basic/basic_handler.cc b/pw_assert_basic/basic_handler.cc index 09e766cfea..d50152cc80 100644 --- a/pw_assert_basic/basic_handler.cc +++ b/pw_assert_basic/basic_handler.cc @@ -75,7 +75,7 @@ static void WriteLine(std::string_view s) { .IgnoreError(); // TODO: b/242598609 - Handle Status properly } -typedef pw::StringBuffer<150> Buffer; +using Buffer = pw::StringBuffer<150>; extern "C" void pw_assert_basic_HandleFailure(const char* file_name, int line_number, diff --git a/pw_blob_store/public/pw_blob_store/internal/metadata_format.h b/pw_blob_store/public/pw_blob_store/internal/metadata_format.h index f63bbb16b6..e11eab7a53 100644 --- a/pw_blob_store/public/pw_blob_store/internal/metadata_format.h +++ b/pw_blob_store/public/pw_blob_store/internal/metadata_format.h @@ -29,7 +29,7 @@ enum MetadataVersion : uint32_t { // Technically the original BlobMetadataV1 was not packed. PW_PACKED(struct) BlobMetadataV1 { - typedef uint32_t ChecksumValue; + using ChecksumValue = uint32_t; // The checksum of the blob data stored in flash. ChecksumValue checksum; diff --git a/pw_chre/include/chre/target_platform/atomic_base.h b/pw_chre/include/chre/target_platform/atomic_base.h index 3462671c03..a5f0d165a7 100644 --- a/pw_chre/include/chre/target_platform/atomic_base.h +++ b/pw_chre/include/chre/target_platform/atomic_base.h @@ -24,7 +24,7 @@ class AtomicBase { std::atomic atomic_; }; -typedef AtomicBase AtomicBoolBase; -typedef AtomicBase AtomicUint32Base; +using AtomicBoolBase = AtomicBase; +using AtomicUint32Base = AtomicBase; } // namespace chre diff --git a/pw_chre/public/pw_chre/host_link.h b/pw_chre/public/pw_chre/host_link.h index ca4e2cc730..dbf8640267 100644 --- a/pw_chre/public/pw_chre/host_link.h +++ b/pw_chre/public/pw_chre/host_link.h @@ -22,7 +22,7 @@ namespace pw::chre { /// This is a token representing a message that CHRE allocated. /// It must be passed to `FreeMessageToAp` when the message is finished. -typedef const void* MessageToApContext; +using MessageToApContext = const void*; /// This is a message that should be sent to the AP. /// It was allocated by CHRE, so pw::chre::FreeMessageToAp should be called diff --git a/pw_crypto/public/pw_crypto/sha256_mbedtls.h b/pw_crypto/public/pw_crypto/sha256_mbedtls.h index 9e063d8f53..003ffb7b07 100644 --- a/pw_crypto/public/pw_crypto/sha256_mbedtls.h +++ b/pw_crypto/public/pw_crypto/sha256_mbedtls.h @@ -25,6 +25,6 @@ namespace pw::crypto::sha256::backend { -typedef mbedtls_sha256_context NativeSha256Context; +using NativeSha256Context = mbedtls_sha256_context; } // namespace pw::crypto::sha256::backend diff --git a/pw_kvs/public/pw_kvs/flash_memory.h b/pw_kvs/public/pw_kvs/flash_memory.h index 88983b9246..fc9eda70d1 100644 --- a/pw_kvs/public/pw_kvs/flash_memory.h +++ b/pw_kvs/public/pw_kvs/flash_memory.h @@ -38,7 +38,7 @@ enum class PartitionPermission : bool { class FlashMemory { public: // The flash address is in the range of: 0 to FlashSize. - typedef uint32_t Address; + using Address = uint32_t; // TODO: b/235149326 - This can be constexpr when tokenized asserts are fixed. FlashMemory(size_t sector_size, diff --git a/pw_rpc/nanopb/client_server_context_test.cc b/pw_rpc/nanopb/client_server_context_test.cc index a062a4b7a3..6378aa6ead 100644 --- a/pw_rpc/nanopb/client_server_context_test.cc +++ b/pw_rpc/nanopb/client_server_context_test.cc @@ -33,7 +33,7 @@ class TestService final : public GeneratedService::Service { Status TestAnotherUnaryRpc(const pw_rpc_test_TestRequest& request, pw_rpc_test_TestResponse& response) { - typedef std::array ArgType; + using ArgType = std::array; // The values array needs to be kept in memory until after this method call // returns since the response is not encoded until after returning from this // method. diff --git a/pw_rpc/nanopb/client_server_context_threaded_test.cc b/pw_rpc/nanopb/client_server_context_threaded_test.cc index b10a42ad38..aefb52fb51 100644 --- a/pw_rpc/nanopb/client_server_context_threaded_test.cc +++ b/pw_rpc/nanopb/client_server_context_threaded_test.cc @@ -36,7 +36,7 @@ class TestService final : public GeneratedService::Service { Status TestAnotherUnaryRpc(const pw_rpc_test_TestRequest& request, pw_rpc_test_TestResponse& response) { - typedef std::array ArgType; + using ArgType = std::array; // The values array needs to be kept in memory until after this method call // returns since the response is not encoded until after returning from this // method. diff --git a/pw_rpc/nanopb/server_callback_test.cc b/pw_rpc/nanopb/server_callback_test.cc index 57890b7faa..ca03070681 100644 --- a/pw_rpc/nanopb/server_callback_test.cc +++ b/pw_rpc/nanopb/server_callback_test.cc @@ -33,7 +33,7 @@ class TestServiceImpl final Status TestAnotherUnaryRpc(const pw_rpc_test_TestRequest&, pw_rpc_test_TestResponse& response) { - typedef std::array ArgType; + using ArgType = std::array; // The values array needs to be kept in memory until after this method call // returns since the response is not encoded until after returning from this // method.