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 handl

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 bbb(detai

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

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

2018-12-10 Thread Mateusz Loskot via cfe-users
Hi, I'm running clang-tidy 7.0 (also tried 5.0) to modernise some aspects of Boost.GIL (https://github.com/boostorg/gil) source code. I've noticed, clang-tidy 7.0 (also 5.0) does not apply fixes for some of modernize-use-* checks, especially modernize-use-using. I run it this way: ``` cd ${BOOS

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 retur

[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 t

Re: [cfe-users] Boost.GIL test failing with clang 5.x while pass with 15 gcc/clang versions

2018-05-21 Thread Mateusz Loskot via cfe-users
On 21 May 2018 at 20:08, Mateusz Loskot wrote: > On 21 May 2018 at 19:27, Jan Korous wrote: >> >> You are hitting UB because of signed integer overflow. >> [...] >> >> BTW This is a perfect opportunity to try out UndefinedBehaviorSanitizer! >> >> https://clang.llvm.org/docs/UndefinedBehaviorSanit

Re: [cfe-users] Boost.GIL test failing with clang 5.x while pass with 15 gcc/clang versions

2018-05-21 Thread Mateusz Loskot via cfe-users
On 21 May 2018 at 19:27, Jan Korous wrote: > > You are hitting UB because of signed integer overflow. > [...] > > BTW This is a perfect opportunity to try out UndefinedBehaviorSanitizer! > > https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html > >> clang++ -fsanitize=signed-integer-overflow

[cfe-users] Boost.GIL test failing with clang 5.x while pass with 15 gcc/clang versions

2018-05-19 Thread Mateusz Loskot via cfe-users
Hi, While testing Boost.GIL library [1] with gcc and clang, I noticed a peculiar issue. One particular test is failing with lang 5.x while passing with total of 15-17 other versions of clang and GCC (total workflow of CircleCI with at [2]). Below is extracted minimal program equivalent to Boost.G