tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
565 stars 97 forks source link

Namespaces handling improvements. Share methods between the same name scopes. Do not lookup upper scope for qualified name. #263

Open TIMONz1535 opened 5 months ago

TIMONz1535 commented 5 months ago

I have no idea what I'm doing, I have paws, but I fixed it.

Known issues: I don't touch anything with struct, enum scopes. Probably it has similar issues. Don't use nested namespaces with the same name, like namespace Shading { namespace Shading {} } it doesn't work properly.

example

namespace Shading { void foo(int x) {} }
namespace Shading { void foo() {} }
namespace Culling { namespace Decals { void foo(int x) {} } }
namespace Culling { namespace Decals { void foo() {} } }