Browse Source

Add clang-tidy to setup dependencies

Added clang-tidy to the list of dependencies and included a check for its installation.
Adam Djellouli 1 month ago
parent
commit
61d90bf1e7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      scripts/setup-deps.sh

+ 8 - 0
scripts/setup-deps.sh

@@ -143,6 +143,7 @@ APT_PKGS=(
   git
   git
   pkg-config
   pkg-config
   clang-format
   clang-format
+  clang-tidy
   libgl1-mesa-dev
   libgl1-mesa-dev
   mesa-utils
   mesa-utils
   libglx-mesa0
   libglx-mesa0
@@ -474,6 +475,13 @@ check_tool_versions() {
   else
   else
     warn "Neither pkg-config nor pkgconf found"
     warn "Neither pkg-config nor pkgconf found"
   fi
   fi
+
+  # clang-tidy
+  if command -v clang-tidy >/dev/null 2>&1; then
+    ok "clang-tidy $(clang-tidy --version | head -n1)"
+  else
+    warn "clang-tidy not found — recommended for static analysis"
+  fi
 }
 }
 
 
 # -----------------------------------------------------------------------------
 # -----------------------------------------------------------------------------