[PATCH] D26196: Add support for non-zero null pointer for C and OpenCL

2016-11-13 Thread John McCall via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D26196#593741, @yaxunl wrote: > >> It seems the casting from a pointer to different address space is not > >> affected by this change. When a null pointer is casted to different > >> address space, it is casted the same way as an ordinary po

[PATCH] D26587: [X86][AVX512][InlineASM][MS][clang] (I|G)CC Memory adjustments compatibility

2016-11-13 Thread coby via cfe-commits
coby created this revision. coby added reviewers: m_zuckerman, rnk, myatsina. coby added a subscriber: cfe-commits. coby set the repository for this revision to rL LLVM. (I|G)CC will adjust a missing size qualifier on an indirect memory reference according to a certain logic, which is presented o

[libcxxabi] r286759 - [CMake] Fix libc++abi arm build w/o libunwind.

2016-11-13 Thread Logan Chien via cfe-commits
Author: logan Date: Sun Nov 13 08:42:15 2016 New Revision: 286759 URL: http://llvm.org/viewvc/llvm-project?rev=286759&view=rev Log: [CMake] Fix libc++abi arm build w/o libunwind. This commit fixes libc++abi build when LLVM unwinder (libunwind_llvm) is not enabled. This commit fixes the problem b

[PATCH] D24082: [CMake] Fix libc++abi arm build w/o libunwind.

2016-11-13 Thread Logan Chien via cfe-commits
logan closed this revision. logan added a comment. Thanks. Committed as https://reviews.llvm.org/rL286759. https://reviews.llvm.org/D24082 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[libcxxabi] r286760 - arm: Fix ttype encoding assertion failure.

2016-11-13 Thread Logan Chien via cfe-commits
Author: logan Date: Sun Nov 13 08:44:41 2016 New Revision: 286760 URL: http://llvm.org/viewvc/llvm-project?rev=286760&view=rev Log: arm: Fix ttype encoding assertion failure. GCC 4.7 or newer emits 0x90 (indirect | pcrel) as the ttype encoding. This would hit an assertion in cxa_personality.cpp.

[PATCH] D24085: arm: Fix ttype encoding assertion failure.

2016-11-13 Thread Logan Chien via cfe-commits
logan closed this revision. logan added a comment. Thanks for reviewing. Committed as https://reviews.llvm.org/rL286760. https://reviews.llvm.org/D24085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D26588: Add LocationContext to members of check::RegionChanges

2016-11-13 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski created this revision. k-wisniewski added reviewers: dergachev.a, dcoughlin, zaks.anna. k-wisniewski added a subscriber: cfe-commits. Hi, I've been working on a checker that uses RegionChanges interface and needed to access to LocationContext. Another change is an easy way to obtai

[PATCH] D26589: Add static analyzer checker for finding infinite recursion

2016-11-13 Thread Krzysztof Wiśniewski via cfe-commits
k-wisniewski created this revision. k-wisniewski added reviewers: zaks.anna, dcoughlin, dergachev.a. k-wisniewski added a subscriber: cfe-commits. Herald added a subscriber: mgorny. This is the very first version of a checker that aims to find cases of infinite recursion. It relies on Add Locati

[libcxx] r286774 - Fix PR30979 - tuple

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 13:54:31 2016 New Revision: 286774 URL: http://llvm.org/viewvc/llvm-project?rev=286774&view=rev Log: Fix PR30979 - tuple is constructible from move_only const& Modified: libcxx/trunk/include/tuple libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.cnst

[libcxx] r286779 - Implement LWG 2770 - Make tuple_size defined for all T

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 14:43:50 2016 New Revision: 286779 URL: http://llvm.org/viewvc/llvm-project?rev=286779&view=rev Log: Implement LWG 2770 - Make tuple_size defined for all T Modified: libcxx/trunk/include/__tuple libcxx/trunk/include/tuple libcxx/trunk/test/std/utilitie

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to unique_ptr::release()

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF created this revision. EricWF added reviewers: mclow.lists, chandlerc. EricWF added a subscriber: cfe-commits. The title says it all. I just want to check that we agree on the general direction of this patch. Specifically that libc++ should be free to apply `no_discard` where we feel app

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to unique_ptr::release()

2016-11-13 Thread Chandler Carruth via cfe-commits
chandlerc added a comment. I think we want dedicated macros to disable each added [[nodiscard]]. The reason is that as you add each one, users will have to roll out cleanups for the new warnings. This may be hard to do quickly and cause problems updating libc++ for users with -Werror in their b

[libcxxabi] r286783 - Fix GCC libc++abi build

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 16:27:00 2016 New Revision: 286783 URL: http://llvm.org/viewvc/llvm-project?rev=286783&view=rev Log: Fix GCC libc++abi build Modified: libcxxabi/trunk/CMakeLists.txt libcxxabi/trunk/test/lit.site.cfg.in Modified: libcxxabi/trunk/CMakeLists.txt URL: http:/

[libcxx] r286783 - Fix GCC libc++abi build

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 16:27:00 2016 New Revision: 286783 URL: http://llvm.org/viewvc/llvm-project?rev=286783&view=rev Log: Fix GCC libc++abi build Modified: libcxx/trunk/CMakeLists.txt libcxx/trunk/test/libcxx/compiler.py libcxx/trunk/test/libcxx/test/config.py libcxx/tr

[libcxx] r286784 - Add docs for use-configurable libc++ features

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 17:00:30 2016 New Revision: 286784 URL: http://llvm.org/viewvc/llvm-project?rev=286784&view=rev Log: Add docs for use-configurable libc++ features Modified: libcxx/trunk/docs/UsingLibcxx.rst Modified: libcxx/trunk/docs/UsingLibcxx.rst URL: http://llvm.org/vie

Re: [PATCH] Warning for main returning a bool.

2016-11-13 Thread Joshua Hurwitz via cfe-commits
Friendly ping. Any further thoughts on this suggested warning? On Sat, Nov 5, 2016 at 1:48 PM Manuel Klimek wrote: > +richard > > On Fri, Oct 14, 2016 at 10:18 AM Joshua Hurwitz via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > See attached. > > Returning a bool from main is a special c

[PATCH] D23418: [analyzer] Added a reusable constraint system to the CloneDetector

2016-11-13 Thread Raphael Isemann via cfe-commits
teemperor planned changes to this revision. teemperor added a comment. - I ran all real-world tests (sqlite, etc.) before rebasing to trunk. I'm not 100% confident that I correctly merged everything, so I'll rerun them just in case. The normal clang test-suite passes, so it looks good. https:/

[PATCH] D23418: [analyzer] Added a reusable constraint system to the CloneDetector

2016-11-13 Thread Raphael Isemann via cfe-commits
teemperor updated the summary for this revision. teemperor updated this revision to Diff 77759. teemperor added a comment. - Rebased patch to the current trunk state. - Replaced runtime polymorphism with templates. - Constraint interface now only has one method signature. https://reviews.llvm.or

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to unique_ptr::release()

2016-11-13 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. In https://reviews.llvm.org/D26596#593948, @chandlerc wrote: > I think we want dedicated macros to disable each added [[nodiscard]]. My concern here is that I expect that there will be a lot of these. Off the top of my head, I can name: - Every smart pointer's `get

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to unique_ptr::release()

2016-11-13 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. Note: I'm not unsympathetic to the situation that Chandler describes; I just don't want to manage a potentially unbounded (but probably more than 20) set of macros. https://reviews.llvm.org/D26596 ___ cfe-commits maili

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF retitled this revision from "[RFC] Add _LIBCPP_NO_DISCARD and apply it to unique_ptr::release()" to "[RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()` ". EricWF updated the summary for this revision. EricWF updated this

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 77761. EricWF added a comment. - Add missing newlines in added tests. https://reviews.llvm.org/D26596 Files: docs/UsingLibcxx.rst include/__config include/__mutex_base include/forward_list include/list include/map include/memory include/mutex

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 77762. EricWF added a comment. - Apply no-discard to `string_view::empty()` and friends. - Fix discarded use of `unique_ptr::release()` within libc++. https://reviews.llvm.org/D26596 Files: docs/UsingLibcxx.rst include/__config include/__hash_table i

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 77763. EricWF added a comment. - Fix even more instances of `unique_ptr::release()` with a discarded value. Hopefully this is the last of them. https://reviews.llvm.org/D26596 Files: docs/UsingLibcxx.rst include/__config include/__hash_table include

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 77764. EricWF added a comment. - Fix tests containing discarded values. - Fix two more instances of discarded `unique_ptr::release()` in the headers. https://reviews.llvm.org/D26596 Files: docs/UsingLibcxx.rst include/__config include/__hash_table in

[PATCH] D26546: [PPC] Add vec_insert4b/vec_extract4b to altivec.h

2016-11-13 Thread Nemanja Ivanovic via cfe-commits
nemanjai added inline comments. Comment at: lib/Headers/altivec.h:11908 +#define vec_extract4b(__a, __b) \ + vec_reve((vector unsigned long long) \ +__builtin_vsx_xxextractuw

[libcxxabi] r286788 - __cxa_demangle: ensure that we have a mangled symbol

2016-11-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Nov 13 19:55:54 2016 New Revision: 286788 URL: http://llvm.org/viewvc/llvm-project?rev=286788&view=rev Log: __cxa_demangle: ensure that we have a mangled symbol Ensure that we have a mangled symbol before attempting to demangle it. We would previously treat any input a

[PATCH] D26544: [PPC] support for arithmetic builtins in the FE

2016-11-13 Thread Nemanja Ivanovic via cfe-commits
nemanjai added inline comments. Comment at: lib/Headers/altivec.h:314 + vector signed int __carry = __c & __mask; + return vec_add(vec_add(__a, __b), __mask); +} I don't understand why we're adding `__mask` to the sum of `__a` and `__b`. Shouldn't that be `__c

[libcxx] r286791 - Fix CMake set syntax

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 20:51:30 2016 New Revision: 286791 URL: http://llvm.org/viewvc/llvm-project?rev=286791&view=rev Log: Fix CMake set syntax Modified: libcxx/trunk/lib/abi/CMakeLists.txt Modified: libcxx/trunk/lib/abi/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/libc

[libcxx] r286792 - Fix ABI configuration detection on OS X

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sun Nov 13 21:03:13 2016 New Revision: 286792 URL: http://llvm.org/viewvc/llvm-project?rev=286792&view=rev Log: Fix ABI configuration detection on OS X Modified: libcxx/trunk/lib/abi/CMakeLists.txt Modified: libcxx/trunk/lib/abi/CMakeLists.txt URL: http://llvm.org/viewv

[libcxxabi] r286793 - __cxa_demangle: allow demangling invocation blocks

2016-11-13 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Sun Nov 13 21:07:47 2016 New Revision: 286793 URL: http://llvm.org/viewvc/llvm-project?rev=286793&view=rev Log: __cxa_demangle: allow demangling invocation blocks The block invocation function uses an extension where the prefix is ___Z as opposed to _Z. This should make th

[PATCH] D22997: [cxx1z-constexpr-lambda] Make conversion function constexpr, and teach the expression-evaluator to evaluate the static-invoker.

2016-11-13 Thread Faisal Vali via cfe-commits
faisalv removed rL LLVM as the repository for this revision. faisalv updated this revision to Diff 77767. faisalv marked 4 inline comments as done. faisalv added a comment. Addressed Aaron's requests regarding improving formatting and assert messages. Thanks! https://reviews.llvm.org/D22997 Fi

[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr::release()`, and `Lockable::try_lock()`

2016-11-13 Thread Eric Fiselier via cfe-commits
EricWF updated this revision to Diff 77769. EricWF added a comment. - Add `[[no_discard]]` to various smart pointer observers including `get()` and `operator*()`. https://reviews.llvm.org/D26596 Files: docs/UsingLibcxx.rst include/__config include/__hash_table include/__mutex_base in

r286796 - Add explicit (void) cast to result of unique_ptr::release()

2016-11-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Nov 14 01:03:50 2016 New Revision: 286796 URL: http://llvm.org/viewvc/llvm-project?rev=286796&view=rev Log: Add explicit (void) cast to result of unique_ptr::release() Modified: cfe/trunk/tools/libclang/CIndex.cpp Modified: cfe/trunk/tools/libclang/CIndex.cpp URL: h