Macro comment displays instead of function instead of
维护者通常 1 天内回复
@sean-mcmanus 已经在做这个了。
开始于 2026年9月8日。
评估
这个 Issue 还没有评估数据。
描述
Environment
- OS and Version: Windows 11
- VS Code Version: 1.136.1
- C/C++ Extension Version: 1.5.1
Bug Summary and Steps to Reproduce
Bug Summary:
When hovering over function definition, the comments of the macro creating the function name is shown instead of the function's ones.
Steps to reproduce:
Write this code:
// hello
#define deffunc(name) name
int deffunc(funcA)();
int main(){
funcA();
return 0;
}
and hover over funcA. hello is displayed instead of nothing.
I saw this behaviour first in AudioKinetic's SDK, due to there being a ton of macro for function export so I suspect this is a bug.
Configuration and Logs
# c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22621.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
# Diag Log
-------- Diagnostics - 9/5/2026, 10:28:24 PM
Version: 1.33.8
Current Configuration:
{
"name": "Win32",
"includePath": [
"d:/Projects/Temp/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.22621.0",
"compilerPath": "cl.exe",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"compilerPathIsExplicit": true,
"cStandardIsExplicit": true,
"cppStandardIsExplicit": true,
"intelliSenseModeIsExplicit": true,
"recursiveIncludesPriorityIsExplicit": false,
"recursiveIncludesOrderIsExplicit": false,
"compilerPathInCppPropertiesJson": "cl.exe",
"mergeConfigurations": false,
"recursiveIncludes": {},
"browse": {
"limitSymbolsToIncludedHeaders": true
}
}
Additional Tracked Settings:
{
"editorTabSize": 4,
"editorInsertSpaces": true,
"editorAutoClosingBrackets": "languageDefined",
"filesEncoding": "utf8",
"filesAssociations": {},
"filesExclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"filesAutoSaveAfterDelay": false,
"editorInlayHintsEnabled": true,
"editorParameterHintsEnabled": true,
"searchExclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true
},
"workbenchSettingsEditor": "ui"
}
cpptools version (native): 1.33.7.0
Current database path: C:\Users\Khanh\AppData\Local\Microsoft\vscode-cpptools\834ddd22c2e1fcafd4ae772b1bf9f43b\.BROWSE.VC.DB
No active translation units.
Other Extensions
None
Additional context
No response
- 主要语言
- TypeScript
- 星标
- 6.2k
- 派生
- 1.7k
- 平均合并
- 20 小时 38 分钟
- 30 天内合并 PR
- 49
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/vscode-cpptools 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
microsoft/vscode-cpptools#14815 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/vscode-cpptools#14807 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/vscode-cpptools#14806 ·
维护者通常 1 天内回复
-
Feature Request Language Service
难度 5/5 一周以上 新手友好度 25/100
microsoft/vscode-cpptools#14805 · 2 个 reaction ·
维护者通常 1 天内回复
-
erroneous "set but not used" warnings with reference variables可能已有人在做 @Colengms 于 4 天前认领。 未关闭bug fixed Language Service
难度 3/5 1-2 天 新手友好度 68/100
microsoft/vscode-cpptools#14801 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
查看 microsoft/vscode-cpptools 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
📕documentation
难度 2/5 1-3 小时 新手友好度 72/100
db-ux-design-system/core-web#8343 ·
维护者通常 1 天内回复
-
enhancement triage/needs-triage
难度 2/5 1-3 小时 新手友好度 88/100
heygen-com/hyperframes#4944 ·
维护者通常 1 天内回复
-
ai-driven-qa bug claude
难度 2/5 1-3 小时 新手友好度 82/100
linagora/twake-calendar-frontend#1493 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
material-extensions/vscode-material-icon-theme#3610 ·
维护者通常 2 天内回复