eval: support for multiple namespacified fallback token lookups, to account for the several possibilities of namespaces & nested namespaces & static class members nested inside of namespaces & namespaces within namespaces within classes within namespaces & wow C++ is very bad; also ui: temporarily disable space-to-click, as it conflicts with typing and this case is not yet well supported

This commit is contained in:
Ryan Fleury
2024-01-25 06:15:28 -08:00
parent 96b0dd0783
commit 66b56789c6
3 changed files with 40 additions and 32 deletions
+13 -12
View File
@@ -1,20 +1,21 @@
#include <fstream>
namespace SomeWeirdNamespace
namespace NS
{
int X = 0;
int Y = 0;
void Foo(void)
static int X = 123;
static int Y = 456;
namespace SubNS
{
X = 123;
Y = 456;
int x = 0;
static int X = 111;
static int Y = 222;
int Foo(int x, int y)
{
int z = x + y + X + Y + NS::X + NS::Y;
return z;
}
}
}
int main()
int main(void)
{
std::fstream temp;
SomeWeirdNamespace::Foo();
int result = NS::SubNS::Foo(5, 6);
return 0;
}