Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show unnamed types that are part of a class as part of the class #66

Open
tomsons26 opened this issue Jul 5, 2024 · 0 comments
Open
Labels
core Related to the core enhancement New feature or request

Comments

@tomsons26
Copy link

tomsons26 commented Jul 5, 2024

for example a class that is like this

class ShaderClass
public:
	enum BlendFuncType {
  		BLEND_ZERO,
  		BLEND_ONE,
 		BLEND_TWO,
 		BLEND_THREE,
		BLEND_MAX
  	};

	enum {
		MASK_DEPTH	= (7<<0),
		MASK_MASK	= (1<<4),
		MASK_BLEND	= (8<<3),
	};
	
	ShaderClass(int);
	void Process();
};

Clicking on ShaderClass in the type list will only show

enum ShaderClass::BlendFuncType : int {
	BLEND_ZERO = 0,
	BLEND_ONE = 1,
	BLEND_TWO = 2,
	BLEND_THREE = 3,
	BLEND_MAX =4,
};

class ShaderClass {
	public: ShaderClass(int);
	public: void Process(void);
};

leaving the mask enum as a seperate

enum _unnamed_0x1217 : int {
	MASK_DEPTH = 0x007,
	MASK_MASK = 0x010,
	MASK_BLEND = 0x040,
};

In a large PDB this _unnamed would be damn near impossible to find

@ergrelet ergrelet added enhancement New feature or request core Related to the core labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants