Skip to content

Commit ac60acc

Browse files
kadircetllvmbot
authored andcommitted
[clangd] Disable crashy unchecked-optional-access tidy check (#69427)
Fixes llvm/llvm-project#69369. Fixes clangd/clangd#1700. (cherry picked from commit e63ab13c82e78f65baca48d5b5e4f6ea8d55dbc7)
1 parent 888437e commit ac60acc

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)