Skip to content

Commit e19bf2e

Browse files
committed
[clangd] Disable crashy unchecked-optional-access tidy check
Fixes llvm#69369.
1 parent e93bddb commit e19bf2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/clangd/TidyProvider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
219219
"-bugprone-use-after-move",
220220
// Alias for bugprone-use-after-move.
221221
"-hicpp-invalid-access-moved",
222+
// Check uses dataflow analysis, which might hang/crash unexpectedly on
223+
// incomplete code.
224+
"-bugprone-unchecked-optional-access",
222225

223226
// ----- Performance problems -----
224227

0 commit comments

Comments
 (0)