[clang-tools-extra] [clangd] Disable crashy unchecked-optional-access tidy check (PR #69427)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 00:37:10 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clangd

Author: kadir çetinkaya (kadircet)

<details>
<summary>Changes</summary>

Fixes https://github.com/llvm/llvm-project/issues/69369.


---
Full diff: https://github.com/llvm/llvm-project/pull/69427.diff


1 Files Affected:

- (modified) clang-tools-extra/clangd/TidyProvider.cpp (+3) 


``````````diff
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 -----
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/69427


More information about the cfe-commits mailing list