[clang-tools-extra] [clangd] Avoid crash on pseudo-destructor selection (PR #195939)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Thu May 7 05:47:32 PDT 2026
================
@@ -665,6 +665,24 @@ TEST(SelectionTest, InjectedClassName) {
EXPECT_FALSE(D->isInjectedClassName());
}
+TEST(SelectionTest, PseudoDestructorMissingTypeInfo) {
+ llvm::StringLiteral Code = R"cpp(
+ /*error-ok*/
----------------
ArcsinX wrote:
As far as the code is valid, we don't need this comment
https://github.com/llvm/llvm-project/pull/195939
More information about the cfe-commits
mailing list