Open Quuxplusone opened 7 years ago
Still reproducible with
clang-format version 8.0.1 (tags/RELEASE_801/final 366581)
Confirmed as of 10.0
$ clang-format include.cpp
#include <stdint.h> /* long
#include <stdio.h>
comment */
clang-format version 10.0.0 (https://github.com/llvm/llvm-project.git
b03a7c29085905c15746a725382e7cb327e08771)
Formatter breaks code while sorting includes.
Very simple repro:
=== foo.c:
clang-format foo.c
(so, the default config) reformats it to:clang-format --version
: clang-format version 6.0.0 (trunk 317949)