Skip to content

Commit d68f543

Browse files
authored
[clang-tidy] Remove 'clang-analyzer-*' checks from default checks. (llvm#157306)
Closes llvm#146482.
1 parent 4497c53 commit d68f543

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
@@ -58,6 +58,10 @@ Potentially Breaking Changes
5858
:program:`clang-tidy-20`. Users should use the check-specific options of the
5959
same name instead.
6060

61+
- Removed `clang-analyzer-*` checks from default checks in :program:`clang-tidy`.
62+
From now on, users should specify explicitly that they want CSA checks to run
63+
in :program:`clang-tidy` via `clang-analyzer-*`.
64+
6165
- Renamed a few :program:`clang-tidy` check options, as they
6266
were misspelled:
6367

@@ -184,6 +188,10 @@ Improvements to clang-tidy
184188
scripts by adding the `-hide-progress` option to suppress progress and
185189
informational messages.
186190

191+
- Removed `clang-analyzer-*` check from default checks in :program:`clang-tidy`.
192+
From now on, users should specify explicitly that they want CSA checks to run
193+
in :program:`clang-tidy`.
194+
187195
- Deprecated the :program:`clang-tidy` ``zircon`` module. All checks have been
188196
moved to the ``fuchsia`` module instead. The ``zircon`` module will be removed
189197
in the 24th release.

0 commit comments

Comments
 (0)