https://bugs.llvm.org/show_bug.cgi?id=35278
Bug ID: 35278
Summary: Formatter breaks code while sorting includes
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: oleksii.vilchans...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Formatter breaks code while sorting includes.
Very simple repro:
=== foo.c:
```
#include <stdio.h>
#include <stdint.h> /* long
comment */
```
`clang-format foo.c` (so, the default config) reformats it to:
```
#include <stdint.h> /* long
#include <stdio.h>
comment */
```
`clang-format --version`:
clang-format version 6.0.0 (trunk 317949)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs