Open VzdornovNA88 opened 4 years ago
Thanks for feedback! We need C++ AST to support it. I'm not familiar with C++, so do you know standard way to retrieve it (command, library, etc.)?
Hello,Sorry for my English. I thought that your project is dead and I am glad I made a mistake, so that is really complicated question even though I have been working in C++ for along time cause I don't know anything about an official ready-made solution for this problem but I know a few workarounds, so let's bagine : If I were solving this problem I would start with : https://github.com/llvm/llvm-project.git (https://llvm.org) - it is really important point cause this is universal program infrastructure of modular and reusable compiler and toolchain technologies , here we are interested in the module "CLANG" and "LIBCLANG" (https://github.com/llvm/llvm-project/tree/master/clang , https://clang.llvm.org/docs/Tooling.html) libclang provides API to work with AST of C++. So You can use libclang to create your plugin. Also project "CLANG" has bindings for other languages but unfortunately it is a python and nothing else no bindings. Also there is project emscripten (https://github.com/emscripten-core/emscripten) capable of running an interpreter of python. And also I think that there are a lot of converters python code to JS. So workarounds :
At the moment these are superficial ways that came to my mind. I will think about it.
Hello, Can you add support for C++? Unfortunately, there are no extensions for refactoring for C++ but I think that many people need it.