Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

头文件语境功能(Header Context) #545

Open
royqh1979 opened this issue Dec 19, 2024 · 0 comments
Open

头文件语境功能(Header Context) #545

royqh1979 opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@royqh1979
Copy link
Owner

在编辑器中编辑/查看头文件时,可以为其指定某个c/c++文件作为该头文件的语境。(语境文件需#include此头文件)

代码分析器通过分析语境文件来为头文件提供必要的语境。

暂定:

  1. 头文件是通过 “跳转到定义/实现” 功能打开的,则语境文件直接定为转义前所在的文件(如果转义前所在文件为头文件,则使用它的语境文件)
  2. 如手动选取,只能从已经打开的c/c++文件中选取

关联问题:
如果该功能成熟,是否可以默认每次切换编辑器时自动初始化代码分析器,以提供更准确的分析结果。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant