NullReferenceException when parsing instantiation of a previously partially specialised template
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
调研方向
从 CppModelBuilder.GetOrCreateDeclarationContainer 开始,并复现提供的 C++ 模板特化代码片段。跟踪在创建实例化容器之前如何处理 ClassTemplatePartialSpecialization 游标;当代码片段能够在不出现 NullReferenceException 的情况下完成解析,并且声明容器成功创建时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Parsing the following code causes a NullReferenceException:
template<typename A, typename B>
struct foo {};
template<typename B>
struct foo<int, B> {};
foo<int, int> foobar;
CppModelBuilder.GetOrCreateDeclarationContainer doesn't handle ClassTemplatePartialSpecialization cursors. This causes it to return null, which later causes the exception when trying to create a declaration container for the instantiation.
- 主要语言
- C#
- 星标
- 623
- 派生
- 79
- 平均合并
- 2 天 2 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xoofx/CppAst.NET 的其他 Issue
-
CppContainerList throws "The item belongs already to a container" when parsing VTK 9.5 headers Body未关闭
难度 3/5 1-2 天 新手友好度 55/100
xoofx/CppAst.NET#122 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
xoofx/CppAst.NET#117 ·
-
question
难度 5/5 一周以上 新手友好度 25/100
xoofx/CppAst.NET#115 · 3 条评论 ·
-
question
难度 4/5 3-5 天 新手友好度 38/100
xoofx/CppAst.NET#95 · 4 条评论 ·
-
bug PR Welcome
难度 2/5 1-3 小时 新手友好度 55/100
xoofx/CppAst.NET#73 ·
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
microsoft/vscode-docs#10499 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
python triage
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/semantic-kernel#14615 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
vzeol/DeployCraft#125 ·
维护者通常 1 天内回复