apply modernize-use-using via clang-tidy
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 30 Sep 2022 17:56:31 +0000 (19:56 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Mon, 3 Oct 2022 23:32:46 +0000 (01:32 +0200)
ran
run-clang-tidy-14.py -header-filter='.*' -checks='-*,modernize-use-using' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/csync/csync.h
test/csync/vio_tests/check_vio_ext.cpp

index 0c418f9addaa2d5c76d33e0b1991d8d0f47a8726..8796a9d21ce6643d9118fad072eba6ab274f8513 100644 (file)
@@ -165,7 +165,7 @@ Q_ENUM_NS(ItemType)
 
 using namespace CSyncEnums;
 using CSYNC_STATUS = CSyncEnums::csync_status_codes_e;
-typedef struct csync_file_stat_s csync_file_stat_t;
+using csync_file_stat_t = struct csync_file_stat_s;
 
 struct OCSYNC_EXPORT csync_file_stat_s {
   time_t modtime = 0;
index 193a9be47c54a8524519df8355a28d9b0ab82431..7542271216f6cc8679e05efbf6e841cfec293cc4 100644 (file)
@@ -44,10 +44,10 @@ int oc_mkdir(const QString &path)
 
 static mbchar_t wd_buffer[WD_BUFFER_SIZE];
 
-typedef struct {
+using statevar = struct {
     QByteArray result;
     QByteArray ignored_dir;
-} statevar;
+};
 
 /* remove the complete test dir */
 static int wipe_testdir()