Book a Demo

Author Topic: Comment reformatting while doing reverse code eng.  (Read 2934 times)

SvenS

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Comment reformatting while doing reverse code eng.
« on: August 28, 2012, 06:33:47 pm »
Hi,
we just came around to use EA as a tool for documentation. We use it in reverse direction (code Engineering -> Import Source Directory) for C++ code. In our project, we make heavily use of DoxyGen, which is very useful for a per class / method documentation (especially the reversing engine is much more error prone than the one of EA). So our comments look like this:

/**
* This is a cool demo class which enables us to do some nice stuff.
* Here we will continue with the description and we may also have
* to be conformant to the following standards:
* - A3980
* - A3955
*
* Synopsis for usage:
* Democlass class;
* class.feedData();
* class.printme();
*/

Now after reverse engineering, I have the following text inside the note field:
This is a cool demo class which enables us to do some nice stuff. Here we will continue with the description and we may also have to be conformant to the following standards: - A3980 - A3955 Synopsis for usage: Democlass class; class.feedData(); class.printme();

So every whitespace is swallowed and now the comment looks very ugly. This is now really useless for our documentation! For doc generation, we use the very cool method to traverse the packages with JScript and generate LaTeX code from it in a very simple way.  Inside the JScript I can convert formatting, but only if the whitespaces and everything else is kept as is.

So is there a possiblity to import the comments in RAW format? We can do the formatings by a script very easily, but only if we have all data available.

Kind regards,
    Sven

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Comment reformatting while doing reverse code
« Reply #1 on: August 29, 2012, 09:28:50 am »
Tools | Options | Souce Code engineering | Remove hard breaks from comments on import

SvenS

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Comment reformatting while doing reverse code
« Reply #2 on: August 29, 2012, 06:17:02 pm »
Tanks, now the line feeds works as expected. I think I have missed this option during my search.

Is there a similar option for the indents? Now all leading spaces and tabs got removed, so a code example looks very flat.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Comment reformatting while doing reverse code
« Reply #3 on: August 30, 2012, 08:33:23 am »
No, there isn't.