[cfe-users] [clang-format] Trailing return type

2018-10-31 Thread Mateusz Loskot via cfe-users
Hi, I'm looking for clang-format features to control formatting of functions with trailing return type. I found this related change http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20150601/130293.html What are the options to control the formatting presented in that message? Namely, how

Re: [cfe-users] [clang-format] Trailing return type

2018-11-05 Thread Mateusz Loskot via cfe-users
On Fri, 2 Nov 2018 at 06:11, Owen Pan wrote: > > I think that was a bug fix as the latest clang-format will convert the > "Before" code to "After" even in the absence of the .clang-format > configuration file. Thanks for the hint. I upgraded from 6.0 to 7.0 and it does handle the trailing

Re: [cfe-users] [run-clang-tidy] new replacement overlaps with an existing replacement

2018-12-11 Thread Mateusz Loskot via cfe-users
On Mon, 10 Dec 2018 at 22:25, Jonas Toth wrote: > Am 10.12.18 um 22:14 schrieb Mateusz Loskot via cfe-users: > > > > Why clang-tidy tries to re-fix the typedef with new replacement > > instead of keeping the existing one, the generic one? > > Maybe a bug that does not

Re: [cfe-users] [clang-format] Trailing return type

2019-07-30 Thread Mateusz Loskot via cfe-users
On Wed, 31 Jul 2019 at 00:14, Mateusz Loskot wrote: > On Mon, 5 Nov 2018 at 19:27, Mateusz Loskot wrote: > > On Fri, 2 Nov 2018 at 06:11, Owen Pan wrote: > > > > I noticed one issue which I wonder if it does qualify for a bug report: > > > > TL;TR: arrow followed by typename keyword is not

Re: [cfe-users] [clang-format] Trailing return type

2019-07-30 Thread Mateusz Loskot via cfe-users
On Mon, 5 Nov 2018 at 19:27, Mateusz Loskot wrote: > On Fri, 2 Nov 2018 at 06:11, Owen Pan wrote: > > I noticed one issue which I wonder if it does qualify for a bug report: > > TL;TR: arrow followed by typename keyword is not handled > > Before: > > template > auto