dawnbeen / c_formatter_42

C language formatter for 42 norminette
GNU General Public License v3.0
176 stars 18 forks source link

Condition aligned with spaces #2

Closed cacharle closed 4 years ago

cacharle commented 4 years ago

clang-format align the condition in loops and conditional statements with tab first then space to match the openning (

while (input != NULL && input->tag & TAG_IS_STR &&
        input->tag & TAG_STICK &&
        input->next != NULL && input->next->tag & TAG_IS_STR)

becomes:

while (input != NULL && input->tag & TAG_IS_STR && input->tag & TAG_STICK &&
       input->next != NULL && input->next->tag & TAG_IS_STR)