[llvm-bugs] [Bug 35278] New: Formatter breaks code while sorting includes
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Nov 11 08:17:40 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: oleksii.vilchanskyi at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171111/2cd69cbc/attachment.html>
More information about the llvm-bugs
mailing list