[PATCH] D28765: CStringChecker can crash when uninitialized checks are disabled

2017-01-19 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. You might want to give CodeChecker [1] a try as a workaround. It stores the results in a more compact format and you can do filtering. [1] https://github.com/Ericsson/codechecker https://reviews.llvm.org/D28765 ___

[PATCH] D28765: CStringChecker can crash when uninitialized checks are disabled

2017-01-19 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
vlad.tsyrklevich abandoned this revision. vlad.tsyrklevich added a comment. The motivation was to make resulting output easier to navigate and to cut the result size by ~90%, one default run against the FreeBSD kernel takes 3 gigs of storage and I'm running several builds a day as I iterate on

Re: [libcxx] r292582 - Still expose std::align_val_t in C++17 even if we don't have aligned new/delete.

2017-01-19 Thread Eric Fiselier via cfe-commits
Hi All, This patch addresses issues introduced by r292564. Specifically it makes `align_val_t.pass.cpp` pass in C++17 even if the system doesn't support aligned new/delete. Because r292564 was merged into 4.0, this should be as well. @Marshall can you OK this? /Eric On Thu, Jan 19, 2017 at

[libcxx] r292582 - Still expose std::align_val_t in C++17 even if we don't have aligned new/delete.

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 20 00:27:34 2017 New Revision: 292582 URL: http://llvm.org/viewvc/llvm-project?rev=292582=rev Log: Still expose std::align_val_t in C++17 even if we don't have aligned new/delete. r292564 disabled the aligned new/delete overloads on platforms without posix_memalign.

[PATCH] D28938: Implement P0513R0 - "Poisoning the Hash"

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Exactly what the title says. This patch also adds a `std::hash` specialization in C++17, but it was not added by this paper and I can't find the actual paper that adds it. See http://wg21.link/P0513R0 for more info. If there are no comments in the next couple of

[PATCH] D25556: [Sema] Add variable captured by a block to the enclosing lambda's potential capture list

2017-01-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added reviewers: ABataev, malcolm.parsons. ahatanak added a comment. Add a few more people who have looked at this part of clang in the past to the reviewers list. https://reviews.llvm.org/D25556 ___ cfe-commits mailing list

[libcxx] r292577 - Refactor unique_ptr/shared_ptr deleter test types into single header.

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 22:39:17 2017 New Revision: 292577 URL: http://llvm.org/viewvc/llvm-project?rev=292577=rev Log: Refactor unique_ptr/shared_ptr deleter test types into single header. Added: libcxx/trunk/test/support/deleter_types.h - copied, changed from r292564,

[PATCH] D28849: [compiler-rt] [test] Fix page address logic in clear_cache_test

2017-01-19 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: test/builtins/Unit/clear_cache_test.c:71 +char* start = (char*)((uintptr_t)execution_buffer & (-get_page_size())); +char* end = (char*)((uintptr_t)(_buffer[128+4096]) & (-get_page_size())); #if defined(_WIN32)

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose closed this revision. jordan_rose added a comment. Landed as-is in https://reviews.llvm.org/rL292571. Repository: rL LLVM https://reviews.llvm.org/D28924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r292571 - [AST Printer] Print attributes on enum constants

2017-01-19 Thread Jordan Rose via cfe-commits
Author: jrose Date: Thu Jan 19 21:33:42 2017 New Revision: 292571 URL: http://llvm.org/viewvc/llvm-project?rev=292571=rev Log: [AST Printer] Print attributes on enum constants The AST printer was dropping attributes on enumerators (enum constants). Now it's not. Modified:

[PATCH] D28933: Revert the return type for `emplace_(back|front)` to `void` in C++14 and before

2017-01-19 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists created this revision. In C++11/14, the return type of `emplace_front` and `emplace_back` was `void`. In http://wg21.link/p0084, Alan Talbot proposed changing the return type to return a reference to the newly created element. We implemented that - but unilaterally. This changes

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Greg Parker via Phabricator via cfe-commits
gparker42 added a comment. No, the old versions of OS X that lack `posix_memalign` also lack `aligned_alloc`. https://reviews.llvm.org/D28931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r292497 - [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode

2017-01-19 Thread Richard Smith via cfe-commits
On 19 January 2017 at 15:52, Hans Wennborg wrote: > Richard, what do you think? Yes, let's merge this. > On Thu, Jan 19, 2017 at 9:34 AM, Alex L wrote: > > Hi Hans, > > > > Would it be possible to merge this for 4.0? > > > > Cheers, > > Alex > > > > On

r292568 - [test] Remove an unwanted match for `UNSUPPORTED:`.

2017-01-19 Thread Greg Parker via cfe-commits
Author: gparker Date: Thu Jan 19 20:12:22 2017 New Revision: 292568 URL: http://llvm.org/viewvc/llvm-project?rev=292568=rev Log: [test] Remove an unwanted match for `UNSUPPORTED:`. Modified: cfe/trunk/test/Driver/embed-bitcode.c Modified: cfe/trunk/test/Driver/embed-bitcode.c URL:

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Richard Smith via Phabricator via cfe-commits
rsmith added a comment. Does OS X have the C11 `aligned_alloc` function? Perhaps we could use that instead, when available. https://reviews.llvm.org/D28931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [libcxx] r292564 - Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via cfe-commits
Merged. Relevant commits: * r292566 - Merge r292564 * r292565 - Merge r292560 /Eric ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r292566 - Merge r292564 - Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 19:54:53 2017 New Revision: 292566 URL: http://llvm.org/viewvc/llvm-project?rev=292566=rev Log: Merge r292564 - Disable aligned new/delete on Apple platforms without posix_memalign This patch disables the aligned new/delet overloads on Apple platforms without

[libcxx] r292565 - Merge r292560 - [NFC] Group aligned new/delete definitions together in new.cpp

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 19:52:28 2017 New Revision: 292565 URL: http://llvm.org/viewvc/llvm-project?rev=292565=rev Log: Merge r292560 - [NFC] Group aligned new/delete definitions together in new.cpp Modified: libcxx/branches/release_40/src/new.cpp Modified:

Re: [libcxx] r292564 - Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via cfe-commits
Hi Hans, Marshall gave this commit and r292560 permission to be merged into 4.0, which I will being doing shortly. /Eric On Thu, Jan 19, 2017 at 6:47 PM, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Thu Jan 19 19:47:26 2017 > New Revision: 292564

[libcxx] r292564 - Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 19:47:26 2017 New Revision: 292564 URL: http://llvm.org/viewvc/llvm-project?rev=292564=rev Log: Disable aligned new/delete on Apple platforms without posix_memalign Summary: This patch disables the aligned new/delet overloads on Apple platforms without

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D28931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 85082. EricWF added a comment. - Move `__config` block lower down in the file as suggested by Marshall. https://reviews.llvm.org/D28931 Files: include/__config include/new src/new.cpp Index: src/new.cpp

[PATCH] D28349: [Frontend] The macro that describes the Objective-C bool type should be defined in C as well

2017-01-19 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini accepted this revision. mehdi_amini added a comment. This revision is now accepted and ready to land. LGTM. Repository: rL LLVM https://reviews.llvm.org/D28349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 85080. EricWF added a comment. - Remove `` include in place of defining the required macros manually. https://reviews.llvm.org/D28931 Files: include/__config include/new src/new.cpp Index: src/new.cpp

[PATCH] D28793: [NVPTX] Auto-upgrade some NVPTX intrinsics to LLVM target-generic code.

2017-01-19 Thread Justin Lebar via Phabricator via cfe-commits
jlebar marked 4 inline comments as done. jlebar added a comment. Sorry about that broken code in the clang headers. All removed now; we established it's not needed. PHAL. https://reviews.llvm.org/D28793 ___ cfe-commits mailing list

[PATCH] D28793: [NVPTX] Auto-upgrade some NVPTX intrinsics to LLVM target-generic code.

2017-01-19 Thread Justin Lebar via Phabricator via cfe-commits
jlebar updated this revision to Diff 85076. jlebar added a comment. Remove (broken) implementations of removed intrinsics from clang. We realized we don't need this, as none of these intrinsics are accessible to user code in nvcc. https://reviews.llvm.org/D28793 Files:

[PATCH] D28785: Split exception.cpp and new.cpp implementation into different files for different runtimes

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D28785#650101, @compnerd wrote: > While I love this direction (the original version really was an > unintelligible pile of code), I really think that this change may be taking > on too much. Why not split it up first and do nothing else. We

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D28924#651139, @jordan_rose wrote: > Interestingly, this case doesn't actually work yet; we unconditionally print > enum attributes after the close-brace even though that's not valid for C++ > attributes. Do you think I should change

r292562 - clang-format: fix fallback style set to "none" not always formatting

2017-01-19 Thread Antonio Maiorano via cfe-commits
Author: amaiorano Date: Thu Jan 19 19:22:42 2017 New Revision: 292562 URL: http://llvm.org/viewvc/llvm-project?rev=292562=rev Log: clang-format: fix fallback style set to "none" not always formatting This fixes clang-format not formatting if fallback-style is explicitly set to "none", and either

[PATCH] D28844: clang-format: fix fallback style set to "none" not formatting

2017-01-19 Thread Antonio Maiorano via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292562: clang-format: fix fallback style set to "none" not always formatting (authored by amaiorano). Changed prior to commit: https://reviews.llvm.org/D28844?vs=84795=85074#toc Repository: rL LLVM

r292561 - PR31701: Fix crash on invalid caused by parsing a dependent initializer when we

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 19:19:46 2017 New Revision: 292561 URL: http://llvm.org/viewvc/llvm-project?rev=292561=rev Log: PR31701: Fix crash on invalid caused by parsing a dependent initializer when we don't know we're in a dependent context. Modified: cfe/trunk/lib/AST/ASTContext.cpp

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 85072. EricWF added a comment. - Remove NFC parts of this patch and commit them to master. https://reviews.llvm.org/D28931 Files: include/__config include/new src/new.cpp Index: src/new.cpp

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose added a comment. Interestingly, this case doesn't actually work yet; we unconditionally print enum attributes after the close-brace even though that's not valid for C++ attributes. Do you think I should change that as well, or just land this patch as is? Repository: rL LLVM

[libcxx] r292560 - [NFC] Group aligned new/delete definitions together in new.cpp

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 19:13:49 2017 New Revision: 292560 URL: http://llvm.org/viewvc/llvm-project?rev=292560=rev Log: [NFC] Group aligned new/delete definitions together in new.cpp This patch is cleanup to prepare for future changes Modified: libcxx/trunk/src/new.cpp Modified:

Re: r292555 - P0426: Make the library implementation of constexpr char_traits a little easier

2017-01-19 Thread Richard Smith via cfe-commits
Hans, can we get this onto the Clang 4 release branch (along with the documentation added in r292558 and fixed in r292559)? This will allow us to avoid libc++ carrying a version test for Clang, and allow it to cleanly finish off its implementation of P0426. On 19 January 2017 at 16:45, Richard

r292559 - Fix documentation typo.

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 19:08:15 2017 New Revision: 292559 URL: http://llvm.org/viewvc/llvm-project?rev=292559=rev Log: Fix documentation typo. Modified: cfe/trunk/docs/LanguageExtensions.rst Modified: cfe/trunk/docs/LanguageExtensions.rst URL:

[PATCH] D28931: Disable aligned new/delete on Apple platforms without posix_memalign

2017-01-19 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This patch disables the aligned new/delet overloads on Apple platforms without `posix_memalign`. This fixes libc++.dylib build regressions on such platforms. This fixes http://llvm.org/PR31448. This patch should also be merged into the 4.0 release branch

r292558 - Add documentation for constexpr string builtin support.

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 18:57:59 2017 New Revision: 292558 URL: http://llvm.org/viewvc/llvm-project?rev=292558=rev Log: Add documentation for constexpr string builtin support. Modified: cfe/trunk/docs/LanguageExtensions.rst Modified: cfe/trunk/docs/LanguageExtensions.rst URL:

r292555 - P0426: Make the library implementation of constexpr char_traits a little easier

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 18:45:35 2017 New Revision: 292555 URL: http://llvm.org/viewvc/llvm-project?rev=292555=rev Log: P0426: Make the library implementation of constexpr char_traits a little easier by providing a memchr builtin that returns char* instead of void*. Also add a

r292545 - Finish implementation of C++ DR1310 (http://wg21.link/cwg1310).

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 18:20:39 2017 New Revision: 292545 URL: http://llvm.org/viewvc/llvm-project?rev=292545=rev Log: Finish implementation of C++ DR1310 (http://wg21.link/cwg1310). Diagnose the case when a dependent template name instantiates to an injected-class-name outside a

Buildbot numbers for the week of 01/08/2017 - 01/14/2017

2017-01-19 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 01/08/2017 - 01/14/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status

Buildbot numbers for the week of 01/01/2017 - 01/07/2017

2017-01-19 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 01/01/2017 - 01/07/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status from

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose added a comment. Good idea, will do. Repository: rL LLVM https://reviews.llvm.org/D28924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 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, though if you wanted to add one more test with a C++ attribute (deprecated would work in C++14 mode), that would not make me sad. Something like: enum [[deprecated]] E

[libcxx] r292541 - Fix demangle helper after r286788

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 18:00:31 2017 New Revision: 292541 URL: http://llvm.org/viewvc/llvm-project?rev=292541=rev Log: Fix demangle helper after r286788 Modified: libcxx/trunk/test/support/demangle.h libcxx/trunk/test/support/test.support/test_demangle.pass.cpp Modified:

[PATCH] D28924: [AST Printer] Print attributes on enum constants

2017-01-19 Thread Jordan Rose via Phabricator via cfe-commits
jordan_rose created this revision. The AST printer was dropping attributes on enumerators (enum constants). Now it's not. Repository: rL LLVM https://reviews.llvm.org/D28924 Files: lib/AST/DeclPrinter.cpp test/Sema/ast-print.c Index: test/Sema/ast-print.c

[libcxx] r292539 - Adjust msvc_stdlib_force_include.hpp to handle clang++

2017-01-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Jan 19 17:48:05 2017 New Revision: 292539 URL: http://llvm.org/viewvc/llvm-project?rev=292539=rev Log: Adjust msvc_stdlib_force_include.hpp to handle clang++ Summary: This patch adjusts the newly added `msvc_stdlib_force_include.hpp` so that it also works when used with

Re: r292497 - [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode

2017-01-19 Thread Hans Wennborg via cfe-commits
Richard, what do you think? On Thu, Jan 19, 2017 at 9:34 AM, Alex L wrote: > Hi Hans, > > Would it be possible to merge this for 4.0? > > Cheers, > Alex > > On 19 January 2017 at 17:17, Alex Lorenz via cfe-commits > wrote: >> >> Author: arphaman

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-01-19 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5145 +if (!isFunctionOrMethod(D)) { + S.Diag(D->getLocation(), diag::warn_attribute_wrong_decl_type) + << "'interrupt'" << ExpectedFunctionOrMethod; I'm pretty sure that

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-01-19 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 85053. dylanmckay added a comment. Add 'Subjects' field to 'AVRSignal' https://reviews.llvm.org/D28451 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-01-19 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 85052. dylanmckay added a comment. Remove a test for the 'naked' attribute https://reviews.llvm.org/D28451 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp

[PATCH] D28451: [AVR] Add support for the 'interrupt' and 'naked' attributes

2017-01-19 Thread Dylan McKay via Phabricator via cfe-commits
dylanmckay updated this revision to Diff 85051. dylanmckay marked 5 inline comments as done. dylanmckay added a comment. Code review from Aaron - Use 'handleSimpleAttribute' rather than duplicating it - Use 'auto' where a type is explicitly casted - Add warnings for when the attribute is not on

[libcxxabi] r292524 - Merging r292418:

2017-01-19 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Jan 19 15:57:56 2017 New Revision: 292524 URL: http://llvm.org/viewvc/llvm-project?rev=292524=rev Log: Merging r292418: r292418 | jroelofs | 2017-01-18 10:12:39 -0800 (Wed, 18 Jan 2017) | 15 lines

r292522 - Don't inline dllimport functions referencing non-imported methods

2017-01-19 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Jan 19 15:33:13 2017 New Revision: 292522 URL: http://llvm.org/viewvc/llvm-project?rev=292522=rev Log: Don't inline dllimport functions referencing non-imported methods This is another follow-up to r246338. I had assumed methods were already handled by the AST visitor, but

RE: PATCH: re-enable OpenCL extensions

2017-01-19 Thread Liu, Yaxun (Sam) via cfe-commits
I think the supported extensions for a target should be as accurate as possible, for it to be useful. Setting all extensions to be supported on all targets will defeat its purpose. I recommend to introduce "pocl" as an environment in the triple and add supported OpenCL extensions for different

Re: r292508 - Module: Improve diagnostic message when cxx modules are disabled and @import is used in Objective CXX.

2017-01-19 Thread Richard Smith via cfe-commits
On 19 Jan 2017 11:16 am, "Manman Ren via cfe-commits" < cfe-commits@lists.llvm.org> wrote: Author: mren Date: Thu Jan 19 13:05:55 2017 New Revision: 292508 URL: http://llvm.org/viewvc/llvm-project?rev=292508=rev Log: Module: Improve diagnostic message when cxx modules are disabled and @import is

Re: r292508 - Module: Improve diagnostic message when cxx modules are disabled and @import is used in Objective CXX.

2017-01-19 Thread Richard Smith via cfe-commits
On 19 Jan 2017 11:16 am, "Manman Ren via cfe-commits" < cfe-commits@lists.llvm.org> wrote: Author: mren Date: Thu Jan 19 13:05:55 2017 New Revision: 292508 URL: http://llvm.org/viewvc/llvm-project?rev=292508=rev Log: Module: Improve diagnostic message when cxx modules are disabled and @import is

r292518 - PR13403 (+duplicates): implement C++ DR1310 (http://wg21.link/cwg1310).

2017-01-19 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Jan 19 15:00:13 2017 New Revision: 292518 URL: http://llvm.org/viewvc/llvm-project?rev=292518=rev Log: PR13403 (+duplicates): implement C++ DR1310 (http://wg21.link/cwg1310). Under this defect resolution, the injected-class-name of a class or class template cannot be

[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-19 Thread András Leitereg via Phabricator via cfe-commits
leanil updated this revision to Diff 85014. leanil added a comment. Add config parameter to control new functionality. Update the test cases accordingly. https://reviews.llvm.org/D28667 Files: clang-tidy/modernize/RawStringLiteralCheck.cpp clang-tidy/modernize/RawStringLiteralCheck.h

[PATCH] D28514: [CodeCompletion] Reset the hidden declaration obtained after lookup when caching UsingShadowDecls

2017-01-19 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. Looks good to me, but one more comment/question. Comment at: lib/Sema/SemaLookup.cpp:3433 + // is not hidden by the using declaration. + if (isa(ND) && isa(D)) +continue; Do we have to check that ND's UsingDecl is

r292508 - Module: Improve diagnostic message when cxx modules are disabled and @import is used in Objective CXX.

2017-01-19 Thread Manman Ren via cfe-commits
Author: mren Date: Thu Jan 19 13:05:55 2017 New Revision: 292508 URL: http://llvm.org/viewvc/llvm-project?rev=292508=rev Log: Module: Improve diagnostic message when cxx modules are disabled and @import is used in Objective CXX. rdar://problem/19399671 Added:

[PATCH] D28889: Change where we handle arg-dependent diagnose_if attributes

2017-01-19 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv updated this revision to Diff 84988. george.burgess.iv added a comment. Sprinkle in a few `const`s, use `const auto *` in range for loops. https://reviews.llvm.org/D28889 Files: include/clang/Sema/Overload.h include/clang/Sema/Sema.h lib/Sema/SemaChecking.cpp

[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-19 Thread Richard via Phabricator via cfe-commits
LegalizeAdulthood added a comment. In https://reviews.llvm.org/D28667#650586, @leanil wrote: > In https://reviews.llvm.org/D28667#650585, @LegalizeAdulthood wrote: > > > In https://reviews.llvm.org/D28667#649626, @LegalizeAdulthood wrote: > > > > > Don't do this without introducing an option to

[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-19 Thread András Leitereg via Phabricator via cfe-commits
leanil added a comment. In https://reviews.llvm.org/D28667#650585, @LegalizeAdulthood wrote: > In https://reviews.llvm.org/D28667#649626, @LegalizeAdulthood wrote: > > > Don't do this without introducing an option to turn it off. > > > To clarify my reasoning: > You imposing your subjective

[PATCH] D28667: [clang-tidy] Don't modernize-raw-string-literal if replacement is longer.

2017-01-19 Thread Richard via Phabricator via cfe-commits
LegalizeAdulthood added a comment. In https://reviews.llvm.org/D28667#649626, @LegalizeAdulthood wrote: > Don't do this without introducing an option to turn it off. To clarify my reasoning: You imposing your subjective idea of goodness on the code, i.e. style. Other people will have

[PATCH] D28765: CStringChecker can crash when uninitialized checks are disabled

2017-01-19 Thread Anna Zaks via Phabricator via cfe-commits
zaks.anna added a comment. > It is not supported to run the analyzer with some of the core checkers turned > off. Correct. > Maybe we should change the behavior such that turning off core checkers turn > off the warnings from those checkers but not the checkers themselves? Having this as the

Re: r292497 - [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode

2017-01-19 Thread Alex L via cfe-commits
Hi Hans, Would it be possible to merge this for 4.0? Cheers, Alex On 19 January 2017 at 17:17, Alex Lorenz via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: arphaman > Date: Thu Jan 19 11:17:57 2017 > New Revision: 292497 > > URL: http://llvm.org/viewvc/llvm-project?rev=292497=rev

RE: PATCH: re-enable OpenCL extensions

2017-01-19 Thread Anastasia Stulova via cfe-commits
As mentioned on cfe-dev as well, although it doesn't seem too critical it is generally not logical to enable all extensions by default because most of the targets don't even support OpenCL. But I understand your situation with using x86 or ARM backends in a generic way. Do you think this can be

[PATCH] D28902: [Sema] Reword unused lambda capture warning

2017-01-19 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292498: [Sema] Reword unused lambda capture warning (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D28902?vs=84966=84984#toc Repository: rL LLVM

r292498 - [Sema] Reword unused lambda capture warning

2017-01-19 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Thu Jan 19 11:19:22 2017 New Revision: 292498 URL: http://llvm.org/viewvc/llvm-project?rev=292498=rev Log: [Sema] Reword unused lambda capture warning Summary: The warning doesn't know why the variable was looked up but not odr-used, so reword it to not claim that

[PATCH] D25213: Fix PR28181: Prevent operator overloading related assertion failure crash that happens in C only

2017-01-19 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. arphaman marked an inline comment as done. Closed by commit rL292497: [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode (authored by arphaman). Changed prior to commit:

r292497 - [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode

2017-01-19 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Jan 19 11:17:57 2017 New Revision: 292497 URL: http://llvm.org/viewvc/llvm-project?rev=292497=rev Log: [Sema] Fix PR28181 by avoiding calling BuildOverloadedBinOp in C mode rdar://28532840 Differential Revision: https://reviews.llvm.org/D25213 Added:

[PATCH] D28902: [Sema] Reword unused lambda capture warning

2017-01-19 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! https://reviews.llvm.org/D28902 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: Commits to be merged for 4.0

2017-01-19 Thread Hans Wennborg via cfe-commits
On Tue, Jan 17, 2017 at 9:48 PM, Marshall Clow wrote: > One is for libc++abi: r292135 Merged in r292495. > The other two are for libc++: > r292276 Eric merged this one. > r292091 Merged in r292494. Cheers, Hans ___

r292496 - [Hexagon] Linux linker does not support .gnu-hash

2017-01-19 Thread Sumanth Gundapaneni via cfe-commits
Author: sgundapa Date: Thu Jan 19 10:54:04 2017 New Revision: 292496 URL: http://llvm.org/viewvc/llvm-project?rev=292496=rev Log: [Hexagon] Linux linker does not support .gnu-hash Hexagon Linux dynamic loader does not use (in fact does not support) .gnu-hash Differential Revision:

[libcxxabi] r292495 - Merging r292135:

2017-01-19 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Jan 19 10:52:39 2017 New Revision: 292495 URL: http://llvm.org/viewvc/llvm-project?rev=292495=rev Log: Merging r292135: r292135 | marshall | 2017-01-16 07:28:03 -0800 (Mon, 16 Jan 2017) | 1 line Mark

Re: [libcxx] r292091 - Implement the missing constexpr stuff in . Fixes PR#31645.

2017-01-19 Thread Hans Wennborg via cfe-commits
Merged to 4.0 in r292494 as requested. On Sun, Jan 15, 2017 at 7:02 PM, Marshall Clow via cfe-commits wrote: > Author: marshall > Date: Sun Jan 15 21:02:10 2017 > New Revision: 292091 > > URL: http://llvm.org/viewvc/llvm-project?rev=292091=rev > Log: > Implement the

[libcxx] r292494 - Merging r292091:

2017-01-19 Thread Hans Wennborg via cfe-commits
Author: hans Date: Thu Jan 19 10:50:46 2017 New Revision: 292494 URL: http://llvm.org/viewvc/llvm-project?rev=292494=rev Log: Merging r292091: r292091 | marshall | 2017-01-15 19:02:10 -0800 (Sun, 15 Jan 2017) | 1 line

[PATCH] D28905: [analyzer] Consider function call arguments while building CallGraph

2017-01-19 Thread Ivan Sidorenko via Phabricator via cfe-commits
IvanSidorenko created this revision. Function call can appear in the arguments of another function call. This patch adds support for such cases. https://reviews.llvm.org/D28905 Files: lib/Analysis/CallGraph.cpp test/Analysis/debug-CallGraph.c Index: test/Analysis/debug-CallGraph.c

[PATCH] D20693: [clang-tidy] New checker to replace dynamic exception specifications

2017-01-19 Thread don hinton via Phabricator via cfe-commits
hintonda updated this revision to Diff 84975. hintonda added a comment. - Fix diagnostic when removing throwing specs. https://reviews.llvm.org/D20693 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp

[PATCH] D28899: [clang-tidy] Do not trigger move fix for non-copy assignment operators in performance-unnecessary-value-param check

2017-01-19 Thread Felix Berger via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292491: [clang-tidy] Do not trigger move fix for non-copy assignment operators in… (authored by flx). Changed prior to commit: https://reviews.llvm.org/D28899?vs=84960=84967#toc Repository: rL LLVM

[clang-tools-extra] r292491 - [clang-tidy] Do not trigger move fix for non-copy assignment operators in performance-unnecessary-value-param check

2017-01-19 Thread Felix Berger via cfe-commits
Author: flx Date: Thu Jan 19 09:51:10 2017 New Revision: 292491 URL: http://llvm.org/viewvc/llvm-project?rev=292491=rev Log: [clang-tidy] Do not trigger move fix for non-copy assignment operators in performance-unnecessary-value-param check Reviewers: alexfh, sbenza, malcolm.parsons

[PATCH] D28902: [Sema] Reword unused lambda capture warning

2017-01-19 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons created this revision. The warning doesn't know why the variable was looked up but not odr-used, so reword it to not claim that it was used in an unevaluated context. https://reviews.llvm.org/D28902 Files: include/clang/Basic/DiagnosticSemaKinds.td

[libcxx] r292490 - Mark two of the TS implementations as 'in progress'

2017-01-19 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Jan 19 09:30:36 2017 New Revision: 292490 URL: http://llvm.org/viewvc/llvm-project?rev=292490=rev Log: Mark two of the TS implementations as 'in progress' Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html URL:

[PATCH] D28862: [compiler-rt] [test] Use approximate comparison on float types

2017-01-19 Thread Steve Canon via Phabricator via cfe-commits
scanon added a comment. These tests should either be exact, or should have a tolerance that's mathematically sound. +/-1ulp is not sound; the allowed error should be proportional to the magnitude of the larger of the real and imaginary components of the result -- e.g. if one component is very

[PATCH] D28899: [clang-tidy] Do not trigger move fix for non-copy assignment operators in performance-unnecessary-value-param check

2017-01-19 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons accepted this revision. malcolm.parsons added a comment. This revision is now accepted and ready to land. LGTM. Repository: rL LLVM https://reviews.llvm.org/D28899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D27710: [analyzer] Prohibit ExplodedGraph's edges duplicating

2017-01-19 Thread Ilya Palachev via Phabricator via cfe-commits
ilya-palachev added a comment. Thanks for review! > As Artem points out, the checkers in tree do not create a node for every bug > reported - there is no reason to do that. Yes... But why does `generateNonFatalErrorNode` return `nullptr` in case when the node already exists? Isn't it designed

[PATCH] D27257: [CodeCompletion] Ensure that ObjC root class completes instance methods from protocols and categories as well

2017-01-19 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. ping Repository: rL LLVM https://reviews.llvm.org/D27257 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D28467: [Sema] Add warning for unused lambda captures

2017-01-19 Thread Aaron Ballman via cfe-commits
On Thu, Jan 19, 2017 at 8:45 AM, Malcolm Parsons wrote: > On 19 January 2017 at 13:16, Aaron Ballman wrote: >> I wasn't thinking about that kind of odr-unuse when reviewing your >> patch, so I am starting to think that perhaps it's not worth >>

[PATCH] D28899: [clang-tidy] Do not trigger move fix for non-copy assignment operators in performance-unnecessary-value-param check

2017-01-19 Thread Felix Berger via Phabricator via cfe-commits
flx created this revision. Herald added a subscriber: JDevlieghere. Repository: rL LLVM https://reviews.llvm.org/D28899 Files: clang-tidy/utils/DeclRefExprUtils.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index: test/clang-tidy/performance-unnecessary-value-param.cpp

[clang-tools-extra] r292484 - [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing

2017-01-19 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Thu Jan 19 07:38:19 2017 New Revision: 292484 URL: http://llvm.org/viewvc/llvm-project?rev=292484=rev Log: [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing Summary: Docs for clang::Decl and clang::TemplateSpecializationType have not been generated since

Re: [PATCH] D28467: [Sema] Add warning for unused lambda captures

2017-01-19 Thread Malcolm Parsons via cfe-commits
On 19 January 2017 at 13:16, Aaron Ballman wrote: > I wasn't thinking about that kind of odr-unuse when reviewing your > patch, so I am starting to think that perhaps it's not worth > distinguishing unevaluated contexts or not in the diagnostic. :-( If > we could do it,

[PATCH] D28895: [clang-move] Also move using decls which are defined in header file.

2017-01-19 Thread Eric Liu via Phabricator via cfe-commits
ioeric requested changes to this revision. ioeric added a comment. This revision now requires changes to proceed. Per offline discussion, this change is not intact - we want using decls in headers to be moveable symbols as well since it can have references outside of the local TU.

Re: [PATCH] D28467: [Sema] Add warning for unused lambda captures

2017-01-19 Thread Aaron Ballman via cfe-commits
On Thu, Jan 19, 2017 at 7:49 AM, Aaron Ballman wrote: > On Thu, Jan 19, 2017 at 4:37 AM, Malcolm Parsons > wrote: >> On 19 January 2017 at 03:47, Aaron Ballman wrote: >>> It is not used in an unevaluated context --

Re: [PATCH] D28467: [Sema] Add warning for unused lambda captures

2017-01-19 Thread Malcolm Parsons via cfe-commits
On 19 January 2017 at 12:49, Aaron Ballman wrote: > You are correct, it is not an odr use. MSVC is wrong to require the capture. Should the warning be rephrased? -- Malcolm Parsons ___ cfe-commits mailing list

PATCH: re-enable OpenCL extensions

2017-01-19 Thread Kalle Raiskila via cfe-commits
Hi, I noticed a change from clang 3.8 to 3.9, that it disabled all OpenCL extension pragmas per default. This broke pocl on e.g. ARM for LLVM 3.9 (https://github.com/pocl/pocl/issues/409). Example: $ echo "#pragma OPENCL EXTENSION cl_khr_icd: enable" > hello.cl $ clang -emit-llvm -x cl -o

Re: [PATCH] D28467: [Sema] Add warning for unused lambda captures

2017-01-19 Thread Aaron Ballman via cfe-commits
On Thu, Jan 19, 2017 at 4:37 AM, Malcolm Parsons wrote: > On 19 January 2017 at 03:47, Aaron Ballman wrote: >> It is not used in an unevaluated context -- that is a bug. > > It is an evaluated expression, but is it odr-used? > > C++14

[PATCH] D28895: [clang-move] Also move using decls which are defined in header file.

2017-01-19 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. https://reviews.llvm.org/D28895 Files: clang-move/ClangMove.cpp test/clang-move/Inputs/multiple_class_test.h test/clang-move/move-multiple-classes.cpp Index: test/clang-move/move-multiple-classes.cpp

r292477 - [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing

2017-01-19 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Thu Jan 19 03:27:45 2017 New Revision: 292477 URL: http://llvm.org/viewvc/llvm-project?rev=292477=rev Log: [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing Summary: Docs for clang::Decl and clang::TemplateSpecializationType have not been generated since

[PATCH] D28850: [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing

2017-01-19 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292477: [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D28850?vs=84812=84950#toc Repository: rL LLVM

  1   2   >