Open Muzza opened 2 months ago
I've been able to create a full example now. There is a visual studio project in the attached zip file. ProjectB.cpp is where the problem is.
It comes down to this: Project A has a struct with namespaces NS::Thing Project B has a struct with namespaces NS::ProjectB::Thing
Project B does not include any files from Project A, and so does not know about NS::Thing But when Project B references NS::ProjectB::Thing, 10x gives autocomplete and syntax highlighting as though it is NS::Thing
In my code, I have multiple projects with the same class names, but under different namespaces. The projects do NOT include each other at all. 10x is sometimes mixing up the namespaces, so if I do autocomplete on a member of ProjectA::MyClass, it will give me options from ProjectB::MyClass. But this only happens in combinations with the casting similar to issue #1502 I've tried for an hour to recreate this in a simple example, but failed. Maybe it is because in my own code, everything is split into Visual Studio libraries, I'm not sure, but I'm posting the code below anyway to see if it can give any hints.
file header3.h
file header.h
file header2.h
file main.cpp