https://bugs.llvm.org/show_bug.cgi?id=37773
Bug ID: 37773
Summary: clang-format breaks code
Product: clang
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Created attachment 20417
--> https://bugs.llvm.org/attachment.cgi?id=20417&action=edit
file before it was formatted
Hi all
I just found out, that clang-format breaks my code in my configuration (I
formatted a previously non-clang-formatted file).
I did not found out which configuration actually triggers the bug. The standard
configurations (WebKit, Google, etc. do not trigger the bug). My configuration
is based on WebKit.
This is a minimal example triggering the bug:
https://github.com/adrianimboden/clang-format-bug-reproducer
It seems that the comment at the end of the function definition somehow
confuses clang-format.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs