在用 C++ 编写程序时,我遇到了一段代码:
#define _DEPRE_ [[deprecated("This is deprecated")]]
并在函数定义上方使用它来表明该函数已被弃用。但智能感知显示
通过将错误添加到另一个扩展名为 .hint 的文件来纠正错误。为什么会这样?
最佳答案
A hint file contains macros that would otherwise cause regions of code to be skipped by the C++ Browsing Database Parser. When you open a Visual Studio C++ project, the parser analyzes the code in each source file in the project and builds a database with information about every identifier. The IDE uses that information to support code browsing features.
有关更多详细信息,我建议您可以引用文档:Hint Files
关于c++ - Visual Studio 中的 .hint 文件是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61318783/