Skip to content

Commit

Permalink
[clangd] Disable crashy unchecked-optional-access tidy check (#69427)
Browse files Browse the repository at this point in the history
Fixes llvm/llvm-project#69369.
Fixes clangd/clangd#1700.

(cherry picked from commit e63ab13c82e78f65baca48d5b5e4f6ea8d55dbc7)
  • Loading branch information
kadircet authored and llvmbot committed Oct 19, 2023
1 parent 888437e commit ac60acc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clang-tools-extra/clangd/TidyProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef<std::string> ExtraBadChecks) {
"-bugprone-use-after-move",
// Alias for bugprone-use-after-move.
"-hicpp-invalid-access-moved",
// Check uses dataflow analysis, which might hang/crash unexpectedly on
// incomplete code.
"-bugprone-unchecked-optional-access",

// ----- Performance problems -----

Expand Down

0 comments on commit ac60acc

Please sign in to comment.