Skip to content

Make generated file use valid C++ identifiers #31

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mgeplf
Copy link
Contributor

@mgeplf mgeplf commented Jun 28, 2023

  • identifiers with a double underscore anywhere;
  • identifiers that begin with an underscore followed by an uppercase letter;
  • in the global namespace, identifiers that begin with an underscore.
  • clang w/ -Weverything is including -Wreserved-id-macro, which fails with the current macro naming scheme.

  • cleaned up tests a bit

@mgeplf mgeplf force-pushed the no-reserved branch 2 times, most recently from 2d7f457 to 1c27928 Compare June 28, 2023 11:43
* according to https://en.cppreference.com/w/cpp/language/identifiers
    * identifiers with a double underscore anywhere;
    * identifiers that begin with an underscore followed by an uppercase letter;
    * in the global namespace, identifiers that begin with an underscore.
* clang w/ `-Weverything` is including `-Wreserved-id-macro`, which
  fails with the current macro naming scheme.

* cleaned up tests a bit
@mgeplf
Copy link
Contributor Author

mgeplf commented Jun 28, 2023

Test appear to be failing w/ clang>=15.0.7, but work with clang<=14.0.6.

@mgeplf
Copy link
Contributor Author

mgeplf commented Jun 28, 2023

Test appear to be failing w/ clang>=15.0.7, but work with clang<=14.0.6.

I tried locally, and with llvm-16 then the python clang==16.0.1.1works, so to not have to pinclang`, updated library versions would need to be installed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant