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

[clang-format]Compile switch follows code indentation? #92488

Open
zeerd opened this issue May 17, 2024 · 0 comments
Open

[clang-format]Compile switch follows code indentation? #92488

zeerd opened this issue May 17, 2024 · 0 comments

Comments

@zeerd
Copy link

zeerd commented May 17, 2024

I'd like the code to be things like below for more readable :

void foo(void)
{
    #ifdef LINUX
        linux_foo();
    #elif QNX
        qnx_foo();
    #elif ANDROID
        android_foo();
    #else
        #error "Not implemented"
    #endif
}

But now, it's like(this looks very messy) :

void foo(void)
{
#ifdef LINUX
    linux_foo();
#elif QNX
    qnx_foo();
#elif ANDROID
    android_foo();
#else
#error "Not implemented"
#endif
}

I did not find any option to make this . Am I missing something or it real not supported?

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

1 participant