[clang-tools-extra] [clangd] Disable crashy unchecked-optional-access tidy check (PR #69427)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 18 00:36:08 PDT 2023
https://github.com/kadircet created https://github.com/llvm/llvm-project/pull/69427
Fixes https://github.com/llvm/llvm-project/issues/69369.
>From e19bf2e40b79b5f65de91d566e675b560620517e Mon Sep 17 00:00:00 2001
From: Kadir Cetinkaya <kadircet at google.com>
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 f101199a20cebf9..2a6fba52e29bf43 100644
--- a/clang-tools-extra/clangd/TidyProvider.cpp
+++ b/clang-tools-extra/clangd/TidyProvider.cpp
@@ -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 -----
More information about the cfe-commits
mailing list