[clang-tools-extra] [clangd] Fix SIGSEGV crash when receiving a textDocument/didOpen request with the URI pointing to a directory (PR #177834)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 1 23:38:30 PST 2026


================
@@ -0,0 +1,26 @@
+# RUN: not --crash clangd -lit-test < %s 2> %t.err
+# RUN: FileCheck %s < %t.err
+# RUN: not --crash clangd -lit-test -sync=0 < %s 2> %t.async.err
----------------
HighCommander4 wrote:

This second run with `-sync=0` can be removed. (`crash-parse.test` was doing it because it was testing the presence of a crash handler which had to be installed separately in sync and async modes.)

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


More information about the cfe-commits mailing list