Jump to content
  • Advertisement
Sign in to follow this  
Davaris1

Changing An Engines Coding Style

This topic is 3876 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!