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

Infinite loop when reformatting a macro #4219

Open
mathstuf opened this issue Feb 2, 2024 · 0 comments
Open

Infinite loop when reformatting a macro #4219

mathstuf opened this issue Feb 2, 2024 · 0 comments

Comments

@mathstuf
Copy link

mathstuf commented Feb 2, 2024

Configuration: https://gist.github.com/mathstuf/d28e774a3f7b3e7f058db1a65b1cf9f3

Source:

#define CREATE_HAS_CHECK( funcname ) \
  template< typename T > \
  class has_##funcname \
  { \
    enum { value = sizeof(test<T>(nullptr)) == sizeof(r1) }; \
  }

(trimmed down from a more comprehensive example hence the dangling r1 reference)

Command: uncrustify -c .uncrustify.cfg -f infinite-loop.h

-p debug.txt was attempted, but as it doesn't seem to ever complete, the file was never created.

% uncrustify -v
Uncrustify-0.78.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants