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

Colon in macro definition in guarded header parse failure #4224

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

Colon in macro definition in guarded header parse failure #4224

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:

#ifndef header_guard
#define header_guard

#define COLON :

#endif // header_guard

Taking away the header guard makes it parse properly.

Command and output:

% uncrustify -c .uncrustify.cfg --replace define-colon.cxx
do_source_file: Parsing: define-colon.cxx as language CPP
combine_labels(429): define-colon.cxx:4 unexpected colon in col 15 n-parent=NONE c-parent=NONE l=1 bl=
% 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