<div dir="ltr">Hi,<br>While I tried to get list of declarations for a .cpp file from the CodeModel, it returns declarations for both class functions and global functions.<br><br>Consider this cpp file:<br>-----------<br>void TestClass::TestFunc(int a, int b)<br>
{<br>}<br><br>void GlobalTestFunction(int a, int b)<br>{<br>}<br>-----------<br><br>It's fine that I get the declaration both declarations but I can't really tell from the CodeModel that "TestFunc" belongs to a class.<br>
What I use to distinguish identifiers relation is by using the QualifiedIdentifier class.<br>For the "TestFunc" function, the .count() returns 1, it doesn't give me the depth for TestClass. <br><br>Is that what is supposed to be or is it a bug? <br>
And if it's not a bug, is there a way to distinguish between? Ofcouse I prefer doing this by using information solely from the CodeModel but any other way to distinguish will be appriciated.<br><br></div>