Book a Demo

Author Topic: Synchronizing notes only  (Read 2444 times)

mxp

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Synchronizing notes only
« on: September 12, 2013, 08:21:51 pm »
Hello,

Is there a possibility to force EA to sync only notes?
It turns out that it breaks my code during sync and comments are what I only want...

For example I have following:
        template<typename T>
        class VD<std::vector<T> >
        {
        public:
            // type definitions
            typedef typename std::vector<T>::const_iterator         const_iterator;
            typedef typename std::vector<T>::const_reference        const_reference;
            typedef typename std::vector<T>::size_type              size_type;
            typedef T                                               value_type;
            // ---
}

And for this for example typename keyword is lost after sync !!
Sometimes I had also >> instead of > >  in templates, what also causes dozens of errors.

Because of that I want comments only. Declarations must stay as they are. Is it possible?

Best regards,
Max.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Synchronizing notes only
« Reply #1 on: September 13, 2013, 07:15:31 am »
In principle yes (it should work like this if only notes were changed)! I'd say loosing the 'typename' keyword for template parameter dependent typedef's is a bug in EA's standard C++ parser.

You might be able to work around this using user defined stereotypes for these typedef elements (e.g. typedef_T) or adding an appropriate tagged value (e.g. 'typename') and change/customize the code generation templates accordingly.

HTH
Günther
« Last Edit: September 13, 2013, 07:16:02 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/