-
Notifications
You must be signed in to change notification settings - Fork 59
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
Clang format problems #31
Comments
isn't this a duplicate of #12? |
Ah sorry, it is... I didn't see it. |
Well actually it isn't, I think. The solution from #12 to just append a semi colon leads to a warning in clang when |
FWIW, in a project I work on, we just live with the |
Alas,
clang-format
goes rather wild when there are no semicolons present between function declarations, putting them in one line if no empty line is in between, and indenting them when there is.As a workaround, we added the following macro that allows adding a
;
after the signal macro:So now we can write
void signal(bool yay) WS_SIGNAL(signal, yay);
, andclang-format
plays along nicely.I suspect we might not be the only ones who run into this, so maybe there is a place for something like this in verdigris itself?
Maybe there is also a better solution than defining a dummy struct to allow adding the extra
;
?The text was updated successfully, but these errors were encountered: