From e19bf2e40b79b5f65de91d566e675b560620517e Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Wed, 18 Oct 2023 09:34:21 +0200 Subject: [PATCH] [clangd] Disable crashy unchecked-optional-access tidy check Fixes https://github.com/llvm/llvm-project/issues/69369. --- clang-tools-extra/clangd/TidyProvider.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clang-tools-extra/clangd/TidyProvider.cpp b/clang-tools-extra/clangd/TidyProvider.cpp index f101199a20cebf..2a6fba52e29bf4 100644 --- a/clang-tools-extra/clangd/TidyProvider.cpp +++ b/clang-tools-extra/clangd/TidyProvider.cpp @@ -219,6 +219,9 @@ TidyProvider disableUnusableChecks(llvm::ArrayRef 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 -----