Skip to content

Commit 534a01f

Browse files
committed
[clang-tidy] Remove 'clang-analyzer-*' checks from default checks
1 parent 0ebd433 commit 534a01f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ Configuration files:
104104
)");
105105

106106
const char DefaultChecks[] = // Enable these checks by default:
107-
"clang-diagnostic-*," // * compiler diagnostics
108-
"clang-analyzer-*"; // * Static Analyzer checks
107+
"clang-diagnostic-*"; // * compiler diagnostics
109108

110109
static cl::opt<std::string> Checks("checks", desc(R"(
111110
Comma-separated list of globs with optional '-'

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ Potentially Breaking Changes
5454
:program:`clang-tidy-20`. Users should use the check-specific options of the
5555
same name instead.
5656

57+
- Removed `clang-analyzer-*` check from default checks in :program:`clang-tidy`.
58+
From now on, users should specify explicitly that they want CSA checks to run
59+
in :program:`clang-tidy`.
60+
5761
- Renamed :program:`clang-tidy`'s option name of check
5862
:doc:`bugprone-easily-swappable-parameters
5963
<clang-tidy/checks/bugprone/easily-swappable-parameters>` from
@@ -158,6 +162,10 @@ Improvements to clang-tidy
158162
scripts by adding the `-hide-progress` option to suppress progress and
159163
informational messages.
160164

165+
- Removed `clang-analyzer-*` check from default checks in :program:`clang-tidy`.
166+
From now on, users should specify explicitly that they want CSA checks to run
167+
in :program:`clang-tidy`.
168+
161169
New checks
162170
^^^^^^^^^^
163171

0 commit comments

Comments
 (0)