[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-09-06 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 added a comment. currently changes the behavior for a few cases: something like void coro() { co_return {4}; } throws `illegal initializer type 'void'` Repository: rC Clang https://reviews.llvm.org/D51741 ___ cfe-commits mailin

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov updated this revision to Diff 164255. george.karpenkov marked 2 inline comments as done. https://reviews.llvm.org/D51393 Files: llvm/include/llvm/Support/Allocator.h Index: llvm/include/llvm/Support/Allocator.h =

[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-09-06 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 added a comment. also fails https://github.com/llvm-mirror/clang/blob/master/test/SemaCXX/coroutines.cpp#L494 with `address of overloaded function 'g' does not match required type ''` also fails https://github.com/llvm-mirror/clang/blob/master/test/SemaCXX/coroutines.cpp#L505 with `ad

[PATCH] D51714: CMake: Deprecate using llvm-config to detect llvm installation

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
steveire accepted this revision. steveire added a comment. This revision is now accepted and ready to land. Brilliant, I've wanted to do this for years, and I still have many improvements to the LLVM/Clang cmake files on my todo list. Good to know others are similarly motivated. =

[PATCH] D51724: [clangd] Add "Deprecated" field to Symbol and CodeCompletion.

2018-09-06 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 164258. ioeric marked 5 inline comments as done. ioeric added a comment. - addressed review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51724 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Protocol.cpp clangd

[PATCH] D51724: [clangd] Add "Deprecated" field to Symbol and CodeCompletion.

2018-09-06 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 164259. ioeric added a comment. - merged with origin/master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51724 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Protocol.cpp clangd/Protocol.h clangd/Quality.cpp clangd

[clang-tools-extra] r341576 - [clangd] Add "Deprecated" field to Symbol and CodeCompletion.

2018-09-06 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 6 11:52:26 2018 New Revision: 341576 URL: http://llvm.org/viewvc/llvm-project?rev=341576&view=rev Log: [clangd] Add "Deprecated" field to Symbol and CodeCompletion. Summary: Also set "deprecated" field in LSP CompletionItem. Reviewers: sammccall, kadircet Reviewed

[PATCH] D51724: [clangd] Add "Deprecated" field to Symbol and CodeCompletion.

2018-09-06 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE341576: [clangd] Add "Deprecated" field to Symbol and CodeCompletion. (authored by ioeric, committed by ). Changed prior to commit: https://reviews.llvm.org/D51724?vs=164259&id=164260#toc Repository:

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. How? This is 'private' code. I don't think it's worth changing that or creating a test with a huge amount of infrastructure in order to test this indirectly. Am I missing something? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51192 _

[PATCH] D51724: [clangd] Add "Deprecated" field to Symbol and CodeCompletion.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: unittests/clangd/SymbolCollectorTests.cpp:1020 + const std::string Header = R"( +void TestClangc() __attribute__((deprecated("", ""))); +void TestClangd(); No need for the optional parameters, ``` void TestCl

[PATCH] D51747: [clangd] Implement deprecation diagnostics with lower severity.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added reviewers: ioeric, sammccall, ilya-biryukov, hokein. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay. Adds deprecation warnings to diagnostics. Also lowers the severity from warning to notes to not to annoy people that work on big co

Re: r341141 - Extract parseBindID method

2018-09-06 Thread Stephen Kelly via cfe-commits
Yes, this was a prerequisite to https://reviews.llvm.org/D51259. For some reason the reviewer accepted that one, but not this one. I simply assumed that was a mistake and committed this one. Perhaps part of the problem is that I do one thing per commit, and that confuses reviewers. Maybe I s

[PATCH] D51741: [coro]Pass rvalue reference for named local variable to return_value

2018-09-06 Thread Tanoy Sinha via Phabricator via cfe-commits
tks2103 updated this revision to Diff 164265. tks2103 added a comment. get NRVOCandidate to determine if we should try to move return var Repository: rC Clang https://reviews.llvm.org/D51741 Files: lib/Sema/SemaCoroutine.cpp test/SemaCXX/coroutine-rvo.cpp Index: test/SemaCXX/coroutine-

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D51192#1226257, @steveire wrote: > How? This is 'private' code. I don't think it's worth changing that or > creating a test with a huge amount of infrastructure in order to test this > indirectly. This is changing the observable behav

[PATCH] D51747: [clangd] Implement deprecation diagnostics with lower severity.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clangd/Diagnostics.cpp:299 +D.Severity = +D.Category == "Deprecations" ? DiagnosticsEngine::Note : DiagLevel; return D; Couldn't find a better way to check for this one. Category types are coming from

[PATCH] D51747: [clangd] Implement deprecation diagnostics with lower severity.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 164268. kadircet added a comment. - Formatting. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51747 Files: clangd/ClangdServer.cpp clangd/Diagnostics.cpp unittests/clangd/ClangdUnitTests.cpp Index: unittests/clangd/ClangdUnitTests

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. In https://reviews.llvm.org/D51192#1226282, @aaron.ballman wrote: > In https://reviews.llvm.org/D51192#1226257, @steveire wrote: > > > How? This is 'private' code. I don't think it's worth changing that or > > creating a test with a huge amount of infrastructure in or

Re: r341141 - Extract parseBindID method

2018-09-06 Thread Roman Lebedev via cfe-commits
On Thu, Sep 6, 2018 at 10:05 PM, Stephen Kelly via cfe-commits wrote: > > Yes, this was a prerequisite to https://reviews.llvm.org/D51259. For some > reason the reviewer accepted that one, but not this one. I simply assumed > that was a mistake and committed this one. I'm not sure this is how the

Re: r341141 - Extract parseBindID method

2018-09-06 Thread Stephen Kelly via cfe-commits
On 06/09/18 20:42, Roman Lebedev wrote: You can specify the dependencies between the differentials in phabricator. I didn't know that, thanks! ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D51192#1226312, @steveire wrote: > In https://reviews.llvm.org/D51192#1226282, @aaron.ballman wrote: > > > I'd probably pipe the diagnostic output to a temporary file that gets > > FileChecked with strict whitespace to see if the underli

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. As far as I know, no existing clang-tidy checks are affected. I discovered this while implementing a custom check. See https://bugs.llvm.org/show_bug.cgi?id=38678 By the way, is there some keyword I should use in commit messages to link to bugs properly? Repository:

[PATCH] D51683: Fix arm_neon.h and arm_fp16.h generation for compiling with std=c89

2018-09-06 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. Correct. The protected name is double underscore as both suffix and prefix. https://reviews.llvm.org/D51683 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D51192#1226326, @steveire wrote: > As far as I know, no existing clang-tidy checks are affected. I discovered > this while implementing a custom check

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added a comment. Thanks. The `arc` tool already inserted `Differential Revision:` into my git commit, but that's not what I wonder about. I'm looking for something I can insert into my git commit so that the bug will automatically be closed when I commit (and so that the bug will get

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D51192#1226341, @steveire wrote: > Thanks. > > The `arc` tool already inserted `Differential Revision:` into my git commit, > but that's not what I wonder about. I'm looking for something I can insert > into my git commit so that the bu

[clang-tools-extra] r341583 - Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via cfe-commits
Author: steveire Date: Thu Sep 6 13:16:34 2018 New Revision: 341583 URL: http://llvm.org/viewvc/llvm-project?rev=341583&view=rev Log: Fix reported range of partial token replacement Summary: Fixes bug: 38678 Reviewers: klimek, rsmith Subscribers: cfe-commits Differential Revision: https://rev

[PATCH] D51192: Fix reported range of partial token replacement

2018-09-06 Thread Stephen Kelly via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE341583: Fix reported range of partial token replacement (authored by steveire, committed by ). Changed prior to commit: https://reviews.llvm.org/D51192?vs=163447&id=164275#toc Repository: rCTE Clan

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb created this revision. Herald added subscribers: cfe-commits, dexonsmith. This code was in CGDecl.cpp and really belongs to Constant. This will allow me to use it in a subsequent patch. LLVM part of this patch: https://reviews.llvm.org/D51751 Repository: rC Clang https://reviews.llvm.org

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB added a comment. - I'm not a good person to review clang changes. - I assume the review lacks the changes on the llvm side? - On the LLVM side this feels like something for `Analysis/ValueTracking.h` in fact I already see `Value *isBytewiseValue(Value *V);` there, maybe that is good enoug

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb added a comment. In https://reviews.llvm.org/D51752#1226462, @MatzeB wrote: > - I'm not a good person to review clang changes. > - I assume the review lacks the changes on the llvm side? > - On the LLVM side this feels like something for `Analysis/ValueTracking.h` > in fact I already see `Va

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb added a comment. In https://reviews.llvm.org/D51752#1226465, @jfb wrote: > In https://reviews.llvm.org/D51752#1226462, @MatzeB wrote: > > > - I'm not a good person to review clang changes. > > - I assume the review lacks the changes on the llvm side? > > - On the LLVM side this feels like som

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB added a comment. In https://reviews.llvm.org/D51752#1226462, @MatzeB wrote: > - I assume the review lacks the changes on the llvm side? Oops missed the link to the llvm changes in the description... At least in theory you should be able to make a review over all changes in parallel by

[PATCH] D51752: NFC: move isRepeatedBytePattern from clang to Constant

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb added a comment. In https://reviews.llvm.org/D51752#1226474, @MatzeB wrote: > In https://reviews.llvm.org/D51752#1226462, @MatzeB wrote: > > > - I assume the review lacks the changes on the llvm side? > > > Oops missed the link to the llvm changes in the description... At least in > theory y

[PATCH] D51395: [analyzer] Dump a reproducible, deterministic ID of program state to exploded graph

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. I very very much appreciate this. https://reviews.llvm.org/D51395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov updated this revision to Diff 164291. https://reviews.llvm.org/D51393 Files: llvm/include/llvm/Support/Allocator.h Index: llvm/include/llvm/Support/Allocator.h === --- llvm/include/llvm/Support/Allocator.h +++ ll

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov updated this revision to Diff 164292. https://reviews.llvm.org/D51393 Files: llvm/include/llvm/Support/Allocator.h Index: llvm/include/llvm/Support/Allocator.h === --- llvm/include/llvm/Support/Allocator.h +++ ll

[PATCH] D42370: Issue local statics in correct DWARF lexical scope

2018-09-06 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Just to clarify - the general philosophy (there are many cases of exceptions due to complications in various areas) is that clang changes should have clang tests (source code to IR), LLVM changes should have LLVM tests (IR to assembly or object code+dwarf dump) & if de

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov updated this revision to Diff 164294. george.karpenkov added a comment. More casts. https://reviews.llvm.org/D51393 Files: llvm/include/llvm/Support/Allocator.h Index: llvm/include/llvm/Support/Allocator.h ===

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. I'm happy with the code. Comment at: llvm/include/llvm/Support/Allocator.h:298 + if (P >= S && P < S + computeSlabSize(Idx)) +return InSlabIdx + static_cast(P - S); +

[PATCH] D51038: [clang] Make sure codecompletion is called for calls even when inside a token.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: test/Index/complete-block-property-assignment.m:71 +// RUN: c-index-test -code-completion-at=%s:54:15 %s | FileCheck -check-prefix=CHECK-NO1 %s +// CHECK-NO1: ObjCPropertyDecl:{ResultType int}{TypedText foo} (35) ily

[PATCH] D51038: [clang] Make sure codecompletion is called for calls even when inside a token.

2018-09-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 164307. kadircet added a comment. - Fix tests. Repository: rC Clang https://reviews.llvm.org/D51038 Files: include/clang/Parse/Parser.h lib/Parse/ParseExpr.cpp test/CodeCompletion/function-overloads-inside-param.cpp test/CodeCompletion/function-

r341600 - [analyzer] Dump a reproducible, deterministic ID of program state to exploded graph

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 16:07:26 2018 New Revision: 341600 URL: http://llvm.org/viewvc/llvm-project?rev=341600&view=rev Log: [analyzer] Dump a reproducible, deterministic ID of program state to exploded graph Differential Revision: https://reviews.llvm.org/D51395 Modified:

[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341599: Provide a method for generating deterministic IDs for pointers allocated in… (authored by george.karpenkov, committed by ). Changed prior to commit: https://reviews.llvm.org/D51393?vs=164294&id=

r341601 - [analyzer] Remove traces of ubigraph visualization

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 16:07:47 2018 New Revision: 341601 URL: http://llvm.org/viewvc/llvm-project?rev=341601&view=rev Log: [analyzer] Remove traces of ubigraph visualization Ubigraph project has been dead since about 2008, and to the best of my knowledge, no one was using it.

r341602 - [analyzer] Dump stable identifiers for exploded nodes

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 16:08:07 2018 New Revision: 341602 URL: http://llvm.org/viewvc/llvm-project?rev=341602&view=rev Log: [analyzer] Dump stable identifiers for exploded nodes Differential Revision: https://reviews.llvm.org/D51667 Modified: cfe/trunk/include/clang/Static

[PATCH] D51655: [analyzer] Remove traces of ubigraph visualization

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341601: [analyzer] Remove traces of ubigraph visualization (authored by george.karpenkov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D5165

[PATCH] D51395: [analyzer] Dump a reproducible, deterministic ID of program state to exploded graph

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341600: [analyzer] Dump a reproducible, deterministic ID of program state to exploded… (authored by george.karpenkov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: ht

r341603 - [analyzer] [NFC] Move dumping program point into a separate function

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 16:08:27 2018 New Revision: 341603 URL: http://llvm.org/viewvc/llvm-project?rev=341603&view=rev Log: [analyzer] [NFC] Move dumping program point into a separate function Differential Revision: https://reviews.llvm.org/D51666 Modified: cfe/trunk/lib/S

[PATCH] D51189: [Sema][ObjC] Infer availability of +new from availability of -init

2018-09-06 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. In https://reviews.llvm.org/D51189#1211910, @steven_wu wrote: > I feel like this is a much tricky situation than just new and init. Following > example is the same situation. > > __attribute__((objc_root_class)) > @interface NSObject > - (void) foo; > - (

[PATCH] D51189: [Sema][ObjC] Infer availability of +new from availability of -init

2018-09-06 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 164316. erik.pilkington marked 4 inline comments as done. erik.pilkington added a comment. Address @arphaman's review comments. https://reviews.llvm.org/D51189 Files: clang/include/clang/AST/ASTContext.h clang/include/clang/AST/DeclObjC.h clan

[PATCH] D47344: LWG 2843 "Unclear behavior of std::pmr::memory_resource::do_allocate()"

2018-09-06 Thread Arthur O'Dwyer via Phabricator via cfe-commits
Quuxplusone added a comment. @EricWF ping? Repository: rCXX libc++ https://reviews.llvm.org/D47344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r341617 - [analyzer] Push updating-the-executed-lines logic into the BugReporter.

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 17:42:53 2018 New Revision: 341617 URL: http://llvm.org/viewvc/llvm-project?rev=341617&view=rev Log: [analyzer] Push updating-the-executed-lines logic into the BugReporter. So it can be reused across different consumers. Differential Revision: https://re

r341616 - [analyzer] Skip printing trivial nodes in exploded graph

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 17:42:32 2018 New Revision: 341616 URL: http://llvm.org/viewvc/llvm-project?rev=341616&view=rev Log: [analyzer] Skip printing trivial nodes in exploded graph A node is considered to be trivial if it only has one successor, one predecessor, and a state equ

r341619 - [analyzer] Executed lines: store file IDs, not hashes.

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 17:43:37 2018 New Revision: 341619 URL: http://llvm.org/viewvc/llvm-project?rev=341619&view=rev Log: [analyzer] Executed lines: store file IDs, not hashes. Raw FileIDs are needed for the PlistDiagnostics to produce stable filenames. Differential Revision

cfe-commits@lists.llvm.org

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 17:43:55 2018 New Revision: 341620 URL: http://llvm.org/viewvc/llvm-project?rev=341620&view=rev Log: [analyzer] [NFC] Prefer passing around reference to std::unique_ptr& When object is owned elsewhere Differential Revision: https://reviews.llvm.org/D5166

r341618 - [analyzer] Do not add invalid source location to the coverage information

2018-09-06 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Sep 6 17:43:17 2018 New Revision: 341618 URL: http://llvm.org/viewvc/llvm-project?rev=341618&view=rev Log: [analyzer] Do not add invalid source location to the coverage information Invalid source locations may arise from generated code. Differential Revision:

[PATCH] D45416: [AST, analyzer] Transform rvalue cast outputs to lvalues (fheinous-gnu-extensions)

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Herald added a subscriber: Szelethus. Dunno, i guess you can just commit it. Comment at: lib/Sema/SemaStmtAsm.cpp:57 + } +Parent = Child; + } Like father, like son :D Repository: rC Clang https://reviews.llvm.org/D45416 __

[PATCH] D51515: [analyzer] Add coverage information to plist output, update tests

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341621: [analyzer] Add coverage information to plist output, update tests (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.

[PATCH] D51669: [analyzer] [NFC] Prefer passing raw reference to value instead of a reference to unique_ptr

2018-09-06 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341620: [analyzer] [NFC] Prefer passing around reference to std::unique_ptr& (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://revie

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/cstring-syntax.c:49 + strlcat(dest, "0123456789", badlen / 2); + strlcat(dest, "0123456789", badlen); // expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value 'ba

[PATCH] D50488: [Analyzer] Checker for non-determinism caused by sorting of pointer-like elements

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I'm generally fine with landing the patch as long as the overall direction is chosen (and be moved towards) for how to safely identify the non-deterministic iterators (my previous inline question). This has to be addressed before we move out of alpha, but i believe we shoul

[PATCH] D51057: [analyzer][UninitializedObjectChecker] Fixed dereferencing

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp:126-127 if (V.isUndef()) { +assert(!FR->getDecl()->getType()->isReferenceType() && + "References must be initialized!"); return addFieldToUninits

[PATCH] D51417: [analyzer][UninitializedObjectChecker] Updated comments

2018-09-06 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Comments always welcome! Comment at: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp:363-364 + + // ImmutableList::getHead() isn't a const method,

r341629 - [Sema] Check that the destructor for each element of class type is

2018-09-06 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Thu Sep 6 19:38:01 2018 New Revision: 341629 URL: http://llvm.org/viewvc/llvm-project?rev=341629&view=rev Log: [Sema] Check that the destructor for each element of class type is accessible from the context where aggregate initialization occurs. rdar://problem/38168772 Dif

[PATCH] D45898: [SemaCXX] Mark destructor as referenced

2018-09-06 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341629: [Sema] Check that the destructor for each element of class type is (authored by ahatanak, committed by ). Repository: rC Clang https://reviews.llvm.org/D45898 Files: lib/Sema/SemaInit.cpp

[PATCH] D51281: [libclang] Return the proper pointee type for 'auto' deduced to pointer

2018-09-06 Thread Michael Wu via Phabricator via cfe-commits
michaelwu accepted this revision. michaelwu added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D51281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-06 Thread David CARLIER via Phabricator via cfe-commits
devnexen added inline comments. Comment at: test/Analysis/cstring-syntax.c:49 + strlcat(dest, "0123456789", badlen / 2); + strlcat(dest, "0123456789", badlen); // expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the valu

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-09-06 Thread Takuto Ikuta via Phabricator via cfe-commits
takuto.ikuta updated this revision to Diff 164353. takuto.ikuta edited the summary of this revision. takuto.ikuta added a comment. Herald added a subscriber: dschuff. Make patch closer to Nico's original implementation, but warns local static variable instead of detecting it. In checkClassLevelDL

[PATCH] D51340: Add /Zc:DllexportInlines option to clang-cl

2018-09-06 Thread Takuto Ikuta via Phabricator via cfe-commits
takuto.ikuta marked 4 inline comments as done. takuto.ikuta added inline comments. Comment at: clang/include/clang/Basic/LangOptions.def:117 LANGOPT(Digraphs , 1, 0, "digraphs") +LANGOPT(DllexportInlines , 1, 1, "If dllexport a class should dllexport implicit inline m

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-06 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 164355. devnexen added a comment. - Correcting misleading message and advising proper fix. https://reviews.llvm.org/D49722 Files: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp test/Analysis/cstring-syntax.c Index: test/Analysis/cstring-syntax.c

[PATCH] D51771: [X86] Modify addcarry/subborrow builtins to emit an 2 result and intrinsic and an store instruction.

2018-09-06 Thread Craig Topper via Phabricator via cfe-commits
craig.topper created this revision. craig.topper added reviewers: RKSimon, spatel. Herald added subscribers: cfe-commits, kristina. This is the clang side of https://reviews.llvm.org/D51769. The llvm intrinsics now return two results instead of using an out parameter. Repository: rC Clang ht

<    1   2