How to set spacing around the '&' on different situation (bit-wise-add and address-of)? #3995
Unanswered
xiangfeima
asked this question in
Q&A
Replies: 1 comment
-
please create an "Issue" with source code, what you expected to get and config file |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
In C/C++, I want to have space around the bit-wise add operator '&',
meanwhile no space around address-of '&' (say between type-name and var when casting),
it would be something like
bit-wise add:
(a & b)
address of when casting:
(uint8_t*)&c
would you help to point which option or combination in cfg can do so?
I tried Uncrustify-0.72.0_f with
sp_addr = remove
andsp_arith = add
but I always getbit-wise add:
(a & b)
address of:
(uint8_t*) & c
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions