[llvm-branch-commits] [clang-tools-extra] afbe354 - [clangd] Disable crashy unchecked-optional-access tidy check (#69427)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 25 05:04:57 PDT 2023
Author: kadir çetinkaya
Date: 2023-10-25T14:02:20+02:00
New Revision: afbe3549af4d2e9c2746ea86c6a74708729c7b69
URL: https://github.com/llvm/llvm-project/commit/afbe3549af4d2e9c2746ea86c6a74708729c7b69
DIFF: https://github.com/llvm/llvm-project/commit/afbe3549af4d2e9c2746ea86c6a74708729c7b69.diff
LOG: [clangd] Disable crashy unchecked-optional-access tidy check (#69427)
Fixes https://github.com/llvm/llvm-project/issues/69369.
Fixes https://github.com/clangd/clangd/issues/1700.
(cherry picked from commit e63ab13c82e78f65baca48d5b5e4f6ea8d55dbc7)
Added:
Modified:
clang-tools-extra/clangd/TidyProvider.cpp
Removed:
################################################################################
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 llvm-branch-commits
mailing list