如何跳转到自己构建的c++函数的实现?
how to jump to the implementation of c++ functions built by myself?
这似乎是一个愚蠢的问题,但却困扰了我很长时间。首先,我自己搭建了leveldb,make install
。然后,我可以使用 #include <leveldb/db.h>
等。但是,我无法使用某些功能 jump to the implementation
。 ps:我正在使用 vscode 和 vscode-cmake 扩展。
例如,我无法跳转到 Open
函数的实现。
我猜,当安装 leveldb 时,你基本上会得到 leveldb 的头文件和二进制库。
您应该尝试使用 FetchContent 模块将 leveldb 源代码直接集成到您的项目中。
参考:https://cmake.org/cmake/help/latest/module/FetchContent.html
这似乎是一个愚蠢的问题,但却困扰了我很长时间。首先,我自己搭建了leveldb,make install
。然后,我可以使用 #include <leveldb/db.h>
等。但是,我无法使用某些功能 jump to the implementation
。 ps:我正在使用 vscode 和 vscode-cmake 扩展。
例如,我无法跳转到 Open
函数的实现。
我猜,当安装 leveldb 时,你基本上会得到 leveldb 的头文件和二进制库。
您应该尝试使用 FetchContent 模块将 leveldb 源代码直接集成到您的项目中。
参考:https://cmake.org/cmake/help/latest/module/FetchContent.html