From 5260331732772d4f11b2b43e080ef7aafccdee88 Mon Sep 17 00:00:00 2001 From: Robin Seth Ekman Date: Mon, 26 Aug 2024 01:11:37 +0200 Subject: [PATCH] build: enable clang-tidy by default (#4821) (#6989) * build: enable clang-tidy by default (#4821) * Apply suggestions from code review * Disable clang-tidy for Android CI build --- CMakeLists.txt | 2 +- android/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ddf12475..6579ff1cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ option(ENABLE_NLS "Enable native language support" ON) option(INSTALL_DOC "Build/install documentation" ON) option(INSTALL_LIB "Install the library" OFF) tr_auto_option(ENABLE_DEPRECATED "Allow deprecated API use of upstream packages, e.g. GTK" AUTO) -tr_auto_option(RUN_CLANG_TIDY "Run clang-tidy on the code" OFF) +tr_auto_option(RUN_CLANG_TIDY "Run clang-tidy on the code" AUTO) tr_auto_option(USE_SYSTEM_EVENT2 "Use system event2 library" AUTO) tr_auto_option(USE_SYSTEM_DEFLATE "Use system deflate library" AUTO) tr_auto_option(USE_SYSTEM_DHT "Use system dht library" AUTO) diff --git a/android/build.gradle b/android/build.gradle index 04fd2e2ca..76212c303 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -32,7 +32,7 @@ android { externalNativeBuild { cmake { abiFilters "arm64-v8a" - arguments "-DVCPKG_TARGET_ANDROID=ON", "-DWITH_CRYPTO=openssl" + arguments "-DVCPKG_TARGET_ANDROID=ON", "-DWITH_CRYPTO=openssl", "-DRUN_CLANG_TIDY=OFF" } } }