thunder
thunder copied to clipboard
Code Editor: C++ class map
Is your feature request related to a problem? Please describe.
It would be nice to have a class view of the c++ project code.
Describe the solution you'd like
Need to implement a CppClassViewModel to map all classes in project and ability to navigate between of them using double-click.
Describe alternatives you've considered
N/A
Additional context
clang has required functionality probably need to use clanglib for this https://eli.thegreenplace.net/2012/12/17/dumping-a-c-objects-memory-layout-with-clang/
Если рассматривать как это делается VS Code, там используется clangd
- https://clangd.llvm.org/guides/remote-index
- https://github.com/clangd/clangd
- https://manpages.debian.org/experimental/clangd-14/clangd-14.1.en.html
В качестве основного входного параметра используется compile_commands.json
Сгенерировать её можно:
- CMAKE: https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html
- Что угодно:bear https://github.com/rizsotto/Bear Доступно в большинстве репозиториев.