From 658459ca877fc35e393fc95dc6736712a6090209 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Fri, 2 Feb 2024 16:18:19 +0000 Subject: [PATCH] clang-tidy: modernize-use-using - Fix warnings identified by this flag - Remove the exclude from .clang-tidy file --- .clang-tidy | 1 - src/image-load-webp.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 717b72be..255a1729 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -45,7 +45,6 @@ Checks: > -modernize-raw-string-literal, -modernize-use-auto, -modernize-use-trailing-return-type, - -modernize-use-using, -performance-no-int-to-ptr, -readability-braces-around-statements, -readability-duplicate-include, diff --git a/src/image-load-webp.cc b/src/image-load-webp.cc index 61403d48..111169f7 100644 --- a/src/image-load-webp.cc +++ b/src/image-load-webp.cc @@ -26,7 +26,7 @@ #ifdef HAVE_WEBP #include -typedef struct _ImageLoaderWEBP ImageLoaderWEBP; +using ImageLoaderWEBP = struct _ImageLoaderWEBP; struct _ImageLoaderWEBP { ImageLoaderBackendCbAreaUpdated area_updated_cb; ImageLoaderBackendCbSize size_cb; -- 2.20.1