Book a Demo

Author Topic: Reverse Engineering c++: Unexcepted Sysmbol "  (Read 3299 times)

VenkateswB

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reverse Engineering c++: Unexcepted Sysmbol "
« on: October 30, 2020, 02:04:15 am »
Hi Forum,
I have a line of which is very important "using vac::container::operator""_sv;", when I try to import this line give me error unexcepted error ". I try to define a Lamguage macro but still not sure, If I comment this line everything works fine.

Please let me know how skip or add this line in EA Import.

Thanks & Regards,
Venkateswarlu Borra

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Reverse Engineering c++: Unexcepted Sysmbol "
« Reply #1 on: October 30, 2020, 08:29:14 am »
Looks like we haven't added support for C++11 user defined literals.

The best suggestion I have is to trick the parser into not seeing it. The parser will always go into the first preprocessor branch it doesn't know is false. So something like the following will mean EA will skip over that define without impacting the actual compile.

Code: [Select]
#ifdef _SPARX_HACK
#else
using vac::container::operator""_sv;
#endif

If you want something better, you'll have to make a full report to Sparx Systems and they may be able to patch the grammar to handle that code.


VenkateswB

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Reverse Engineering c++: Unexcepted Sysmbol "
« Reply #2 on: November 11, 2020, 07:24:02 pm »
Hi Eve,

Thank you for the reponse. Yeah the solution worked for me.

But I would like to as if we can get some how the features supported and not supported in c++11, 14 list it would be great

Thanks & Regards,
Venkateswarlu Borra