[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:56:59 PDT 2023


================
@@ -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",
----------------
kadircet wrote:

FWIW, we had this check enabled internally before it was upstream'd and experience on incomplete code has always been problematic. Hence I don't see much point in letting people run this on an incomplete AST. I believe the recommended workflow should be through running clang-tidy binary directly. I'll add some comments on those threads too.

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


More information about the cfe-commits mailing list