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

typedef struct format #7

Closed
iShawnWang opened this issue Aug 21, 2016 · 1 comment
Closed

typedef struct format #7

iShawnWang opened this issue Aug 21, 2016 · 1 comment

Comments

@iShawnWang
Copy link

before format

typedef struct
{
    int magic1;
    int magic2;
    uint32_t operation;
    uint32_t param1;
    uint32_t param2;
    uint32_t payloadLength;
} UdpMsg;

after format

typedef struct
    {
    int magic1;
    int magic2;
    uint32_t operation;
    uint32_t param1;
    uint32_t param2;
    uint32_t payloadLength;
} UdpMsg;

I think { should not be changed in this case , any suggestions ?
:D

@apwelsh
Copy link

apwelsh commented Mar 23, 2017

I noticed clang-format did this to one of my functions too. Just digging into this stuff. hopefully I find the fix for my code.

@haaakon haaakon closed this as completed Oct 21, 2019
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

No branches or pull requests

3 participants