Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Formatter Removing Preprocessor Conditionals
Formatter Removing Preprocessor Conditionals [message #725467] Wed, 14 September 2011 20:58
cdt-formatter is currently offline cdt-formatterFriend
Messages: 1
Registered: September 2011
Junior Member
Hello,

Apologies if this has been answered elsewhere. It didn't turn up in my searches.

I have some code that uses preprocessor conditionals. I have found that if I use the automatic source formatter on this code, It will remove the preprocessor statements and leave only some of the c code within them, e.g.:

#ifdef _WIN32
foo();
#else
bar();
#endif

will become:

foo();

Is this something I can work around, or a known bug? I would like to be able to use the formatter to tidy up my code without being worried about this problem.

Thanks!
Previous Topic:when is the Syntax coloring be detemined ? (modified)
Next Topic:Setting environment variables to build linux kernel.
Goto Forum:
  


Current Time: Thu Apr 25 04:02:47 GMT 2024

Powered by FUDForum. Page generated in 0.03509 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top