[clang-tools-extra] r339437 - [clang-tidy] check_clang_tidy.py: support CHECK-NOTES prefix

2018-08-10 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Aug 10 08:05:46 2018 New Revision: 339437 URL: http://llvm.org/viewvc/llvm-project?rev=339437&view=rev Log: [clang-tidy] check_clang_tidy.py: support CHECK-NOTES prefix Summary: Currently, there is two configured prefixes: `CHECK-FIXES` and `CHECK-MESSAGES` `CHECK-MESS

Re: r339693 - We have in place support for parsing #pragma FENV_ACCESS, but that

2018-08-14 Thread Roman Lebedev via cfe-commits
No test? On Tue, Aug 14, 2018 at 8:06 PM, Kevin P. Neal via cfe-commits wrote: > Author: kpn > Date: Tue Aug 14 10:06:56 2018 > New Revision: 339693 > > URL: http://llvm.org/viewvc/llvm-project?rev=339693&view=rev > Log: > > We have in place support for parsing #pragma FENV_ACCESS, but that > inf

r339995 - [NFC] Some small test updates for Implicit Conversion sanitizer.

2018-08-17 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Aug 17 00:33:25 2018 New Revision: 339995 URL: http://llvm.org/viewvc/llvm-project?rev=339995&view=rev Log: [NFC] Some small test updates for Implicit Conversion sanitizer. Split off from D50250. Added: cfe/trunk/test/CodeGen/catch-implicit-integer-conversions-bas

[clang-tools-extra] r331822 - Partially revert r331456: [clang-tidy] Remove AnalyzeTemporaryDtors option.

2018-05-08 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue May 8 16:15:58 2018 New Revision: 331822 URL: http://llvm.org/viewvc/llvm-project?rev=331822&view=rev Log: Partially revert r331456: [clang-tidy] Remove AnalyzeTemporaryDtors option. That broke every single .clang-tidy config out there which happened to specify Analyz

Re: [PATCH] D47067: Update NRVO logic to support early return

2018-05-18 Thread Roman Lebedev via cfe-commits
On Fri, May 18, 2018 at 8:47 PM, tzik via cfe-commits wrote: > Ah, sorry. It's still work in progress for now. > I'll resend this soon after adding tests and updating comments there. See Herald rules for exact syntax, but i think adding "[private]" into the subject would have prevented it from goi

Re: Patch to Bugzilla 31373

2017-10-06 Thread Roman Lebedev via cfe-commits
On Fri, Oct 6, 2017 at 3:15 PM, Erik Viktorsson via cfe-commits wrote: Hi. > Committing a patch to Bugzilla 31373 > > A novice programmer so hopefully it complies with the coding policy. I think it may be better to put it to Phabricator, see https://llvm.org/docs/Phabricator.html#id3 Please do n

r315614 - [Sema] Diagnose tautological comparison with type's min/max values

2017-10-12 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 12 13:16:51 2017 New Revision: 315614 URL: http://llvm.org/viewvc/llvm-project?rev=315614&view=rev Log: [Sema] Diagnose tautological comparison with type's min/max values Summary: Currently, clang only diagnoses completely out-of-range comparisons (e.g. `char` and

r315615 - [Analysis] Silence -Wtautological-constant-compare in two tests

2017-10-12 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 12 13:27:41 2017 New Revision: 315615 URL: http://llvm.org/viewvc/llvm-project?rev=315615&view=rev Log: [Analysis] Silence -Wtautological-constant-compare in two tests Yes, did not check that. Need to do better :( I do not believe it makes sense to do expect that w

r315622 - [Analysis] Un-silence -Wtautological-unsigned-zero-compare in null-deref-ps.c

2017-10-12 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 12 14:15:26 2017 New Revision: 315622 URL: http://llvm.org/viewvc/llvm-project?rev=315622&view=rev Log: [Analysis] Un-silence -Wtautological-unsigned-zero-compare in null-deref-ps.c Stage-2 builds failed: error: 'warning' diagnostics expected but not seen: File

Re: r315614 - [Sema] Diagnose tautological comparison with type's min/max values

2017-10-12 Thread Roman Lebedev via cfe-commits
|| > static_cast(region.size) > > std::numeric_limits::max()) { > DLOG(ERROR) << "Region bounds are not valid for mmap"; > return false; > } > > This code works in 64-bit and 32-bit. off_t has different sizes on both, s

r315631 - Revert "[Sema] Diagnose tautological comparison with type's min/max values"

2017-10-12 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 12 15:03:20 2017 New Revision: 315631 URL: http://llvm.org/viewvc/llvm-project?rev=315631&view=rev Log: Revert "[Sema] Diagnose tautological comparison with type's min/max values" This reverts r315614,r315615,r315621,r315622 Breaks http://bb9.pgr.jp/#/builders/20/b

Re: [PATCH] D38101: [Sema] Diagnose tautological comparison with type's min/max values

2017-10-12 Thread Roman Lebedev via cfe-commits
On Fri, Oct 13, 2017 at 1:22 AM, Richard Smith wrote: > On 12 October 2017 at 15:11, Roman Lebedev via Phabricator via cfe-commits > wrote: >> >> lebedev.ri reopened this revision. >> lebedev.ri added a comment. >> This revision is now accepted and ready to land. >> >> Reverted due to http://bb9.

r315875 - [Sema] Re-land: Diagnose tautological comparison with type's min/max values

2017-10-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sun Oct 15 13:13:17 2017 New Revision: 315875 URL: http://llvm.org/viewvc/llvm-project?rev=315875&view=rev Log: [Sema] Re-land: Diagnose tautological comparison with type's min/max values The first attempt, rL315614 was reverted because one libcxx test broke, and i did not

[libcxx] r315874 - Silence clang's -Wtautological-constant-compare in last_write_time.pass.cpp

2017-10-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sun Oct 15 13:12:42 2017 New Revision: 315874 URL: http://llvm.org/viewvc/llvm-project?rev=315874&view=rev Log: Silence clang's -Wtautological-constant-compare in last_write_time.pass.cpp Previously this broke the builders, when D38101 was committed. Silence the warning so

[libcxx] r315876 - Really do make sure that last_write_time.pass.cpp still works with old clang

2017-10-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sun Oct 15 13:46:12 2017 New Revision: 315876 URL: http://llvm.org/viewvc/llvm-project?rev=315876&view=rev Log: Really do make sure that last_write_time.pass.cpp still works with old clang I *did* try to check that such kind of an issue was not introduced by the rL315874,

[libcxx] r315882 - Fix last_write_time.pass.cpp to work with clang-3.9 and earlier

2017-10-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sun Oct 15 14:52:53 2017 New Revision: 315882 URL: http://llvm.org/viewvc/llvm-project?rev=315882&view=rev Log: Fix last_write_time.pass.cpp to work with clang-3.9 and earlier At least with clang-3.9 and earlier, -Wunknown-pragmas is also needed. Modified: libcxx/tru

Re: [libcxx] r315874 - Silence clang's -Wtautological-constant-compare in last_write_time.pass.cpp

2017-10-16 Thread Roman Lebedev via cfe-commits
ng std::numeric_limits<>. Right now, sadly, i do not see any simple false-positive here. Roman. > On Sun, Oct 15, 2017 at 1:12 PM Roman Lebedev via cfe-commits > wrote: >> >> Author: lebedevri >> Date: Sun Oct 15 13:12:42 2017 >> New Revision: 315874 >> >&g

Re: clang patch for -fno-var-tracking-assignments option

2017-10-20 Thread Roman Lebedev via cfe-commits
On Fri, Oct 20, 2017 at 11:44 AM, Mikhail Artemyev via cfe-commits wrote: > Hi All, > > The attached patch adds a new option '-fno-var-tracking-assignments' in the > same group (clang_ignored_f_Group) where the existing '-fno-var-tracking' > resides. It might be best to upload it to https://llvm.o

r316268 - [Sema] Fixes for enum handling for tautological comparison diagnostics

2017-10-21 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sat Oct 21 09:44:03 2017 New Revision: 316268 URL: http://llvm.org/viewvc/llvm-project?rev=316268&view=rev Log: [Sema] Fixes for enum handling for tautological comparison diagnostics Summary: As Mattias Eriksson has reported in PR35009, in C, for enums, the underlying typ

Re: r316268 - [Sema] Fixes for enum handling for tautological comparison diagnostics

2017-10-23 Thread Roman Lebedev via cfe-commits
ompare diagnostic (and i suspect there may be more repercussions) was not really intentional. However as you have said, and i think i agree, the diagnostic valid. So perhaps i simply should add a test and release notes entry? Roman. > On Sat, Oct 21, 2017 at 6:44 PM, Roman Lebedev via cfe-commits >

r316500 - [Sema] Document+test the -Wsign-compare change for enums in C code [NFC]

2017-10-24 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Oct 24 14:05:43 2017 New Revision: 316500 URL: http://llvm.org/viewvc/llvm-project?rev=316500&view=rev Log: [Sema] Document+test the -Wsign-compare change for enums in C code [NFC] rL316268 / D39122 has fixed PR35009, and now when in C, these three(?) diagnostics prope

Re: r316268 - [Sema] Fixes for enum handling for tautological comparison diagnostics

2017-10-24 Thread Roman Lebedev via cfe-commits
reasonable. It turns out we only got this single extra > -Wsign-compare warning, so it didn't turn out to be a big problem for > us. Ok, committed in https://reviews.llvm.org/rL316500 Roman. >> >> Roman. >> >>> On Sat, Oct 21, 2017 at 6:44 PM, Roman Lebede

Re: [clang-tools-extra] r340800 - [clang-tidy] Abseil: no namepsace check

2018-08-28 Thread Roman Lebedev via cfe-commits
On Tue, Aug 28, 2018 at 10:48 AM, Haojian Wu via cfe-commits wrote: > Author: hokein > Date: Tue Aug 28 00:48:28 2018 > New Revision: 340800 > > URL: http://llvm.org/viewvc/llvm-project?rev=340800&view=rev > Log: > [clang-tidy] Abseil: no namepsace check > > This check ensures that users of Abseil

Re: r341140 - Add dump() method for SourceRange

2018-08-30 Thread Roman Lebedev via cfe-commits
I don't think this was reviewed. The differential is not in 'accepted' state. Roman. On Fri, Aug 31, 2018 at 2:10 AM, Stephen Kelly via cfe-commits wrote: > Author: steveire > Date: Thu Aug 30 16:10:52 2018 > New Revision: 341140 > > URL: http://llvm.org/viewvc/llvm-project?rev=341140&view=rev >

Re: r341141 - Extract parseBindID method

2018-08-30 Thread Roman Lebedev via cfe-commits
I don't think this was reviewed. The differential is not in 'accepted' state. Roman. On Fri, Aug 31, 2018 at 2:11 AM, Stephen Kelly via cfe-commits wrote: > Author: steveire > Date: Thu Aug 30 16:11:01 2018 > New Revision: 341141 > > URL: http://llvm.org/viewvc/llvm-project?rev=341141&view=rev >

Re: [clang-tools-extra] r341144 - Extract runCommandsInFile method

2018-08-30 Thread Roman Lebedev via cfe-commits
I don't think this was reviewed. The differential is not in 'accepted' state. Roman. On Fri, Aug 31, 2018 at 2:25 AM, Stephen Kelly via cfe-commits wrote: > Author: steveire > Date: Thu Aug 30 16:25:38 2018 > New Revision: 341144 > > URL: http://llvm.org/viewvc/llvm-project?rev=341144&view=rev >

Re: r341141 - Extract parseBindID method

2018-09-06 Thread Roman Lebedev via cfe-commits
anks for any post-commit review! > > Stephen. Roman. > On 31/08/18 07:06, Roman Lebedev via cfe-commits wrote: >> >> I don't think this was reviewed. The differential is not in 'accepted' >> state. >> >> Roman. >> >> On Fri, Aug 31,

[clang-tools-extra] r341854 - [clang-tidy] ExprMutationAnalyzer: construct from references. Fixes PR38888

2018-09-10 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Sep 10 12:59:18 2018 New Revision: 341854 URL: http://llvm.org/viewvc/llvm-project?rev=341854&view=rev Log: [clang-tidy] ExprMutationAnalyzer: construct from references. Fixes PR3 Summary: I have hit this the rough way, while trying to use this in D51870. There is

Re: [clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-14 Thread Roman Lebedev via cfe-commits
On Fri, Sep 14, 2018 at 3:21 PM, Kirill Bobyrev via cfe-commits wrote: > Author: omtcyfz > Date: Fri Sep 14 05:21:09 2018 > New Revision: 342227 > > URL: http://llvm.org/viewvc/llvm-project?rev=342227&view=rev > Log: > [clangd] NFC: Fix IndexBenchmark CLI arguments handling > > Modified: > cla

Re: [PATCH] D45124: [CodeGen] Record if a C++ record is a trivial type

2018-07-23 Thread Roman Lebedev via cfe-commits
Test? On Mon, Jul 23, 2018 at 11:49 PM, Aaron Smith via Phabricator via llvm-commits wrote: > This revision was automatically updated to reflect the committed changes. > Closed by commit rC337736: [CodeGen] Record if a C++ record is a trivial type > (authored by asmith, committed by ). > > Repos

r337815 - [Sema] Mark implicitly-inserted ICE's as being part of explicit cast (PR38166)

2018-07-24 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Jul 24 01:16:50 2018 New Revision: 337815 URL: http://llvm.org/viewvc/llvm-project?rev=337815&view=rev Log: [Sema] Mark implicitly-inserted ICE's as being part of explicit cast (PR38166) Summary: As discussed in [[ https://bugs.llvm.org/show_bug.cgi?id=38166 | PR38166

r338108 - [AST] Sink 'part of explicit cast' down into ImplicitCastExpr

2018-07-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Jul 27 00:27:14 2018 New Revision: 338108 URL: http://llvm.org/viewvc/llvm-project?rev=338108&view=rev Log: [AST] Sink 'part of explicit cast' down into ImplicitCastExpr Summary: As discussed in IRC with @rsmith, it is slightly not good to keep that in the `CastExpr`

r338288 - [clang][ubsan] Implicit Conversion Sanitizer - integer truncation - clang part

2018-07-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jul 30 11:58:30 2018 New Revision: 338288 URL: http://llvm.org/viewvc/llvm-project?rev=338288&view=rev Log: [clang][ubsan] Implicit Conversion Sanitizer - integer truncation - clang part Summary: C and C++ are interesting languages. They are statically typed, but weak

r338306 - [docs] UndefinedBehaviorSanitizer.rst: {, un}signed-integer-overflow: tune docs

2018-07-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jul 30 14:11:32 2018 New Revision: 338306 URL: http://llvm.org/viewvc/llvm-project?rev=338306&view=rev Log: [docs] UndefinedBehaviorSanitizer.rst: {,un}signed-integer-overflow: tune docs Yes, i erroneously assumed that the "after" was meant, but i was wrong: > I really

r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-07-31 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Jul 31 23:06:16 2018 New Revision: 338489 URL: http://llvm.org/viewvc/llvm-project?rev=338489&view=rev Log: [AST] CastExpr: BasePathSize is not large enough. Summary: rC337815 / D49508 had to cannibalize one bit of `CastExprBitfields::BasePathSize` in order to squeeze

Re: r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-08-01 Thread Roman Lebedev via cfe-commits
On Wed, Aug 1, 2018 at 8:36 PM, Richard Smith wrote: > On Tue, 31 Jul 2018, 23:06 Roman Lebedev via cfe-commits, > wrote: >> >> Author: lebedevri >> Date: Tue Jul 31 23:06:16 2018 >> New Revision: 338489 >> >> URL: http://llvm.org/viewvc/llvm-project?rev

r338640 - [NFC][CodeGenCXX] Use -emit-llvm-only instead of -emit-llvm and ignoring it.

2018-08-01 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Aug 1 14:20:58 2018 New Revision: 338640 URL: http://llvm.org/viewvc/llvm-project?rev=338640&view=rev Log: [NFC][CodeGenCXX] Use -emit-llvm-only instead of -emit-llvm and ignoring it. As pointed out by Richard Smith in post-review of r338489. Modified: cfe/trunk/

Re: r338489 - [AST] CastExpr: BasePathSize is not large enough.

2018-08-01 Thread Roman Lebedev via cfe-commits
r338640 On Wed, Aug 1, 2018 at 8:38 PM, Roman Lebedev wrote: > On Wed, Aug 1, 2018 at 8:36 PM, Richard Smith wrote: >> On Tue, 31 Jul 2018, 23:06 Roman Lebedev via cfe-commits, >> wrote: >>> >>> Author: lebedevri >>> Date: Tue Jul 31 23:06:16 2018

Re: [PATCH] D43120: [clang-tidy] New checker for exceptions that are created but not thrown

2018-02-15 Thread Roman Lebedev via cfe-commits
On Thu, Feb 15, 2018 at 3:48 PM, Aaron Ballman via cfe-commits wrote: > On Thu, Feb 15, 2018 at 4:11 AM, Phabricator via Phabricator > wrote: >> This revision was automatically updated to reflect the committed changes. >> Closed by commit rL325222: [clang-tidy] New checker for exceptions that are

Re: [PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-06 Thread Roman Lebedev via cfe-commits
On Tue, Jun 6, 2017 at 8:52 PM, David Blaikie wrote: > > > On Tue, Jun 6, 2017 at 3:59 AM Roman Lebedev via Phabricator > wrote: >> >> lebedev.ri added a comment. >> >> In https://reviews.llvm.org/D33102#773296, @dblaikie wrote: >> >> > I still feel like that's more testing than would be ideal (d

[clang-tools-extra] r305067 - [clang-tools-extra] ReleaseNotes.rst: test commit: whitespace fix

2017-06-09 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Jun 9 07:00:04 2017 New Revision: 305067 URL: http://llvm.org/viewvc/llvm-project?rev=305067&view=rev Log: [clang-tools-extra] ReleaseNotes.rst: test commit: whitespace fix Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/trunk/

[clang-tools-extra] r305082 - [clang-tidy] readability-function-size: add NestingThreshold param.

2017-06-09 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Jun 9 09:22:10 2017 New Revision: 305082 URL: http://llvm.org/viewvc/llvm-project?rev=305082&view=rev Log: [clang-tidy] readability-function-size: add NestingThreshold param. Summary: Finds compound statements which create next nesting level after `NestingThreshold`

Re: [PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-09 Thread Roman Lebedev via cfe-commits
On Fri, Jun 9, 2017 at 11:28 PM, David Blaikie wrote: > Looks all good OK, thank you. > please commit whenever you're ready - if you don't have > commit access, I (or anyone else with commit access) can commit this for > you. Will re-test and commit in +~12 hours. > On Tue, Jun 6, 2017 at 1:57 P

Re: [PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-10 Thread Roman Lebedev via cfe-commits
On Sat, Jun 10, 2017 at 7:05 PM, David Blaikie wrote: > > > On Sat, Jun 10, 2017 at 3:33 AM Roman Lebedev via Phabricator > wrote: >> >> lebedev.ri planned changes to this revision. >> lebedev.ri added a comment. >> >> In https://reviews.llvm.org/D33102#773296, @dblaikie wrote: >> >> > But sure.

r305147 - [clang] Implement -Wcast-qual for C++

2017-06-10 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sat Jun 10 12:19:19 2017 New Revision: 305147 URL: http://llvm.org/viewvc/llvm-project?rev=305147&view=rev Log: [clang] Implement -Wcast-qual for C++ Summary: This way, the behavior of that warning flag more closely resembles that of GCC. Do note that there is at least on

r305148 - Revert "[clang] Implement -Wcast-qual for C++"

2017-06-10 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Sat Jun 10 12:49:23 2017 New Revision: 305148 URL: http://llvm.org/viewvc/llvm-project?rev=305148&view=rev Log: Revert "[clang] Implement -Wcast-qual for C++" Breaks -Werror builders. Removed: cfe/trunk/test/SemaCXX/warn-cast-qual.cpp Modified: cfe/trunk/docs/Rele

Re: [PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-12 Thread Roman Lebedev via cfe-commits
On Mon, Jun 12, 2017 at 8:16 PM, David Blaikie wrote: > > > On Mon, Jun 12, 2017 at 10:10 AM Roman Lebedev via Phabricator > wrote: >> >> lebedev.ri added a comment. >> >> So i'm trying to analyze that stage2 warning. > > > Could you link to the buildbot failure to see the original LLVM project c

[clang-tools-extra] r305554 - [clang-tidy] readability-function-size: fix nesting level calculation

2017-06-16 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Jun 16 08:07:47 2017 New Revision: 305554 URL: http://llvm.org/viewvc/llvm-project?rev=305554&view=rev Log: [clang-tidy] readability-function-size: fix nesting level calculation Summary: A followup for D32942. Malcolm Parsons has provided a valid testcase that the ini

Re: [PATCH] D40939: [analyzer] Avoid element regions of void type.

2017-12-19 Thread Roman Lebedev via cfe-commits
On Tue, Dec 19, 2017 at 8:26 PM, Artem Dergachev via Phabricator via cfe-commits wrote: > NoQ updated this revision to Diff 127548. > NoQ added a comment. > > - Fix comments as suggested by Devin. > - Point out that arithmetic on void pointers is a GNU extension. > > > https://reviews.llvm.org/D40

r321691 - [Sema] -Wtautological-constant-compare is too good. Cripple it.

2018-01-03 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Jan 3 00:45:19 2018 New Revision: 321691 URL: http://llvm.org/viewvc/llvm-project?rev=321691&view=rev Log: [Sema] -Wtautological-constant-compare is too good. Cripple it. Summary: The diagnostic was mostly introduced in D38101 by me, as a reaction to wasting a lot of

Re: [libcxx] r321966 - Mark the transparent version set::count() as const. Thanks to Ivan Matek for the bug report.

2018-01-07 Thread Roman Lebedev via cfe-commits
It seems the test is missing? On Sun, Jan 7, 2018 at 8:39 PM, Marshall Clow via cfe-commits wrote: > Author: marshall > Date: Sun Jan 7 09:39:57 2018 > New Revision: 321966 > > URL: http://llvm.org/viewvc/llvm-project?rev=321966&view=rev > Log: > Mark the transparent version set::count() as cons

[clang-tools-extra] r326202 - [Tooling] [1/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>

2018-02-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Feb 27 07:19:28 2018 New Revision: 326202 URL: http://llvm.org/viewvc/llvm-project?rev=326202&view=rev Log: [Tooling] [1/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<> Summary: I'm not sure whether there are any principal reasons why it return

r326201 - [Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>

2018-02-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Feb 27 07:19:20 2018 New Revision: 326201 URL: http://llvm.org/viewvc/llvm-project?rev=326201&view=rev Log: [Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<> Summary: Noticed during review of D41102. I'm not sure whether there are a

[clang-tools-extra] r326203 - Revert "[Tooling] [1/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>"

2018-02-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Feb 27 07:54:41 2018 New Revision: 326203 URL: http://llvm.org/viewvc/llvm-project?rev=326203&view=rev Log: Revert "[Tooling] [1/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" This reverts commit rL326202 This broke gcc4.8 builds, compiler j

r326204 - Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>"

2018-02-27 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Feb 27 07:54:55 2018 New Revision: 326204 URL: http://llvm.org/viewvc/llvm-project?rev=326204&view=rev Log: Revert "[Tooling] [0/1] Refactor FrontendActionFactory::create() to return std::unique_ptr<>" This reverts commit rL326201 This broke gcc4.8 builds, compiler j

r327558 - [Parser] (C++) Make -Wextra-semi slightly more useful

2018-03-14 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Mar 14 12:31:34 2018 New Revision: 327558 URL: http://llvm.org/viewvc/llvm-project?rev=327558&view=rev Log: [Parser] (C++) Make -Wextra-semi slightly more useful Summary: Let's suppose the `-Weverything` is passed. Given code like ``` void F() {} ; ``` If the code is

r327725 - [docs] ReleaseNotes: document -Wextra-semi changes.

2018-03-16 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Mar 16 11:01:07 2018 New Revision: 327725 URL: http://llvm.org/viewvc/llvm-project?rev=327725&view=rev Log: [docs] ReleaseNotes: document -Wextra-semi changes. I should have done it in rL327558 / D43162, but forgot.. I'm not 100% sure about the text, but i don't think

[clang-tools-extra] r333891 - [clang][tooling] Don't forget to link to clangToolingInclusions.

2018-06-04 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jun 4 05:04:51 2018 New Revision: 333891 URL: http://llvm.org/viewvc/llvm-project?rev=333891&view=rev Log: [clang][tooling] Don't forget to link to clangToolingInclusions. Fixes build with shared libs, broken by rL333874. Some buildbot converage is sorely missing. Mo

r333890 - [clang][tooling] Don't forget to link to clangToolingInclusions.

2018-06-04 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jun 4 05:04:41 2018 New Revision: 333890 URL: http://llvm.org/viewvc/llvm-project?rev=333890&view=rev Log: [clang][tooling] Don't forget to link to clangToolingInclusions. Fixes build with shared libs, broken by rL333874. Some buildbot converage is sorely missing. Mo

Re: [clang-tools-extra] r333891 - [clang][tooling] Don't forget to link to clangToolingInclusions.

2018-06-04 Thread Roman Lebedev via cfe-commits
That was supposed to be "[clangd][tests] Don't forget to link to clangToolingInclusions.". On Mon, Jun 4, 2018 at 3:04 PM, Roman Lebedev via cfe-commits wrote: > Author: lebedevri > Date: Mon Jun 4 05:04:51 2018 > New Revision: 333891 > > URL: http://llvm.org/viewv

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Roman Lebedev via cfe-commits
This broke building as shared libraries. I've committed the fix, but the bot coverage is clearly severely missing, given that such breakages are very often. Roman. On Mon, Jun 4, 2018 at 12:04 PM, Eric Liu via cfe-commits wrote: > Author: ioeric > Date: Mon Jun 4 02:04:12 2018 > New Revision:

Re: r333874 - Reland "Move #include manipulation code to new lib/Tooling/Inclusions."

2018-06-04 Thread Roman Lebedev via cfe-commits
lly setting BUILD_SHARED_LIBS >> to TRUE if asserts are enabled? That’d automatically “force” active >> developers to test the scenario on their local machines, but not change the >> way release builds work. >> >> >> > On Jun 4, 2018, at 8:11 AM, Roman Le

Re: r333923 - This diff includes changes for supporting the following types.

2018-06-04 Thread Roman Lebedev via cfe-commits
Did you use `arc patch` to get the commit description? Please make sure that the first line of the commit is reasonable. In this case it is not reasonable. On Mon, Jun 4, 2018 at 7:07 PM, Leonard Chan via cfe-commits wrote: > Author: leonardchan > Date: Mon Jun 4 09:07:52 2018 > New Revision: 33

Re: [clang-tools-extra] r333994 - [clang-tidy] fix broken test (no compile command) from r331763

2018-06-05 Thread Roman Lebedev via cfe-commits
This is strange. First, i'm pretty sure the test worked for me before. Second, this commit actually *breaks* those two tests for me: $ ninja check-clang-tools [0/1] Running the Clang extra tools' regression tests FAIL: Clang Tools :: clang-tidy/clang-tidy-enable-check-profile-one-tu.cpp (123 of 8

Re: [clang-tools-extra] r333994 - [clang-tidy] fix broken test (no compile command) from r331763

2018-06-05 Thread Roman Lebedev via cfe-commits
Ah, hm, yes, that was a further local problem in https://reviews.llvm.org/D46602 And i didn't double-check on master initially, because that causes all the checks to be rebuilt :/ So thanks for the fix! Roman. On Tue, Jun 5, 2018 at 1:40 PM, Sam McCall wrote: > Hi Roman, > > Definitely somethi

[clang-tools-extra] r334101 - [clang-tidy] Store checks profiling info as JSON files

2018-06-06 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Jun 6 08:07:51 2018 New Revision: 334101 URL: http://llvm.org/viewvc/llvm-project?rev=334101&view=rev Log: [clang-tidy] Store checks profiling info as JSON files Summary: Continuation of D46504. Example output: ``` $ clang-tidy -enable-check-profile -store-check-pr

r344230 - [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks

2018-10-11 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 11 02:09:50 2018 New Revision: 344230 URL: http://llvm.org/viewvc/llvm-project?rev=344230&view=rev Log: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks Summary: As per IRC disscussion, it seems we really want to have more

[clang-tools-extra] r344755 - [clang-tidy] Add new 'readability-uppercase-literal-suffix' check (CERT DCL16-C, MISRA C:2012, 7.3, MISRA C++:2008, 2-13-4)

2018-10-18 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 18 13:06:40 2018 New Revision: 344755 URL: http://llvm.org/viewvc/llvm-project?rev=344755&view=rev Log: [clang-tidy] Add new 'readability-uppercase-literal-suffix' check (CERT DCL16-C, MISRA C:2012, 7.3, MISRA C++:2008, 2-13-4) Summary: Detects when the integral l

[clang-tools-extra] r344757 - [clang-tidy] Non-private member variables in classes (MISRA, CppCoreGuidelines, HICPP)

2018-10-18 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 18 13:16:44 2018 New Revision: 344757 URL: http://llvm.org/viewvc/llvm-project?rev=344757&view=rev Log: [clang-tidy] Non-private member variables in classes (MISRA, CppCoreGuidelines, HICPP) Summary: Finds classes that not only contain the data (non-static member

[clang-tools-extra] r344758 - [clang-tidy] readability-uppercase-literal-suffix: specify target for fp tests

2018-10-18 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 18 13:27:10 2018 New Revision: 344758 URL: http://llvm.org/viewvc/llvm-project?rev=344758&view=rev Log: [clang-tidy] readability-uppercase-literal-suffix: specify target for fp tests __float128 isn't universally avaliable. Modified: clang-tools-extra/trunk/te

[clang-tools-extra] r344760 - [clang-tidy] readability-uppercase-literal-suffix: specify target for opencl test

2018-10-18 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 18 13:59:03 2018 New Revision: 344760 URL: http://llvm.org/viewvc/llvm-project?rev=344760&view=rev Log: [clang-tidy] readability-uppercase-literal-suffix: specify target for opencl test I'm not sure if it will actually help or not. ppc64be-clang-lnt-test bot is fa

[clang-tools-extra] r344772 - [clang-tidy] readability-uppercase-literal-suffix: specify target for ms test too

2018-10-18 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 18 23:04:07 2018 New Revision: 344772 URL: http://llvm.org/viewvc/llvm-project?rev=344772&view=rev Log: [clang-tidy] readability-uppercase-literal-suffix: specify target for ms test too Apparently the bots were still failing with this. Sadly, i did not see *this*

[clang-tools-extra] r345305 - [clang-tidy] Revert my readability-uppercase-literal-suffix check.

2018-10-25 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 25 12:44:51 2018 New Revision: 345305 URL: http://llvm.org/viewvc/llvm-project?rev=345305&view=rev Log: [clang-tidy] Revert my readability-uppercase-literal-suffix check. There are some lurking issues with the handling of the SourceManager. Somehow sometimes we end

[clang-tools-extra] r345381 - [clang-tidy] Re-commit: Add new 'readability-uppercase-literal-suffix' check (CERT DCL16-C, MISRA C:2012, 7.3, MISRA C++:2008, 2-13-4)

2018-10-26 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Oct 26 06:09:27 2018 New Revision: 345381 URL: http://llvm.org/viewvc/llvm-project?rev=345381&view=rev Log: [clang-tidy] Re-commit: Add new 'readability-uppercase-literal-suffix' check (CERT DCL16-C, MISRA C:2012, 7.3, MISRA C++:2008, 2-13-4) Summary: Detects when the

r345594 - [clang] Move two utility functions into SourceManager

2018-10-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Oct 30 05:37:16 2018 New Revision: 345594 URL: http://llvm.org/viewvc/llvm-project?rev=345594&view=rev Log: [clang] Move two utility functions into SourceManager Summary: So we can keep that not-so-great logic in one place. Reviewers: rsmith, aaron.ballman Reviewed B

[clang-tools-extra] r345610 - [clang-tidy] cppcoreguidelines-macro-usage: print macro names

2018-10-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Oct 30 08:52:36 2018 New Revision: 345610 URL: http://llvm.org/viewvc/llvm-project?rev=345610&view=rev Log: [clang-tidy] cppcoreguidelines-macro-usage: print macro names Summary: The macro may not have location (or more generally, the location may not exist), e.g. if i

r345660 - [clang][ubsan] Implicit Conversion Sanitizer - integer sign change - clang part

2018-10-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Oct 30 14:58:56 2018 New Revision: 345660 URL: http://llvm.org/viewvc/llvm-project?rev=345660&view=rev Log: [clang][ubsan] Implicit Conversion Sanitizer - integer sign change - clang part This is the second half of Implicit Integer Conversion Sanitizer. It completes th

r351105 - [clang][UBSan] Sanitization for alignment assumptions.

2019-01-14 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jan 14 11:09:27 2019 New Revision: 351105 URL: http://llvm.org/viewvc/llvm-project?rev=351105&view=rev Log: [clang][UBSan] Sanitization for alignment assumptions. Summary: UB isn't nice. It's cool and powerful, but not nice. Having a way to detect it is nice though. [[

Re: r351159 - Revert alignment assumptions changes

2019-01-14 Thread Roman Lebedev via cfe-commits
Thank you for the revert. On Tue, Jan 15, 2019 at 6:41 AM Vlad Tsyrklevich via cfe-commits wrote: > > Author: vlad.tsyrklevich > Date: Mon Jan 14 19:38:02 2019 > New Revision: 351159 > > URL: http://llvm.org/viewvc/llvm-project?rev=351159&view=rev > Log: > Revert alignment assumptions changes > >

r351177 - [clang][UBSan] Sanitization for alignment assumptions.

2019-01-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Jan 15 01:44:25 2019 New Revision: 351177 URL: http://llvm.org/viewvc/llvm-project?rev=351177&view=rev Log: [clang][UBSan] Sanitization for alignment assumptions. Summary: UB isn't nice. It's cool and powerful, but not nice. Having a way to detect it is nice though. [[

r351188 - [OpenCL] opencl-c.h: read_image*(): sampler-less, and image{1, 2}d_array_t variants are OpenCL-1.2+, mark them as such

2019-01-15 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Jan 15 03:20:02 2019 New Revision: 351188 URL: http://llvm.org/viewvc/llvm-project?rev=351188&view=rev Log: [OpenCL] opencl-c.h: read_image*(): sampler-less, and image{1,2}d_array_t variants are OpenCL-1.2+, mark them as such Summary: Refer to [[ https://www.khronos.

Re: [PATCH] D35068: [analyzer] Detect usages of unsafe I/O functions

2019-01-17 Thread Roman Lebedev via cfe-commits
Please also note that "safe" functions are C11 Annex K, and it is Optional. I believe glibc does not implement it, and has no intention of implementing it. By memory, i'm not sure any library other than Microsoft's does provide it. On Thu, Jan 17, 2019 at 9:17 PM Kristóf Umann via Phabricator wro

r352090 - [NFC][clang] Test updates for CreateAlignmentAssumption() changes in D54653

2019-01-24 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Jan 24 11:32:49 2019 New Revision: 352090 URL: http://llvm.org/viewvc/llvm-project?rev=352090&view=rev Log: [NFC][clang] Test updates for CreateAlignmentAssumption() changes in D54653 Differential Revision: https://reviews.llvm.org/D57175 Modified: cfe/trunk/test/

[clang-tools-extra] r352224 - Temporairly disable readability-uppercase-literal-suffix tests that depend on _Float16, to get bots back to green

2019-01-25 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Jan 25 10:05:43 2019 New Revision: 352224 URL: http://llvm.org/viewvc/llvm-project?rev=352224&view=rev Log: Temporairly disable readability-uppercase-literal-suffix tests that depend on _Float16, to get bots back to green Modified: clang-tools-extra/trunk/test/cl

Re: r352219 - Allow 'static' storage specifier on an out-of-line member function template

2019-01-25 Thread Roman Lebedev via cfe-commits
This review is invalid, since the lists weren't subscribed. On Fri, Jan 25, 2019 at 8:01 PM Erich Keane via cfe-commits wrote: > > Author: erichkeane > Date: Fri Jan 25 09:01:42 2019 > New Revision: 352219 > > URL: http://llvm.org/viewvc/llvm-project?rev=352219&view=rev > Log: > Allow 'static' st

r352390 - [clang][OpenMP] OMPFlushClause is synthetic, no such clause exists

2019-01-28 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Mon Jan 28 09:04:11 2019 New Revision: 352390 URL: http://llvm.org/viewvc/llvm-project?rev=352390&view=rev Log: [clang][OpenMP] OMPFlushClause is synthetic, no such clause exists Summary: As discussed in https://reviews.llvm.org/D57112#inline-506781, 'flush' clause does no

r352631 - [ASTDumper][OpenMP] CapturedDecl has a 'nothrow' bit

2019-01-30 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Jan 30 07:41:20 2019 New Revision: 352631 URL: http://llvm.org/viewvc/llvm-project?rev=352631&view=rev Log: [ASTDumper][OpenMP] CapturedDecl has a 'nothrow' bit Summary: Was trying to understand how complicated it would be to write a clang-tidy `openmp-exception-escape

Re: r352631 - [ASTDumper][OpenMP] CapturedDecl has a 'nothrow' bit

2019-01-30 Thread Roman Lebedev via cfe-commits
On Wed, Jan 30, 2019 at 6:46 PM Aaron Ballman wrote: > > On Wed, Jan 30, 2019 at 10:41 AM Roman Lebedev via cfe-commits > wrote: > > > > Author: lebedevri > > Date: Wed Jan 30 07:41:20 2019 > > New Revision: 352631 > > > > URL: http://llvm.org/vi

Re: r352793 - [WebAssembly] Add bulk memory target feature

2019-01-31 Thread Roman Lebedev via cfe-commits
And another review that omitted lists. On Fri, Feb 1, 2019 at 12:02 AM Thomas Lively via cfe-commits wrote: > > Author: tlively > Date: Thu Jan 31 13:02:19 2019 > New Revision: 352793 > > URL: http://llvm.org/viewvc/llvm-project?rev=352793&view=rev > Log: > [WebAssembly] Add bulk memory target f

Re: r345660 - [clang][ubsan] Implicit Conversion Sanitizer - integer sign change - clang part

2018-10-31 Thread Roman Lebedev via cfe-commits
On Thu, Nov 1, 2018 at 3:03 AM Friedman, Eli wrote: > > On 10/30/2018 2:58 PM, Roman Lebedev via cfe-commits wrote: > > Author: lebedevri > > Date: Tue Oct 30 14:58:56 2018 > > New Revision: 345660 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=345660

r345816 - [clang][CodeGen] ImplicitIntegerSignChangeSanitizer: actually ignore NOP casts.

2018-11-01 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Nov 1 01:56:51 2018 New Revision: 345816 URL: http://llvm.org/viewvc/llvm-project?rev=345816&view=rev Log: [clang][CodeGen] ImplicitIntegerSignChangeSanitizer: actually ignore NOP casts. I fully expected for that to be handled by the canonical type check, but it clear

Re: r345660 - [clang][ubsan] Implicit Conversion Sanitizer - integer sign change - clang part

2018-11-01 Thread Roman Lebedev via cfe-commits
On Thu, Nov 1, 2018 at 9:39 AM Roman Lebedev wrote: > > On Thu, Nov 1, 2018 at 3:03 AM Friedman, Eli wrote: > > > > On 10/30/2018 2:58 PM, Roman Lebedev via cfe-commits wrote: > > > Author: lebedevri > > > Date: Tue Oct 30 14:58:56 2018 > > > New Revi

Re: [clang-tools-extra] r346461 - Ignore implicit things like ConstantExpr.

2018-11-08 Thread Roman Lebedev via cfe-commits
Test? On Fri, Nov 9, 2018 at 4:34 AM Bill Wendling via cfe-commits wrote: > > Author: void > Date: Thu Nov 8 17:32:30 2018 > New Revision: 346461 > > URL: http://llvm.org/viewvc/llvm-project?rev=346461&view=rev > Log: > Ignore implicit things like ConstantExpr. > > Modified: > > clang-tools

Re: r346548 - Use the correct address space when bitcasting func pointer to int pointer

2018-11-09 Thread Roman Lebedev via cfe-commits
The codegen change can't be tested? On Fri, Nov 9, 2018 at 10:44 PM Dylan McKay via cfe-commits wrote: > > Author: dylanmckay > Date: Fri Nov 9 11:42:05 2018 > New Revision: 346548 > > URL: http://llvm.org/viewvc/llvm-project?rev=346548&view=rev > Log: > Use the correct address space when bitcast

[clang-tools-extra] r346835 - [clang-tidy] Avoid C arrays check

2018-11-14 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Wed Nov 14 01:01:08 2018 New Revision: 346835 URL: http://llvm.org/viewvc/llvm-project?rev=346835&view=rev Log: [clang-tidy] Avoid C arrays check Summary: [[ https://bugs.llvm.org/show_bug.cgi?id=39224 | PR39224 ]] As discussed, we can't always do the transform automatical

r347339 - [clang][Parse] Diagnose useless null statements / empty init-statements

2018-11-20 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Tue Nov 20 10:59:05 2018 New Revision: 347339 URL: http://llvm.org/viewvc/llvm-project?rev=347339&view=rev Log: [clang][Parse] Diagnose useless null statements / empty init-statements Summary: clang has `-Wextra-semi` (D43162), which is not dictated by the currently selec

Re: [PATCH] D53812: [Analyzer] Iterator Checker - Forbid increments past the begin() and decrements past the end() of containers

2018-11-30 Thread Roman Lebedev via cfe-commits
""Re: [PATCH] D53812: [Analyzer] Iterator Checker - Forbid increments past the begin() and decrements past the end() of containers" Is it be or that reads backwards? Why can't you increment past the begin()? Can you decrement past the begin() instead? And the opposite for the end(). On Sat, Dec 1,

Re: [clang-tools-extra] r348302 - [Documentation] Make options section in Clang-tidy readability-uppercase-literal-suffix consistent with other checks.

2018-12-04 Thread Roman Lebedev via cfe-commits
On Wed, Dec 5, 2018 at 12:21 AM Eugene Zelenko via cfe-commits wrote: > > Author: eugenezelenko > Date: Tue Dec 4 13:19:08 2018 > New Revision: 348302 > > URL: http://llvm.org/viewvc/llvm-project?rev=348302&view=rev > Log: > [Documentation] Make options section in Clang-tidy > readability-upperc

Re: [cfe-dev] r347339 - [clang][Parse] Diagnose useless null statements / empty init-statements

2018-12-04 Thread Roman Lebedev via cfe-commits
ld be worth it, as I haven’t seen bugs > > arising from extra semicolons and empty statements, > > but it would take care of my use case. > > > > Or rather when the *previous* semicolon is coming from a macro. I don't like this. clang is already wa-a-ay too forgiving ab

Re: r348471 - Add test for ObjC generics

2018-12-06 Thread Roman Lebedev via cfe-commits
Can you please write better commit messages, especially the first subject line? E.g. this should have been "[AST][NFC] Add dump test for ObjC generics" On Thu, Dec 6, 2018 at 12:26 PM Stephen Kelly via cfe-commits wrote: > > Author: steveire > Date: Thu Dec 6 01:23:59 2018 > New Revision: 348471

  1   2   3   4   >