-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go to declaration #9678
Comments
Hi @Bestie123 . Does this issue still occur for you with 1.11.5 or 1.12.1 ? We recently addressed a crash issue specifically with llvm-project, that could have led to this behavior. |
Hi @Colengms . version 1.12.1. now the navigation is displayed correctly. it is not yet possible to generate code and compare it more thoroughly with the navigation display in woboq, but in general it seems that everything works correctly |
So we can close this issue? |
@sean-mcmanus . yes, you can close |
@sean-mcmanus I made a mistake, the problem still occurs, I didn't have time to report it, I can record a video with a demonstration of the problem, also, if necessary, I can provide an archive with the analyzed llvmproject code and an archive with the generated woboq documentation for the first archive. Should I open a new question or can I write here? |
You can add more info to this issue. |
The file is zipped using the 7-zip archiver without a password, then encrypted using the encrypto program. Encryption password: 12345 You can also download the source code on github: https://github.com/llvm/llvm-project/releases/tag/llvmorg-14.0.6
To use the documentation, you must place the unpacked folders on a web server (for example, on a local one).
AT 1:20 Compared to the screenshot from Visual Studio, the definition of CodegenOptions.def is missing At 1:49 Exception initialization or access occurs and then at 1:53 there is a new list of definitions that contains one definition, and the old ones disappear somewhere At 1:59 when calling the "go to declaration" call in development at 2:08 now it appears that no matches were found, but if you accidentally open the CodegenOptions.def file, then at 3:14 the call to "go to declaration" will display at 3 :28 list of all matches, but there will be no matches that were at 1:20 compileCommands and databaseFilename in c_cpp_properties.json can be omitted. Code example { |
I also noticed another problem. It is probably a separate error
Screenshot 4 shows that after opening the .cpp file, if you right-click "CODEGENOPT" and select "Find all References" from the drop-down list, then Visual Studio has a similar issue. The .def file is parsed normally, but then something happens and nothing helps to eliminate parsing errors. Repairing Visual Studio doesn't help, and neither does restarting the computer. |
FYI, if you're able to repro the bug in VS 2022, then it's preferably that you file a bug directly on the VS developer community site, since it's mostly caused by shared code...otherwise, we have to do that ourselves, and it might take us longer to get around to doing that. |
@sean-mcmanus , I submitted a bug report to the Visual Studio developers as you suggested. Here is a link that might be helpful: |
@Bestie123 Okay, thanks, I've changed this issue to Tracking the VS issue. |
It looks like they fixed it with VS 17.6, but we don't have the fix, although we may in the future. |
@sean-mcmanus, |
Environment
the display of all parameter declarations disappears
directory used as a project:
https://github.com/llvm/llvm-project
Bug Summary and Steps to Reproduce
directory used as a project:
https://github.com/llvm/llvm-project
the path to the file to open:
G:\llvm-project-main\llvm-project-main\clang\include\clang\Basic\CodeGenOptions.h
at the beginning of the project opening, if you hover the cursor over "setDebugInfo", all definitions of this parameter are shown
if you right-click on "CODEGENOPT" and select "go to declaration", then all the places where this parameter is declared will be displayed in the list
next comes some kind of file processing and when you hover the cursor over "CODEGENOPT", the display of the remaining parameter declarations disappears
also, the "go to declaration" function stops working for the "CODEGENOPT" parameter.
for the "ENUM_CODEGENOPT" parameter, the "go to declaration" function works, but other declarations of this parameter in this file stop being displayed.
the display of all ads disappears after the output of this debugging information to the console
Expected behavior
it is expected that all parameter declarations will be displayed when the mouse cursor hovers over it
it is expected that when you right-click on the parameter and select the "go to declaration" option, all the places where this parameter is defined will be displayed
the expected behavior when hovering the cursor can be viewed in the wboq documentation generator
https://blog.weghos.com/llvm/llvm/clang/include/clang/Frontend/CodeGenOptions.h.html#34
Code sample and Logs
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: