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
{{ message }}
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
After indexing chosse in the sourcetrail graph Functions --> test_superclasscalls_withpointers. (The same issue happens on the graph for test_superclasscalls - The function does the same. The only difference is that the ..._withpointers function creates objects on the heap with new and calls with dereferencing operator -> after the pointer variable, instead of holding the objects on the stack and calling the methods with . operator.)
--> Issue --> The calls to the instance methods oldSpaceship->prepareForWarp() and newSpaceship->prepareForWarp() are not shown in the graph. Only the constructor calls are shown there. The destructor calls are also not shown (the destructors are called in the lines delete oldSpaceship; and delete newSpaceship;). On hovering over the code oldSpaceship->prepareForWarp() and newSpaceship->prepareForWarp() in the right side source window, there is no effect, like it was not indexed.
The text was updated successfully, but these errors were encountered:
Thanks for providing the sample code. I tried to reproduce the issue. The calls to prepareForWarp are shown. So having those ones missing in your graph is likely caused by the fatal indexing error that you still have. Please fix that issue and the graph should be fine.
The calls to the destructor are missing for me as well. Usually destructors of objects on the stack are called implicitly by the objects going out of scope. So there is not real source location for that. But I think you are right: When there is an explicit "call" to a destructor, we should record and show it!
Thank you for your help. You are right, exactly like in the other open issue from me, after fixing the fatal issue the calls to the methods are shown.
I will try to solve this in my productive environment also and retry. If I have other issues there I will contact you.
The destructor calls are still missing.
In my opinion sourcetrail could also record implicit calls to the destructor because it is already recording declarations of variables and it already knows the context of variables. Please if you add the feature record the implicit calls as well.
Versions
Platform version: Windows 10 Pro Update 1903
Sourcetrail version: 2019.4.61 - 64bit Windows, database version 25
Description of the problem
Method calls to instance methods are not recognized by sourcetrail.
Steps to reproduce the problem:
Functions
-->test_superclasscalls_withpointers
. (The same issue happens on the graph fortest_superclasscalls
- The function does the same. The only difference is that the..._withpointers
function creates objects on the heap withnew
and calls with dereferencing operator->
after the pointer variable, instead of holding the objects on the stack and calling the methods with.
operator.)oldSpaceship->prepareForWarp()
andnewSpaceship->prepareForWarp()
are not shown in the graph. Only the constructor calls are shown there. The destructor calls are also not shown (the destructors are called in the linesdelete oldSpaceship;
anddelete newSpaceship;
). On hovering over the codeoldSpaceship->prepareForWarp()
andnewSpaceship->prepareForWarp()
in the right side source window, there is no effect, like it was not indexed.The text was updated successfully, but these errors were encountered: