[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai accepted this revision. smeenai added a comment. This revision is now accepted and ready to land. LGTM apart from minor comments. https://reviews.llvm.org/D28725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: CMakeLists.txt:394 # non-debug DLLs remove_flags("/D_DEBUG" "/MTd" "/MDd" "/MT" "/Md" "/RTC1") EricWF wrote: > smeenai wrote: > > EricWF wrote: > > > smeenai wrote: > > > > We should be able to remove this now,

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84438. EricWF added a comment. I think this patch is ready to go. @smeenai any last words? https://reviews.llvm.org/D28725 Files: CMakeLists.txt lib/CMakeLists.txt test/CMakeLists.txt test/libcxx/test/config.py test/lit.site.cfg.in

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: CMakeLists.txt:394 # non-debug DLLs remove_flags("/D_DEBUG" "/MTd" "/MDd" "/MT" "/Md" "/RTC1") smeenai wrote: > EricWF wrote: > > smeenai wrote: > > > We should be able to remove this now, right? > > I would still

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84437. EricWF added a comment. - Address inline comments. - Stop MSVC's default assertion handler from opening a new dialog window on failure. https://reviews.llvm.org/D28725 Files: CMakeLists.txt lib/CMakeLists.txt test/CMakeLists.txt

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: CMakeLists.txt:394 # non-debug DLLs remove_flags("/D_DEBUG" "/MTd" "/MDd" "/MT" "/Md" "/RTC1") EricWF wrote: > smeenai wrote: > > We should be able to remove this now, right? > I would still rather strip it and

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D28725#646325, @smeenai wrote: > Awesome. LGTM except that force-removing the `_DEBUG` define and then linking > against the debug libraries might cause some wonkiness. Ack. I'll update the patch to still force remove `_DEBUG` but then later

[PATCH] D28672: [ASTMatchers] update doc by running dump_ast_matchers.py

2017-01-13 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D28672#646151, @aaron.ballman wrote: > I'm not seeing anything wrong, per se, but why has so much of this file > changed recently? The script looks for doxygen docs on clang.llvm.org. Are they missing?

[PATCH] D27680: [CodeGen] Move lifetime.start of a variable when goto jumps back past its declaration

2017-01-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 84434. ahatanak added a comment. Remove lifetime markers completely for variables that are declared after a label was seen in a compound statement I tested this patch building llvm's test-suite and SPEC benchmarks with -Os. Surprisingly (maybe not so

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Awesome. LGTM except that force-removing the `_DEBUG` define and then linking against the debug libraries might cause some wonkiness. Comment at: CMakeLists.txt:394 # non-debug DLLs remove_flags("/D_DEBUG" "/MTd" "/MDd" "/MT" "/Md" "/RTC1")

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added reviewers: smeenai, rnk, majnemer, compnerd. EricWF added a subscriber: cfe-commits. Herald added a subscriber: mgorny. This patch allows libc++ to be built against the debug MSVC runtimes instead of just the release ones.

[PATCH] D28725: [libc++][CMake] Use debug MSVC runtimes when libc++ is built in debug mode

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84433. https://reviews.llvm.org/D28725 Files: CMakeLists.txt lib/CMakeLists.txt test/CMakeLists.txt test/libcxx/test/config.py test/lit.site.cfg.in Index: test/lit.site.cfg.in === ---

[PATCH] D28716: [libc++] Diagnose null inputs in std::string using _LIBCPP_DIAGNOSE_WARNING

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D28716#646274, @grandinj wrote: > would it be better to internally treat __attribute__((non_null)) like > diagnose_if ? then you get all the warnings for free? There were previous objections about using `non_null` within libc++ due to the

[libcxx] r292001 - [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Jan 14 00:06:47 2017 New Revision: 292001 URL: http://llvm.org/viewvc/llvm-project?rev=292001=rev Log: [libc++] [CMake] Link with /nodefaultlibs on Windows Summary: This patch attempts to fix the libc++ build/link so that it doesn't use an default C++ libraries on

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292001: [libc++] [CMake] Link with /nodefaultlibs on Windows (authored by EricWF). Changed prior to commit: https://reviews.llvm.org/D28441?vs=84428=84430#toc Repository: rL LLVM

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84428. EricWF added a comment. - Address inline comments. https://reviews.llvm.org/D28441 Files: CMakeLists.txt cmake/Modules/HandleLibcxxFlags.cmake lib/CMakeLists.txt test/libcxx/test/config.py Index: test/libcxx/test/config.py

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked an inline comment as done. EricWF added inline comments. Comment at: lib/CMakeLists.txt:113 + add_library_flags(msvcrt) # C runtime startup files + # Required for wide character formatting functions (e.g. `printfw`/`scanfw`) +

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: lib/CMakeLists.txt:112 + add_library_flags(vcruntime) # C++ runtime + add_library_flags(msvcrt) # C runtime startup files + add_library_flags(iso_stdio_wide_specifiers) EricWF wrote: > smeenai wrote: > > EricWF

[libcxx] r292000 - Mark 'constexpr char_traits' as complete.

2017-01-13 Thread Marshall Clow via cfe-commits
Author: marshall Date: Fri Jan 13 23:55:17 2017 New Revision: 292000 URL: http://llvm.org/viewvc/llvm-project?rev=292000=rev Log: Mark 'constexpr char_traits' as complete. Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html URL:

[PATCH] D28716: [libc++] Diagnose null inputs in std::string using _LIBCPP_DIAGNOSE_WARNING

2017-01-13 Thread Noel Grandin via Phabricator via cfe-commits
grandinj added a comment. would it be better to internally treat __attribute__((non_null)) like diagnose_if ? then you get all the warnings for free? https://reviews.llvm.org/D28716 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai accepted this revision. smeenai added a comment. This revision is now accepted and ready to land. There's a bunch of follow-up work here, but I'm fine with this for now. https://reviews.llvm.org/D28441 ___ cfe-commits mailing list

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D28441#646145, @EricWF wrote: > In https://reviews.llvm.org/D28441#639023, @smeenai wrote: > > > I think the right thing to do would be to either always compile two > > versions of libc++, one linked against the debug libraries and the other

[libcxx] r291998 - Tweak .clang-format configuration.

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 23:43:02 2017 New Revision: 291998 URL: http://llvm.org/viewvc/llvm-project?rev=291998=rev Log: Tweak .clang-format configuration. Remove the custom configuration options for brace wrapping. They don't work well for inline functions or type-traits classes.

r291997 - Fix a typo. NFC.

2017-01-13 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Fri Jan 13 23:19:34 2017 New Revision: 291997 URL: http://llvm.org/viewvc/llvm-project?rev=291997=rev Log: Fix a typo. NFC. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp Modified: cfe/trunk/lib/Sema/SemaOverload.cpp URL:

[libcxx] r291995 - Use __is_identifier to detect Clang extensions instead of __has_extension.

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 22:27:58 2017 New Revision: 291995 URL: http://llvm.org/viewvc/llvm-project?rev=291995=rev Log: Use __is_identifier to detect Clang extensions instead of __has_extension. When -pedantic-errors is specified `__has_extension()` is always false when it would

Re: [libcxx] r291508 - [cmake] Obtain LLVM_CMAKE_PATH from llvm-config if available

2017-01-13 Thread Eric Fiselier via cfe-commits
This patch causes `execute_process` to dump the standard error if the command fails. This causes the llvm-config help message to be printed as part of CMake configuration, which is ugly and incorrect. I've already fixed this for libc++, libc++abi, and libunwind trunk, but the issue still exists

[libcxxabi] r291993 - Don't dump llvm-config --cmakedir output if command fails.

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 21:47:49 2017 New Revision: 291993 URL: http://llvm.org/viewvc/llvm-project?rev=291993=rev Log: Don't dump llvm-config --cmakedir output if command fails. This patch adjusts the out-of-tree CMake configuration so that the stderr output is ignored when an old

[libunwind] r291992 - Don't dump llvm-config --cmakedir output if command fails.

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 21:46:05 2017 New Revision: 291992 URL: http://llvm.org/viewvc/llvm-project?rev=291992=rev Log: Don't dump llvm-config --cmakedir output if command fails. This patch adjusts the out-of-tree CMake configuration so that the stderr output is ignored when an old

[PATCH] D28591: [libcxx] [test] Don't ask whether Incomplete& can be assigned to.

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Although `is_assignable` can often get accidentally instantiated with an incomplete type by way of `std::tuple` or similar, which is the rational for this test case.

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. In https://reviews.llvm.org/D28705#646088, @rnk wrote: > What happens with virtual bases? > > struct B { int x; }; > struct D : virtual B { int y; }; > void test() { D d = {1, .y = 2}; } A class with virtual base is not considered an aggregate, so it doesn't go

[PATCH] D27850: [libcxx] add missing constexpr to optional::value_or

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @cpplearner Do you need somebody to commit this for you? https://reviews.llvm.org/D27850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D28520#646160, @aaron.ballman wrote: > I feel like I must be missing something; why is this disabling rather than > specifying the thread safety behavior? e.g., `__libcpp_mutex_lock()` > specifying that it acquires the capability and

[PATCH] D22452: [libcxx] Fix last_write_time tests for filesystems that don't support negative and very large times.

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. Do you need somebody to commit this for you? Let me know once you've committed it and I'll merge it into the 4.0 branch. https://reviews.llvm.org/D22452

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 84418. ahatanak marked 2 inline comments as done. ahatanak added a comment. Address review comments. https://reviews.llvm.org/D28705 Files: lib/Sema/SemaInit.cpp test/SemaCXX/designated-initializers-base-class.cpp Index:

[PATCH] D28520: Disable -Wthread-safety-analysis for some functions in __thread_support

2017-01-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I feel like I must be missing something; why is this disabling rather than specifying the thread safety behavior? e.g., `__libcpp_mutex_lock()` specifying that it acquires the capability and `__libcpp_mutex_unlock()` specifying that it releases it?

[PATCH] D28672: [ASTMatchers] update doc by running dump_ast_matchers.py

2017-01-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I'm not seeing anything wrong, per se, but why has so much of this file changed recently? https://reviews.llvm.org/D28672 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 84414. EricWF added a comment. Attempt to address review comments - Rename `LIBCXX_TARGETING_WINDOWS` to `LIBCXX_TARGETING_MSVC`. It is set to on when CMake defines `MSVC` to `ON`. This macro is intented to represent cases where we are targeting native

[PATCH] D28441: [libc++] [CMake] Link with /nodefaultlibs on Windows

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. In https://reviews.llvm.org/D28441#639023, @smeenai wrote: > One potential issue with always forcing the non-debug msvcrt is that any apps > that link against libc++ would also then need to use the non-debug CRT > libraries, otherwise you'd get all sorts of fun runtime

r291988 - Give more accurate descriptions of what kind of template we found in diagnostics.

2017-01-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jan 13 20:19:59 2017 New Revision: 291988 URL: http://llvm.org/viewvc/llvm-project?rev=291988=rev Log: Give more accurate descriptions of what kind of template we found in diagnostics. We were previouly assuming that every type template was a class template, which is

Re: [libcxx] r291072 - Get test-suite configuring on Windows with clang-cl

2017-01-13 Thread Shoaib Meenai via cfe-commits
Ah. lld-link actually only accepts link-style options, so it wouldn't solve that particular problem. Happily, it seems like we aren't relying on ld-style options to begin with. From: Eric Fiselier Date: Friday, January 13, 2017 at 5:52 PM To: Shoaib Meenai Cc:

[libcxx] r291986 - Remove unused parameters in C++03

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 19:33:53 2017 New Revision: 291986 URL: http://llvm.org/viewvc/llvm-project?rev=291986=rev Log: Remove unused parameters in C++03 Modified: libcxx/trunk/include/memory Modified: libcxx/trunk/include/memory URL:

[PATCH] D28716: [libc++] Diagnose null inputs in std::string using _LIBCPP_DIAGNOSE_WARNING

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added a reviewer: mclow.lists. EricWF added a subscriber: cfe-commits. This patch uses `diagnose_if` to attempt to catch null inputs in `std::string`. Note that unlike `__attribute__((non_null))` `diagnose_if` does not affect codegen.

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-13 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. What happens with virtual bases? struct B { int x; }; struct D : virtual B { int y; }; void test() { D d = {1, .y = 2}; } Comment at: lib/Sema/SemaInit.cpp:2250 +if (auto *CXXRD = dyn_cast(RT->getDecl())) + FieldIndex +=

[PATCH] D28592: [libcxx] [test] Fix MSVC warning C4127 "conditional expression is constant".

2017-01-13 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT abandoned this revision. STL_MSFT added a comment. Actually, this pattern annoys "warning C6326: Potential comparison of a constant with another constant." from /analyze. I'll figure out a better fix, probably with integral_constant. https://reviews.llvm.org/D28592

LLVM buildmaster is back to work

2017-01-13 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster is back to work. Please let me know if there are any issues. Thanks you for understanding. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D27689: Module: hash the pcm content and use it as SIGNATURE for implicit modules.

2017-01-13 Thread Manman Ren via Phabricator via cfe-commits
manmanren marked an inline comment as done. manmanren added inline comments. Comment at: include/clang/Serialization/Module.h:19 #include "clang/Basic/FileManager.h" +#include "clang/Basic/Module.h" #include "clang/Basic/SourceLocation.h" rsmith wrote: >

Re: r291964 - PR31631: fix bad CFG (and bogus warnings) when an if-statement has an init-statement and has binary operator as its condition.

2017-01-13 Thread Hans Wennborg via cfe-commits
Merged in r291978. (Please keep the list cc'd on merge requests.) Thanks, Hans On Fri, Jan 13, 2017 at 2:28 PM, Richard Smith wrote: > Seems sensible to put this in clang 4. > > -- Forwarded message -- > From: Richard Smith via cfe-commits

[libcxx] r291976 - Diagnose invalid memory orderings in

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 17:45:39 2017 New Revision: 291976 URL: http://llvm.org/viewvc/llvm-project?rev=291976=rev Log: Diagnose invalid memory orderings in Added: libcxx/trunk/test/libcxx/atomics/diagnose_invalid_memory_order.fail.cpp Modified: libcxx/trunk/include/__config

[PATCH] D28457: Add missing const qualifier to member function Decl::isLocalExternDecl()

2017-01-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak accepted this revision. ahatanak added a reviewer: ahatanak. ahatanak added a comment. This revision is now accepted and ready to land. This looks OK to commit. https://reviews.llvm.org/D28457 ___ cfe-commits mailing list

[PATCH] D28381: [WebAssembly] Always inline atomics

2017-01-13 Thread Jacob Gravelle via Phabricator via cfe-commits
jgravelle-google abandoned this revision. jgravelle-google added a comment. Abandoning this in favor of https://github.com/kripken/emscripten/pull/4846 https://reviews.llvm.org/D28381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r291963 - [clang] Emit `diagnose_if` warnings from system headers

2017-01-13 Thread Eric Fiselier via cfe-commits
I would love to see this merged. It would make it easier to write libc++ tests if the tests didn't have to worry about the old 4.0 behavior. CC'ing Richard: Would merging this be OK? On Fri, Jan 13, 2017 at 3:46 PM, George Burgess IV < george.burgess...@gmail.com> wrote: > Do we want to

[PATCH] D28705: [Sema] Fix bug in handling of designated initializer

2017-01-13 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added reviewers: rsmith, rnk, arphaman. ahatanak added a subscriber: cfe-commits. CheckDesignatedInitializer wasn't taking into account the base classes when computing the index for the field in the derived class, which caused the test case to crash

r291964 - PR31631: fix bad CFG (and bogus warnings) when an if-statement has an init-statement and has binary operator as its condition.

2017-01-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jan 13 16:16:41 2017 New Revision: 291964 URL: http://llvm.org/viewvc/llvm-project?rev=291964=rev Log: PR31631: fix bad CFG (and bogus warnings) when an if-statement has an init-statement and has binary operator as its condition. Modified:

[PATCH] D21675: New ODR checker for modules

2017-01-13 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu marked an inline comment as done. rtrieu added a comment. From testing, there is no difference when compiling with pre-compiled headers. However, when building the headers, there is a 3-4% impact on compile time. https://reviews.llvm.org/D21675

[PATCH] D28703: [clang] Emit `diagnose_if` warnings from system headers

2017-01-13 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/D28703 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[libcxx] r291961 - Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros.

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 16:02:08 2017 New Revision: 291961 URL: http://llvm.org/viewvc/llvm-project?rev=291961=rev Log: Add _LIBCPP_DIAGNOSE_WARNING and _LIBCPP_DIAGNOSE_ERROR macros. Clang recently added a `diagnose_if(cond, msg, type)` attribute which can be used to generate

[PATCH] D28703: [clang] Emit `diagnose_if` warnings from system headers

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. EricWF added reviewers: george.burgess.iv, rsmith, aaron.ballman. EricWF added a subscriber: cfe-commits. In order for libc++ to meaningfully use `diagnose_if` warnings they need to be emitted from system headers by default. This patch changes the `diagnose_if`

[PATCH] D28691: Support synchronisation scope in Clang atomic builtin functions

2017-01-13 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl retitled this revision from "Support synchronisation scope in atomic builtin functions" to "Support synchronisation scope in Clang atomic builtin functions". yaxunl updated the summary for this revision. yaxunl updated this revision to Diff 84373. yaxunl added a comment. Fix typos and

Re: LLVM buildmaster will be unavailable on 1/13/17

2017-01-13 Thread Renato Golin via cfe-commits
Should we slow down, or block commits for the time being? It could be a total chaos when they get back... On 13 January 2017 at 19:16, Galina Kistanova via cfe-commits wrote: > Just a remainder. > > LLVM buildmaster will be offline today hopefully for short time due

r291955 - PR31606: Generalize our tentative DR resolution for inheriting copy/move

2017-01-13 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jan 13 14:46:54 2017 New Revision: 291955 URL: http://llvm.org/viewvc/llvm-project?rev=291955=rev Log: PR31606: Generalize our tentative DR resolution for inheriting copy/move constructors to better match the pre-P0136R1 behavior. Modified:

[PATCH] D28543: Elliminates uninitialized warning for volitile varibles.

2017-01-13 Thread Nico Weber via Phabricator via cfe-commits
thakis accepted this revision. thakis added a comment. This revision is now accepted and ready to land. Looks great to me, thanks! Unless someone else shouts, I'll land this for you soon. https://reviews.llvm.org/D28543 ___ cfe-commits mailing

[PATCH] D28691: Support synchronisation scope in atomic builtin functions

2017-01-13 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. yaxunl added reviewers: Anastasia, bader, rjmccall. yaxunl added a subscriber: cfe-commits. OpenCL 2.0 atomic builtin functions have a scope argument which is ideally represented as synchronization scope argument in LLVM atomic instructions. Clang supports

[PATCH] D21675: New ODR checker for modules

2017-01-13 Thread Richard Smith via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks, looks good assuming your performance testing doesn't uncover anything. Comment at: lib/AST/ODRHash.cpp:319-321 +if (!D) return; +if (D->isImplicit()) +

r291953 - Fix shared library build after r291938 by adding missing dependency on libOption

2017-01-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 13 13:47:55 2017 New Revision: 291953 URL: http://llvm.org/viewvc/llvm-project?rev=291953=rev Log: Fix shared library build after r291938 by adding missing dependency on libOption Thanks to Reid Kleckner for the help reproducing/fixing. Modified:

[PATCH] D26057: [coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt.

2017-01-13 Thread Richard Smith via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/ExprCXX.h:4237 + /// compiler. + bool IsImplicitlyCreated : 1; + I would go with just `isImplicit`, to match other similar uses throughout the AST. Also maybe sink this into the `Stmt` bitfields to

[PATCH] D28058: [OpenCL] Correct ndrange_t implementation

2017-01-13 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In https://reviews.llvm.org/D28058#645399, @dmitry wrote: > @yaxunl, we already have the similar issue for atomics. Probably we can > extend typedef semantic checks but I don't think it's a good idea since C and > C++ have the similar problem but they don't provide

[PATCH] D28365: [Driver] Updated for Visual Studio 2017

2017-01-13 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: lib/Driver/MSVCToolChain.cpp:34 + #if 0 +#define USE_VS_SETUP_CONFIG + #endif What are the outstanding issues preventing you from enabling this by default? Comment at:

Re: r291879 - Add a necessary newline for diagnose_if documentation.

2017-01-13 Thread Hans Wennborg via cfe-commits
Merged in r291952. Thanks, Hans On Thu, Jan 12, 2017 at 5:52 PM, Eric Christopher via cfe-commits wrote: > Author: echristo > Date: Thu Jan 12 19:52:04 2017 > New Revision: 291879 > > URL: http://llvm.org/viewvc/llvm-project?rev=291879=rev > Log: > Add a necessary

Re: r290392 - Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'.

2017-01-13 Thread Hans Wennborg via cfe-commits
Merged in r291951. Thanks, Hans On Fri, Jan 13, 2017 at 11:46 AM, Chandler Carruth wrote: > Also need to pull in r291881. Sorry about that. > > > On Thu, Jan 12, 2017 at 3:42 PM Hans Wennborg wrote: >> >> On Thu, Jan 12, 2017 at 3:01 PM, Chandler Carruth

Re: r290392 - Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'.

2017-01-13 Thread Chandler Carruth via cfe-commits
Also need to pull in r291881. Sorry about that. On Thu, Jan 12, 2017 at 3:42 PM Hans Wennborg wrote: > On Thu, Jan 12, 2017 at 3:01 PM, Chandler Carruth > wrote: > >> This isn't quite right, it should either be left as-is or dropped > >> completely. This

Re: r291907 - Revert "Support for Python 3 in libclang python bindings"

2017-01-13 Thread Hans Wennborg via cfe-commits
On Fri, Jan 13, 2017 at 8:06 AM, Jonathan Coe via cfe-commits wrote: > Author: jbcoe > Date: Fri Jan 13 10:06:59 2017 > New Revision: 291907 > > URL: http://llvm.org/viewvc/llvm-project?rev=291907=rev > Log: > Revert "Support for Python 3 in libclang python bindings" >

[PATCH] D21675: New ODR checker for modules

2017-01-13 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu marked 5 inline comments as done. rtrieu added a comment. Comments have been addressed. I will be testing it for performance impact next. Comment at: include/clang/AST/ODRHash.h:54 + // in Pointers. + size_type NextFreeIndex; + rsmith wrote: > Is

[libcxxabi] r291946 - [libc++abi] Add a silent terminate handler to libcxxabi.

2017-01-13 Thread James Y Knight via cfe-commits
Author: jyknight Date: Fri Jan 13 13:22:26 2017 New Revision: 291946 URL: http://llvm.org/viewvc/llvm-project?rev=291946=rev Log: [libc++abi] Add a silent terminate handler to libcxxabi. The current std::terminate_handler pulls in some string code, some I/O code, and more. Since it is

Re: r291877 - [Sema] Restrict explicit instantation definition dllexport

2017-01-13 Thread Hans Wennborg via cfe-commits
Merged in r291943. Thanks, Hans On Thu, Jan 12, 2017 at 5:58 PM, Shoaib Meenai wrote: > Requesting a merge to the 4.0 branch. This is a pretty small change, and it > fixes an assertion failure on Windows (see PR31608 for details). > > On 1/12/17, 5:28 PM, "cfe-commits on behalf

[PATCH] D26057: [coroutines] Add DependentCoawaitExpr and fix re-building CoroutineBodyStmt.

2017-01-13 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @rsmith Ping. Would you like me to split this up into smaller change sets? https://reviews.llvm.org/D26057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r291941 - Remove unused lambda captures. NFC

2017-01-13 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Fri Jan 13 13:02:50 2017 New Revision: 291941 URL: http://llvm.org/viewvc/llvm-project?rev=291941=rev Log: Remove unused lambda captures. NFC Modified: clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp Modified:

[clang-tools-extra] r291940 - Remove unused lambda captures. NFC

2017-01-13 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Fri Jan 13 12:56:04 2017 New Revision: 291940 URL: http://llvm.org/viewvc/llvm-project?rev=291940=rev Log: Remove unused lambda captures. NFC Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp

r291938 - unique_ptrify Driver::ToolChains

2017-01-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 13 12:53:43 2017 New Revision: 291938 URL: http://llvm.org/viewvc/llvm-project?rev=291938=rev Log: unique_ptrify Driver::ToolChains Modified: cfe/trunk/include/clang/Driver/Driver.h cfe/trunk/lib/Driver/Driver.cpp Modified:

[libcxx] r291935 - Fix merge error caused by r291922

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 12:42:41 2017 New Revision: 291935 URL: http://llvm.org/viewvc/llvm-project?rev=291935=rev Log: Fix merge error caused by r291922 Modified: libcxx/branches/release_40/include/ios Modified: libcxx/branches/release_40/include/ios URL:

[libcxx] r291925 - Fix merge conflict caused by r291921

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 12:25:13 2017 New Revision: 291925 URL: http://llvm.org/viewvc/llvm-project?rev=291925=rev Log: Fix merge conflict caused by r291921 Modified: libcxx/trunk/include/ios Modified: libcxx/trunk/include/ios URL:

[libcxx] r291922 - Revert "Rework fix for PR19460 - Use explicit bool as an extension instead."

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 12:08:23 2017 New Revision: 291922 URL: http://llvm.org/viewvc/llvm-project?rev=291922=rev Log: Revert "Rework fix for PR19460 - Use explicit bool as an extension instead." Modified: libcxx/branches/release_40/include/__config

[libcxx] r291921 - Revert "Rework fix for PR19460 - Use explicit bool as an extension instead."

2017-01-13 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jan 13 12:03:46 2017 New Revision: 291921 URL: http://llvm.org/viewvc/llvm-project?rev=291921=rev Log: Revert "Rework fix for PR19460 - Use explicit bool as an extension instead." This reverts commit 3a1b90a866b6d5d62a5f37fbfb3a1ee36cc70dd1. Modified:

r291919 - unique_ptrify createDriverOptTable

2017-01-13 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Fri Jan 13 11:34:15 2017 New Revision: 291919 URL: http://llvm.org/viewvc/llvm-project?rev=291919=rev Log: unique_ptrify createDriverOptTable Modified: cfe/trunk/include/clang/Driver/Driver.h cfe/trunk/include/clang/Driver/Options.h

[PATCH] D27486: Correct class-template deprecation behavior

2017-01-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. I've actually figured out how to fix the diagnosis location. I switched the diagnosis to use the location of the actual [[deprecated]] attribute instead of the Declaration location. IMO, this is a BETTER note anyway (since the arrow points to the actual

[PATCH] D27800: Add overload of TransformToPotentiallyEvaluated for TypeSourceInfo

2017-01-13 Thread Paulo Matos via Phabricator via cfe-commits
pmatos added a comment. Ah no, my mistake. I had the patch applied when I ran the test. https://reviews.llvm.org/D27800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26082: Support for Python 3 in libclang python bindings

2017-01-13 Thread Mathieu Duponchelle via Phabricator via cfe-commits
MathieuDuponchelle added a comment. In https://reviews.llvm.org/D26082#645361, @jbcoe wrote: > I've reverted this change and submitted https://reviews.llvm.org/D28682 to > explicitly check the Python version. > > I'll pick this up again, I do want Python 3 support. I'm not entirely sure why

[PATCH] D28058: [OpenCL] Correct ndrange_t implementation

2017-01-13 Thread Dmitry Borisenkov via Phabricator via cfe-commits
dmitry added a comment. @yaxunl, we already have the similar issue for atomics. Probably we can extend typedef semantic checks but I don't think it's a good idea since C and C++ have the similar problem but they don't provide special treatment for types from their standard libraries. I think

Re: r291871 - Update C++ status pages for Clang 4 branch:

2017-01-13 Thread Hans Wennborg via cfe-commits
On Thu, Jan 12, 2017 at 4:57 PM, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Thu Jan 12 18:57:54 2017 > New Revision: 291871 > > URL: http://llvm.org/viewvc/llvm-project?rev=291871=rev > Log: > Update C++ status pages for Clang 4 branch: > > * Update

Re: r291865 - Improve handling of instantiated thread_local variables in Itanium C++ ABI.

2017-01-13 Thread Hans Wennborg via cfe-commits
Merged in r291912. Thanks, Hans On Thu, Jan 12, 2017 at 5:50 PM, Richard Smith wrote: > This should go onto the 4.0 branch. > > -- Forwarded message -- > From: Richard Smith via cfe-commits > Date: 12 January 2017 at 16:43 >

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

2017-01-13 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. There are quite a few of them! Repository: rL LLVM https://reviews.llvm.org/D28467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2017-01-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D28467#645348, @malcolm.parsons wrote: > http://lab.llvm.org:8011/builders/sanitizer-ppc64be-linux/builds/1122/steps/bootstrap%20clang/logs/stdio > > >

[PATCH] D26082: Support for Python 3 in libclang python bindings

2017-01-13 Thread Jonathan B Coe via Phabricator via cfe-commits
jbcoe added a comment. I've reverted this change and submitted https://reviews.llvm.org/D28682 to explicitly check the Python version. I'll pick this up again, I do want Python 3 support. Repository: rL LLVM https://reviews.llvm.org/D26082 ___

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

2017-01-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. IMO, you can go ahead and commit a fix that removes the captures, and the fix can be reviewed post-commit. I don't think you should revert this patch as you'll have to remove the captures anyway before reinstating this patch, so might as well do it now. Repository:

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

2017-01-13 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. http://lab.llvm.org:8011/builders/sanitizer-ppc64be-linux/builds/1122/steps/bootstrap%20clang/logs/stdio /home/buildbots/ppc64be-sanitizer/sanitizer-ppc64be/build/llvm/lib/Analysis/ValueTracking.cpp:1116:17: error: lambda capture 'BitWidth' is not used

[PATCH] D27800: Add overload of TransformToPotentiallyEvaluated for TypeSourceInfo

2017-01-13 Thread Paulo Matos via Phabricator via cfe-commits
pmatos added a comment. Has this been fixed upstream already? https://reviews.llvm.org/D27800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r291907 - Revert "Support for Python 3 in libclang python bindings"

2017-01-13 Thread Jonathan Coe via cfe-commits
Author: jbcoe Date: Fri Jan 13 10:06:59 2017 New Revision: 291907 URL: http://llvm.org/viewvc/llvm-project?rev=291907=rev Log: Revert "Support for Python 3 in libclang python bindings" This reverts commit 4464581bb63e9789e9ee231a8c8800be5f614743. Memory access issues on Linux were reported by

Re: r284890 - DR583, DR1512: Implement a rewrite to C++'s 'composite pointer type' rules.

2017-01-13 Thread Richard Smith via cfe-commits
On 13 Jan 2017 4:40 am, "Dimitry Andric via cfe-commits" < cfe-commits@lists.llvm.org> wrote: On 22 Oct 2016, at 00:00, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: rsmith > Date: Fri Oct 21 17:00:42 2016 > New Revision: 284890 > > URL:

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

2017-01-13 Thread Malcolm Parsons via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL291905: [Sema] Add warning for unused lambda captures (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D28467?vs=84122=84305#toc Repository: rL LLVM

r291905 - [Sema] Add warning for unused lambda captures

2017-01-13 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Fri Jan 13 09:01:06 2017 New Revision: 291905 URL: http://llvm.org/viewvc/llvm-project?rev=291905=rev Log: [Sema] Add warning for unused lambda captures Summary: Warn when a lambda explicitly captures something that is not used in its body. The warning is part of

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

2017-01-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/SemaCXX/warn-unused-lambda-capture.cpp:86 + auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capture 'i' is not required to be captured for use in an unevaluated context}} +

  1   2   >