Book a Demo

Author Topic: C++ reverse engineering: using keyword parse error  (Read 4140 times)

Dustan Morgan

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
C++ reverse engineering: using keyword parse error
« on: September 09, 2015, 08:50:13 am »
Hi, I'm a new user to Enterprise Architect.  I'm trying to generate a class diagram from C++ code.  However, EA seems to be unable to handle the "using" keyword?  

There was an error parsing blah.cpp  on line 26.  Unexpected symbol: using      

This seems to happen with either usage of the "using" keyword
using namespace X
using myvar = int;

Is there some sort of work-around to get things running?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: C++ reverse engineering: using keyword parse e
« Reply #1 on: September 14, 2015, 09:03:10 am »
I would certainly expect using namespace to work (I've imported code containing that many times.) I'm not so sure about the type aliasing usage. (At least I think that's what you're trying to refer to, myvar implies you're expecting a variable instead) It was added in C++11

Look above line 26 for the likely problem. eg. Taking your two samples, it would get a parse error on the second using because of the missing semi-colon on the line above. (I realize that's probably not in your code.)