[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

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

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] 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,

[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] 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] 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] 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] 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] 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 __

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:

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

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

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

[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

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

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

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.

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

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] 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-

[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] 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 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] 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] 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] 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] 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#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 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 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 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] 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

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

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

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

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

[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

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

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] 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

[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] 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 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:

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

[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] 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] 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] 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. 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

r341572 - Re-land r334417 "[MS] Use mangled names and comdats for string merging with ASan"

2018-09-06 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Sep 6 11:25:39 2018 New Revision: 341572 URL: http://llvm.org/viewvc/llvm-project?rev=341572&view=rev Log: Re-land r334417 "[MS] Use mangled names and comdats for string merging with ASan" The issue with -fprofile-generate was fixed and the dependent CL relanded in r340232

[PATCH] D51650: Implement target_clones multiversioning

2018-09-06 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 164251. erichkeane marked 9 inline comments as done. erichkeane added a comment. fix aaron's comments. https://reviews.llvm.org/D51650 Files: include/clang/AST/Decl.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic

[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 created this revision. tks2103 added reviewers: modocache, GorNishanov. Herald added a subscriber: cfe-commits. tks2103 edited the summary of this revision. Addressing https://bugs.llvm.org/show_bug.cgi?id=37265. Implements [class.copy]/33 of coroutines TS When the criteria for elision o

r341570 - [OPENMP] Fix PR38823: Do not emit vtable if it is not used in target

2018-09-06 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Sep 6 10:56:28 2018 New Revision: 341570 URL: http://llvm.org/viewvc/llvm-project?rev=341570&view=rev Log: [OPENMP] Fix PR38823: Do not emit vtable if it is not used in target context. If the explicit template instantiation definition defined outside of the target conte

[PATCH] D51650: Implement target_clones multiversioning

2018-09-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: rsmith. aaron.ballman added a comment. Thank you for this! I have some cursory review comments, and possibly more later. Comment at: include/clang/Basic/AttrDocs.td:1600 + let Content = [{ +Clang supports the GNU style ``__attribute__((target_c

[PATCH] D51697: [Sema] Clean up some __builtin_*_chk diagnostics

2018-09-06 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341566: [Sema] Clean up some __builtin_*_chk diagnostics (authored by epilk, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51697?vs=164087&i

r341566 - [Sema] Clean up some __builtin_*_chk diagnostics

2018-09-06 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Thu Sep 6 10:19:33 2018 New Revision: 341566 URL: http://llvm.org/viewvc/llvm-project?rev=341566&view=rev Log: [Sema] Clean up some __builtin_*_chk diagnostics Namely, print the likely macro name when it's used, and include the actual computed sizes in the diagnostic message,

[PATCH] D51084: Implement -Watomic-implicit-seq-cst

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb updated this revision to Diff 164235. jfb marked 4 inline comments as done. jfb added a comment. - Address comments. Repository: rC Clang https://reviews.llvm.org/D51084 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp test/Sema/atomic-implicit-seq_cst.c

[PATCH] D51084: Implement -Watomic-implicit-seq-cst

2018-09-06 Thread JF Bastien via Phabricator via cfe-commits
jfb added inline comments. Comment at: lib/Sema/SemaChecking.cpp:10974 + if (E->IgnoreParenImpCasts()->getType()->isAtomicType()) +return; CheckImplicitConversion(S, E->IgnoreParenImpCasts(), S.Context.BoolTy, CC); rjmccall wrote: > Can you explain this o

r341564 - Re-commit "Enable DWARF accelerator tables by default when tuning for lldb (-glldb => -gpubnames)""

2018-09-06 Thread Pavel Labath via cfe-commits
Author: labath Date: Thu Sep 6 10:01:45 2018 New Revision: 341564 URL: http://llvm.org/viewvc/llvm-project?rev=341564&view=rev Log: Re-commit "Enable DWARF accelerator tables by default when tuning for lldb (-glldb => -gpubnames)"" This recommits r341472, which was reverted due to test failures

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

2018-09-06 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. I don't have a strong opinion here. Repository: rC Clang https://reviews.llvm.org/D51714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D51510: Move AESNI generation to Skylake and Goldmont

2018-09-06 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Do you have commit access, or do you need someone to commit this for you? Repository: rC Clang https://reviews.llvm.org/D51510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

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

2018-09-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Agree with Kadir's comments. I'd just suggest reducing boilerplate a bit by taking some shortcuts. Comment at: clangd/index/Index.h:167 +enum class SymbolFlag : uint8

[PATCH] D51697: [Sema] Clean up some __builtin_*_chk diagnostics

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. LGTM Repository: rC Clang https://reviews.llvm.org/D51697 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[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: clangd/index/Index.h:171 + /// See also isIndexedForCodeCompletion(). + IsIndexedForCodeCompletion = 1 << 0, + /// Indicates if the symbol is deprecated. nit: rename to IndexedForCodeCompletion, since it is more of a

r341560 - Reverting r 341390 because it is causing test failures on GreenDragon.

2018-09-06 Thread A Bergen via cfe-commits
Author: sudofortune Date: Thu Sep 6 09:29:40 2018 New Revision: 341560 URL: http://llvm.org/viewvc/llvm-project?rev=341560&view=rev Log: Reverting r 341390 because it is causing test failures on GreenDragon. http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA-incremental/52810/ Modified:

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

2018-09-06 Thread Tom Stellard via Phabricator via cfe-commits
tstellar added a comment. In https://reviews.llvm.org/D51714#1225545, @mgorny wrote: > Is LLVM_CONFIG dropped from cache here? I suspect the warning might fire for > everyone who has LLVM configured. Yes, it is dropped from the cache, is it a problem to having the warning fire for people who

r341556 - Remove unnecessary semicolon to silence -Wpedantic warning. NFCI.

2018-09-06 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Sep 6 08:16:17 2018 New Revision: 341556 URL: http://llvm.org/viewvc/llvm-project?rev=341556&view=rev Log: Remove unnecessary semicolon to silence -Wpedantic warning. NFCI. Modified: cfe/trunk/lib/Sema/SemaExceptionSpec.cpp Modified: cfe/trunk/lib/Sema/SemaExceptio

[PATCH] D51302: [OpenCL] Relax diagnostics on OpenCL access qualifiers

2018-09-06 Thread Andrew Savonichev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341553: [OpenCL] Relax diagnostics on OpenCL access qualifiers (authored by asavonic, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51302?vs

[PATCH] D51302: [OpenCL] Relax diagnostics on OpenCL access qualifiers

2018-09-06 Thread Andrew Savonichev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC341553: [OpenCL] Relax diagnostics on OpenCL access qualifiers (authored by asavonic, committed by ). Repository: rC Clang https://reviews.llvm.org/D51302 Files: lib/Sema/SemaDeclAttr.cpp lib/Sema

r341553 - [OpenCL] Relax diagnostics on OpenCL access qualifiers

2018-09-06 Thread Andrew Savonichev via cfe-commits
Author: asavonic Date: Thu Sep 6 08:10:26 2018 New Revision: 341553 URL: http://llvm.org/viewvc/llvm-project?rev=341553&view=rev Log: [OpenCL] Relax diagnostics on OpenCL access qualifiers Summary: Emit warning for multiple access qualifiers if they do not conflict. Patch by Alexey Bader Revie

[clang-tools-extra] r341552 - [clangd] Fix Dex initialization

2018-09-06 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Sep 6 08:10:10 2018 New Revision: 341552 URL: http://llvm.org/viewvc/llvm-project?rev=341552&view=rev Log: [clangd] Fix Dex initialization This patch sets URI schemes of Dex to SymbolCollector's default schemes in case callers tried to pass empty list of schemes. This w

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

2018-09-06 Thread Whisperity via Phabricator via cfe-commits
whisperity added a comment. In https://reviews.llvm.org/D50488#1225064, @george.karpenkov wrote: > Why explicitly skip C projects? We would not be able to match `std::X` > functions anyway. Why spend time constructing matchers and running on the AST when we are sure that generating any resul

[libcxx] r341551 - [libc++] Add a link to the Release notes from the main libc++ documentation

2018-09-06 Thread Louis Dionne via cfe-commits
Author: ldionne Date: Thu Sep 6 08:05:43 2018 New Revision: 341551 URL: http://llvm.org/viewvc/llvm-project?rev=341551&view=rev Log: [libc++] Add a link to the Release notes from the main libc++ documentation Modified: libcxx/trunk/docs/index.rst Modified: libcxx/trunk/docs/index.rst URL:

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

2018-09-06 Thread James Greenhalgh via Phabricator via cfe-commits
jgreenhalgh added inline comments. Comment at: cfe/trunk/utils/TableGen/NeonEmitter.cpp:2412 - OS << "#define __ai static inline __attribute__((__always_inline__, " + OS << "#define __ai static __inline __attribute__((__always_inline__, " "__nodebug__))\n\n"; ---

[libcxx] r341550 - [libcxx] Add ReleaseNotes.rst file for release notes

2018-09-06 Thread Louis Dionne via cfe-commits
Author: ldionne Date: Thu Sep 6 07:46:22 2018 New Revision: 341550 URL: http://llvm.org/viewvc/llvm-project?rev=341550&view=rev Log: [libcxx] Add ReleaseNotes.rst file for release notes Added: libcxx/trunk/docs/ReleaseNotes.rst Added: libcxx/trunk/docs/ReleaseNotes.rst URL: http://llvm.org

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

2018-09-06 Thread Reid Kleckner via Phabricator via cfe-commits
rnk requested changes to this revision. rnk added a comment. This revision now requires changes to proceed. Still needs a test. https://reviews.llvm.org/D42370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D51722: [OpenCL] Allow blocks to capture arrays in OpenCL

2018-09-06 Thread Dmitry Sidorov via Phabricator via cfe-commits
sidorovd updated this revision to Diff 164214. sidorovd added a comment. Reference to the Spec was added https://reviews.llvm.org/D51722 Files: lib/Sema/SemaExpr.cpp test/SemaOpenCL/block-array-capturing.cl Index: test/SemaOpenCL/block-array-capturing.cl ==

[PATCH] D51484: [OpenCL] Add support of cl_intel_device_side_avc_motion_estimation extension

2018-09-06 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/OpenCLExtensionTypes.def:27 + +INTEL_SGAVC_TYPE(mce_payload_t, McePayload) +INTEL_SGAVC_TYPE(ime_payload_t, ImePayload) AlexeySachkov wrote: > Anastasia wrote: > > From the specification of this ext

  1   2   >