davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
197 stars 58 forks source link

no way to access enum constants #108

Closed davidmalcolm closed 7 years ago

davidmalcolm commented 7 years ago

I wanted to be able to access enum constants, but despite the existence of gcc.Constant, I couldn't find any way to do so. EnumeralType doesn't have any relevant members, and these constants aren't passed to the PLUGIN_FINISH_DECL callback.

davidmalcolm commented 7 years ago

Imported from trac issue 67. Created by tromey on 2015-11-18T23:28:15, last modified: 2015-12-28T17:36:49

davidmalcolm commented 7 years ago

Trac comment by tromey on 2015-11-19 14:55:21:

See https://github.com/davidmalcolm/gcc-python-plugin/pull/24

davidmalcolm commented 7 years ago

Trac comment by tromey on 2015-12-28 17:36:49:

This was fixed when the PR was merged.