league1991 / CodeAtlasVsix

A graph-based code navigation plugin for Visual Studio
https://marketplace.visualstudio.com/items?itemName=YaobinOuyang.CodeAtlas
GNU General Public License v2.0
238 stars 38 forks source link

Support for C/C++ Labels and goto statements. #18

Open ZIGLJO opened 2 years ago

ZIGLJO commented 2 years ago

Feature Request

Name: Support for C/C++ Labels and goto statements.

Description: I would like to be able to map out the labels in a C/C++ program. For example: I'm working through some legacy code and the in the main function there are labels and goto statements embedded into some of the logic. The Logic flow isn't very well documented and so I'm attempting to use your tool to solve that issue.

Potential solutions:

  • Add a customized lexer through the use of a python module pyl to lex out any labels and goto's.
  • Inform users on how to accomplish this if this feature is already implemented.

Postscript

I appreciate the extension you have built thus far, and I look forward to any optimizations and features it may have in the future.

league1991 commented 2 years ago

Sorry, I am afraid I cannot fully implement your request because that requires to change doxygen's analysis feature, which may cause a lot of work.

However, you can actually select one line and then press Alt+G to add a "label". I know that's imperfect, but hopefully it can help a little bit...