Eclipse CDT code formatter with scientfic numbers (e notation) -


is there way keep eclipse code formatter modifying statement scientific number this

  return 1.0e-2; 

into

  return 1.0 e-2; 

?

update: seems if code before these lines causes problems. i'll try figure out more, may take while. however, built-in formatter settings work.

version used: mars 4.5.1 / cdt 8.8 custom format settings.

update: ok, after trial , error found several scenarios occurs hard figure out problem is. several things (in code before numbers) seem have impact are:

  • template class member function
  • if without brackets (followed if code block)
  • very long statements
  • line ends ;;

update: think if part:

if (something)   if (andthis)   {       (...)       {...}     } 

was main cause of problems. added brackets , error disappeared. if of things mentioned before not present, missing brackets not cause problems.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -