Sign in to follow this  

Changing An Engines Coding Style

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Everyone, I'm using an old C++ engine and it has a very weird style in that the class names are in capital letters and the variable names don't use a consistent style. So I was wondering are there any programs out there that can search through all of the source code and reformat it so it uses Hungarian notation or something similar?

Share this post


Link to post
Share on other sites
Quote:
it has a very weird style

Quote:
so it uses Hungarian notation


I can safely say that any project not using Hungarian uses good style.

And no, there is no such tool. Hungarian notation, at very least, needs to know the type, but if you're lucky, the semantic context in which a variable appears. There is no tool that could do that - this is the very reason Hungarian was developed - to add information that exists at logic level, but not in code.

The only thing you could do is doing search and replace on all files.

Share this post


Link to post
Share on other sites

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this