Created attachment 21424
minimized clang format files and source code examples
Clang toggles between two different formattings in some special cases.
This makes it impossible to use because there is no "correct" formatted code
any more.
example toggle1:
< int maxH = ftoi((float)((aaaaaaaaaaa - iiiiiiiiiiiiiiiiii)
< / h)); // iiiiiiiiiiiiii llll iiiii
aa.aa.aaaa aaaa iiiii pppp-1111
---
> int maxH =
> ftoi((float)((aaaaaaaaaaa - iiiiiiiiiiiiiiiiii)
> / h)); // iiiiiiiiiiiiii llll iiiii aa.aa.aaaa aaaa
iiiii pppp-1111
I could not find one specific example which explains all the problems, so I
have attached 4.
My first Idea was that tabs are the only problem but then I discovered example
4, without any tabs.
I hope the examples will help to find the bug.
OS: Windows 10
clang-format version: 7.0.1
report.zip
(2220 bytes, application/x-zip-compressed)