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 #69369.
Fixes clangd/clangd#1700.

(cherry picked from commit e63ab13)
  • Loading branch information
kadircet authored and tru committed Oct 25, 2023
1 parent 7f790f9 commit afbe354
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 afbe354

Please sign in to comment.