Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

gccutils: get pretty-printing working again #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackrosenthal
Copy link
Contributor

  • Add new function gcc.is_cplusplus to determine if we are
    compiling C++

  • Use gcc.is_cplusplus in gccutils to not iterate over fullname
    when we are not using C++ (resolves RuntimeError: attribute 'fullname' is only available when compiling C++ code #72)

  • Allow accessing gcc.Type.sizeof to raise a TypeError while
    pretty-printing to be silently ignored and not added to attributes

  • Use pp_newline_and_flush instead of pp_newline in
    PyGccPrettyPrinter_as_string when we are using GCC 5.3 or
    later (as this provides the historic functionality relied upon)

* Add new function ``gcc.is_cplusplus`` to determine if we are
  compiling C++

* Use ``gcc.is_cplusplus`` in gccutils to not iterate over fullname
  when we are not using C++ (resolves davidmalcolm#72)

* Allow accessing ``gcc.Type.sizeof`` to raise a TypeError while
  pretty-printing to be silently ignored and not added to attributes

* Use ``pp_newline_and_flush`` instead of ``pp_newline`` in
  ``PyGccPrettyPrinter_as_string`` when we are using GCC 5.3 or
  later (as this provides the historic functionality relied upon)
@jackrosenthal
Copy link
Contributor Author

ping!

@jackrosenthal
Copy link
Contributor Author

Hi, is this project still being mantained? I sent this pull request over two years ago and haven't heard back. Can we merge?

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

Successfully merging this pull request may close these issues.

RuntimeError: attribute 'fullname' is only available when compiling C++ code
1 participant