Skip to content

How to set the indent after #define  #105

@irreallich

Description

@irreallich

I read the http://clang.llvm.org/docs/ClangFormatStyleOptions.html and do lots of test , but I don't know how to set the following style:
don't care about the '\', it is correct on my pc ,and I don't know how to make it correct in the markdown.
expect:

#define AUTO_CTL(name)                                                                      \
{                                                                                                              \
     #name, name##_cb                                                                           \
}

now:

#define AUTO_CTL(name)                                                                      \
    {                                                                                                          \
        #name, name##_cb                                                                        \
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions