From 534a01ffbe47efe528e3ef2f509aefb9cb16119a Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 2 Oct 2025 23:25:16 +0300 Subject: [PATCH] [clang-tidy] Remove 'clang-analyzer-*' checks from default checks --- clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp | 3 +-- clang-tools-extra/docs/ReleaseNotes.rst | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp index 64157f530b8c0..c72185feba5c5 100644 --- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp +++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp @@ -104,8 +104,7 @@ Configuration files: )"); const char DefaultChecks[] = // Enable these checks by default: - "clang-diagnostic-*," // * compiler diagnostics - "clang-analyzer-*"; // * Static Analyzer checks + "clang-diagnostic-*"; // * compiler diagnostics static cl::opt Checks("checks", desc(R"( Comma-separated list of globs with optional '-' diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index 62e1987377989..78d80867fb103 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -54,6 +54,10 @@ Potentially Breaking Changes :program:`clang-tidy-20`. Users should use the check-specific options of the same name instead. +- Removed `clang-analyzer-*` check from default checks in :program:`clang-tidy`. + From now on, users should specify explicitly that they want CSA checks to run + in :program:`clang-tidy`. + - Renamed :program:`clang-tidy`'s option name of check :doc:`bugprone-easily-swappable-parameters ` from @@ -158,6 +162,10 @@ Improvements to clang-tidy scripts by adding the `-hide-progress` option to suppress progress and informational messages. +- Removed `clang-analyzer-*` check from default checks in :program:`clang-tidy`. + From now on, users should specify explicitly that they want CSA checks to run + in :program:`clang-tidy`. + New checks ^^^^^^^^^^