You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition here in your screenshot is on the same line.
For .cpp file, it is not there because it is actually a different macro, and since it is defined in a .cpp file, it is considered as private to that file. So no need to add it in the index.
This function is a bit inconvenient (when it is not added to indexing) because you will have to mark a link to the .cpp file somewhere if you need to navigate to the file.h, in the file .h the backlink to .cpp will no longer be displayed. This will probably make more sense when exploring a large unknown project with a lot of files and directories. Perhaps it would be possible to add indexing with a note that these are private areas.
Activity
ogoffart commentedon Sep 2, 2022
The definition here in your screenshot is on the same line.
For .cpp file, it is not there because it is actually a different macro, and since it is defined in a .cpp file, it is considered as private to that file. So no need to add it in the index.
Bestie123 commentedon Sep 2, 2022
@ogoffart, thank you, indeed, definitions for files.cpps are private. Probably vs code and visual studio just show all the definitions.
Bestie123 commentedon Sep 2, 2022
This function is a bit inconvenient (when it is not added to indexing) because you will have to mark a link to the .cpp file somewhere if you need to navigate to the file.h, in the file .h the backlink to .cpp will no longer be displayed. This will probably make more sense when exploring a large unknown project with a lot of files and directories. Perhaps it would be possible to add indexing with a note that these are private areas.