Mistyped standard attributes should give a warning
还没有人认领这个 Issue。
评估
调研方向
在 C/C++ 扩展中复现报告的、包含 [[falthrough]] 的 C++ switch 示例,并将其与有效的 [[fallthrough]] 属性进行比较。跟踪该扩展现有的标准属性和诊断处理方式;完成标准是错误拼写的属性会产生警告,而不会将有效属性当作错误处理。
由索引模型根据 Issue 内容生成。
描述
Type: Feature Request
I recently typed code similar to this:
switch (rule) {
case EXPRESSION:
/* ... */
[[falthrough]];
default:
}
/* ... */
Where's the error? It's hard to notice, but [[fallthrough]], a statement which tells the compiler not to warn on falling through the bottom of a case, is mistyped as [[falthrough]], without one of the Ls. Technically, this isn't a syntax error, but it should be a warning in VS Code since the statement won't do anything.
Extension version: 1.29.2
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Linux x64 6.8.0-88-generic
Modes:
- 主要语言
- TypeScript
- 星标
- 6.2k
- 派生
- 1.7k
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 58
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/vscode-cpptools 的其他 Issue
-
bug Language Service regression
microsoft/vscode-cpptools#14795 · 1 条评论 · 已指派 1 人 ·
-
bug Language Service parser
microsoft/vscode-cpptools#14794 · 1 条评论 · 已指派 1 人 ·
-
more info needed
microsoft/vscode-cpptools#14793 · 2 条评论 · 已指派 1 人 ·
-
more info needed
难度 4/5 3-5 天 新手友好度 35/100
microsoft/vscode-cpptools#14787 · 1 条评论 · 已指派 1 人 ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries 未关闭bug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 条评论 · 已指派 1 人 ·
查看 microsoft/vscode-cpptools 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 90/100
TanStack/tanstack.com#1293 ·