apigear-io / template-cpp14

C++14 technology template
https://apigear.io/template-cpp14/docs/intro
MIT License
0 stars 1 forks source link

[BUG]: naming convection - generating names like keywords #103

Closed dorotaphanSiili closed 8 months ago

dorotaphanSiili commented 1 year ago

Description of the bug

I got error error: expected unqualified-id before 'switch' for interface which had a property switch in examples/appthreadsafe/main.cpp auto switch = someIf->getSwitch()

but the problem is general, we can stumble across it in other places too I'd suggest to add prefixed like l_ for local variables, in for incoming etc.

Second variant of issue issue for generated api, and other features when the property is really "switch", not a "Switch" which was present in VSS code

Steps To Reproduce

1.create an interface with property Switch

  1. generate code with example feautre
  2. try to build in examples/appthreadsafe/main.cpp

Second variant of issue 1.create an interface with property switch

  1. generate code with any feature
  2. try to build api

Additional Information

No response

jryannel commented 11 months ago

See https://github.com/apigear-io/cli/issues/107

dorotaphanSiili commented 10 months ago

first variant solved with https://github.com/apigear-io/template-cpp14/commit/3b23f1030ca7a11e346d80da0d985a30a6fadb2e second variant solved with https://github.com/apigear-io/cli/issues/107 What is left is to add a keyword to a goldenmaster

dorotaphanSiili commented 8 months ago

the missing part is moved to issue https://github.com/apigear-io/private-issue-tracker/issues/2