Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » eclipse code style on comments
eclipse code style on comments [message #896878] Fri, 20 July 2012 05:09
doc Missing name is currently offline doc Missing name
Messages: 11
Registered: August 2010
Junior Member
Hi,
I have some problems on eclipse code style.
In my fucntion I did

U32 main( VOID )
{
/* set vector table base address */
SCB->VTOR = (unsigned int)__segment_begin( ".intvec" );

/* Set wait states for read access of flash memory */
FLASH0->FCON = (unsigned int)6 | ( FLASH0->FCON & ~FLASH_FCON_WSPFLASH_Msk );

..

when the I apply the style I get

U32 main( VOID )
{
/* set vector table base address */SCB->VTOR = (unsigned int)__segment_begin( ".intvec" );

/* Set wait states for read access of flash memory */FLASH0->FCON = (unsigned int)6 | ( FLASH0->FCON & ~FLASH_FCON_WSPFLASH_Msk ); /* 7 clk */

where my code is moved just after the comments.
I played around with the style preferences but I was not able to fix it.
Can anyone help me?
Thank you very much
michele
Previous Topic:Building a CDT based editor
Next Topic:Eclipse Juno CDT, Windows 7 64-bits and Visual Studio 2008 won't work
Goto Forum:
  


Current Time: Sat Aug 30 06:30:05 EDT 2014

Powered by FUDForum. Page generated in 0.18711 seconds