[libcxx] r302122 - test commit

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 4 01:28:34 2017 New Revision: 302122 URL: http://llvm.org/viewvc/llvm-project?rev=302122&view=rev Log: test commit Modified: libcxx/trunk/CMakeLists.txt Modified: libcxx/trunk/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?r

[libcxx] r302120 - test commit

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 4 01:27:06 2017 New Revision: 302120 URL: http://llvm.org/viewvc/llvm-project?rev=302120&view=rev Log: test commit Modified: libcxx/trunk/CMakeLists.txt Modified: libcxx/trunk/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?r

[PATCH] D32735: [libcxxabi][CMake] Set library dir when built under runtimes/

2017-05-03 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302118: [libcxxabi][CMake] Set library dir when built under runtimes/ (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D32735?vs=97402&id=9#toc Repository: rL LLVM https

[libcxxabi] r302118 - [libcxxabi][CMake] Set library dir when built under runtimes/

2017-05-03 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu May 4 01:04:49 2017 New Revision: 302118 URL: http://llvm.org/viewvc/llvm-project?rev=302118&view=rev Log: [libcxxabi][CMake] Set library dir when built under runtimes/ This will put libraries into the build root's lib/ directory by default. Differential Revision: htt

[PATCH] D32736: [libcxx][CMake] Set library dir when built under runtimes/

2017-05-03 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302117: [libcxx][CMake] Set library dir when built under runtimes/ (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D32736?vs=97403&id=97776#toc Repository: rL LLVM https://

[libcxx] r302117 - [libcxx][CMake] Set library dir when built under runtimes/

2017-05-03 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu May 4 01:02:50 2017 New Revision: 302117 URL: http://llvm.org/viewvc/llvm-project?rev=302117&view=rev Log: [libcxx][CMake] Set library dir when built under runtimes/ This will put libraries into the build root's lib/ directory by default. Differential Revision: https:

[libcxx] r302116 - update buildbot doc to link to the new Appveyor builders

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 4 00:58:59 2017 New Revision: 302116 URL: http://llvm.org/viewvc/llvm-project?rev=302116&view=rev Log: update buildbot doc to link to the new Appveyor builders Modified: libcxx/trunk/docs/index.rst Modified: libcxx/trunk/docs/index.rst URL: http://llvm.org/view

[PATCH] D32745: Correct debug info bit offset calculation for big-endian targets

2017-05-03 Thread Frej Drejhammar via Phabricator via cfe-commits
frej updated this revision to Diff 97773. frej added a comment. Removed 'REQUIRES'-line. https://reviews.llvm.org/D32745 Files: clang/lib/CodeGen/CGDebugInfo.cpp clang/test/CodeGen/mips-debug-info-bitfield.c Index: clang/test/CodeGen/mips-debug-info-bitfield.c

[libcxx] r302115 - Attempt to enable the LIT progress bar on Appveyor

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 4 00:32:54 2017 New Revision: 302115 URL: http://llvm.org/viewvc/llvm-project?rev=302115&view=rev Log: Attempt to enable the LIT progress bar on Appveyor Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/appveyor.yml URL: http://llvm.org/viewvc/llvm-pr

[PATCH] D30805: [OpenCL] Add intel_reqd_sub_group_size attribute support

2017-05-03 Thread Xiuli PAN via Phabricator via cfe-commits
pxli168 updated this revision to Diff 97772. pxli168 added a comment. Fix attribute test case. https://reviews.llvm.org/D30805 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/CodeGenFunction.cpp lib/CodeGen/CodeGenFunction.h lib/Sema/SemaDeclAttr.cpp t

[libcxx] r302113 - Setup Appveyor bot for MSVC 2017 and MSVC 2015

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu May 4 00:16:48 2017 New Revision: 302113 URL: http://llvm.org/viewvc/llvm-project?rev=302113&view=rev Log: Setup Appveyor bot for MSVC 2017 and MSVC 2015 Added: libcxx/trunk/install-appveyor-reqs.cmd Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/app

[PATCH] D32385: [libcxx] optional: Implement LWG 2900 and P0602

2017-05-03 Thread Casey Carter via Phabricator via cfe-commits
CaseyCarter updated this revision to Diff 97769. CaseyCarter added a comment. Polish: clarify `static_assert` messages, DeMorgan a clause so it more precisely reflects the `static_assert` message. https://reviews.llvm.org/D32385 Files: include/optional test/libcxx/utilities/optional/option

[PATCH] D32671: [libcxx] [test] variant: test coverage for P0602 extension

2017-05-03 Thread Casey Carter via Phabricator via cfe-commits
CaseyCarter updated this revision to Diff 97768. CaseyCarter added a comment. Fix typos in test/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp. https://reviews.llvm.org/D32671 Files: test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp test/std/utilit

r302108 - IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI.

2017-05-03 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed May 3 22:36:16 2017 New Revision: 302108 URL: http://llvm.org/viewvc/llvm-project?rev=302108&view=rev Log: IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI. When profiling a no-op incremental link of Chromium I found that the functions compu

[libcxx] r302105 - [libcxx] [test] Strip trailing whitespace. NFC.

2017-05-03 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Wed May 3 20:43:58 2017 New Revision: 302105 URL: http://llvm.org/viewvc/llvm-project?rev=302105&view=rev Log: [libcxx] [test] Strip trailing whitespace. NFC. Modified: libcxx/trunk/test/libcxx/algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle.cxx1

[libcxx] r302104 - [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER.

2017-05-03 Thread Stephan T. Lavavej via cfe-commits
Author: stl_msft Date: Wed May 3 20:35:11 2017 New Revision: 302104 URL: http://llvm.org/viewvc/llvm-project?rev=302104&view=rev Log: [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER. _HAS_CXX17 indicates whether MSVC's STL is in C++17 mode. In MSVC there's

[libcxx] r302101 - Attempt to setup MSVC 2017

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 20:17:21 2017 New Revision: 302101 URL: http://llvm.org/viewvc/llvm-project?rev=302101&view=rev Log: Attempt to setup MSVC 2017 Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/appveyor.yml URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/appve

[libcxx] r302102 - Attempt to escape paths correctly

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 20:17:22 2017 New Revision: 302102 URL: http://llvm.org/viewvc/llvm-project?rev=302102&view=rev Log: Attempt to escape paths correctly Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/appveyor.yml URL: http://llvm.org/viewvc/llvm-project/libcxx/trun

[libcxx] r302100 - Use nullptr instead of the literal 0

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 20:06:56 2017 New Revision: 302100 URL: http://llvm.org/viewvc/llvm-project?rev=302100&view=rev Log: Use nullptr instead of the literal 0 Modified: libcxx/trunk/include/memory libcxx/trunk/src/memory.cpp Modified: libcxx/trunk/include/memory URL: http://l

[libcxx] r302099 - Fix macro redefinition warnings for _LIBCPP_NO_RTTI

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 20:06:54 2017 New Revision: 302099 URL: http://llvm.org/viewvc/llvm-project?rev=302099&view=rev Log: Fix macro redefinition warnings for _LIBCPP_NO_RTTI Modified: libcxx/trunk/include/__config Modified: libcxx/trunk/include/__config URL: http://llvm.org/viewv

[PATCH] D32838: [libcxx] Make __shared_weak_count VTable consistent across all build configurations

2017-05-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: src/memory.cpp:126-130 const void* __shared_weak_count::__get_deleter(const type_info&) const _NOEXCEPT { -return 0; +return nullptr; } dexonsmith wrote: > If this is the right change, seems like the 0/nullptr

r302098 - Add #pragma clang module begin/end pragmas and generate them when preprocessing a module.

2017-05-03 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed May 3 19:29:54 2017 New Revision: 302098 URL: http://llvm.org/viewvc/llvm-project?rev=302098&view=rev Log: Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. These pragmas are intended to simulate the effect of entering or leaving

[PATCH] D32726: [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER.

2017-05-03 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT added inline comments. Comment at: test/support/msvc_stdlib_force_include.hpp:76 +#include + EricWF wrote: > Is the `stdlib.h` include above not enough? It isn't enough. In MSVC there's a distinction between CRT headers like `stdlib.h` and STL header

[libcxx] r302097 - Test commit for Appveyor - Remove incorrect caching logic

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 19:16:35 2017 New Revision: 302097 URL: http://llvm.org/viewvc/llvm-project?rev=302097&view=rev Log: Test commit for Appveyor - Remove incorrect caching logic Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/appveyor.yml URL: http://llvm.org/viewvc/

[PATCH] D32043: [Driver] Load all necessary default sanitizer blacklists

2017-05-03 Thread Vedant Kumar via Phabricator via cfe-commits
vsk abandoned this revision. vsk added a comment. Obsoleted by: https://reviews.llvm.org/D32842 https://reviews.llvm.org/D32043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32842: Specify which sanitizers are covered by a sanitizer blacklist

2017-05-03 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. Sanitizer blacklists currently apply to all enabled sanitizers. E.g if multiple sanitizers are enabled, it isn't possible to specify a blacklist for one sanitizer and not another. This makes it impossible to load default blacklists for more than one sanitizer, because d

Buildbot numbers for the last week of 04/23/2017 - 04/29/2017

2017-05-03 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 04/23/2017 - 04/29/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 fro

Buildbot numbers for the week of 04/16/2017 - 04/22/2017

2017-05-03 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 04/16/2017 - 04/22/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 gre

[PATCH] D32838: [libcxx] Make __shared_weak_count VTable consistent across all build configurations

2017-05-03 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. Breaking the ABI of that configuration SGTM. Comment at: src/memory.cpp:126-130 const void* __shared_weak_count::__get_deleter(const type_info&) const _NOEXCEPT { -return 0; +return nullptr; } If this is the right change,

[PATCH] D32836: CMake: Only add test/ subdirectory when it exists

2017-05-03 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. Thanks for being flexible; committed in r302095. Maybe longer term we could add a CMake configuration for whether to include the tests, but naming it might be hard ;). https://reviews.llvm.org/D32836 ___ cfe-commits ma

[libcxx] r302095 - CMake: Only add test/ subdirectory when it exists

2017-05-03 Thread Duncan P. N. Exon Smith via cfe-commits
Author: dexonsmith Date: Wed May 3 18:33:54 2017 New Revision: 302095 URL: http://llvm.org/viewvc/llvm-project?rev=302095&view=rev Log: CMake: Only add test/ subdirectory when it exists r296685 started adding the test/ subdirectory even when LIBCXX_INCLUDE_TESTS=OFF. This is great for testing l

[PATCH] D32836: CMake: Only add test/ subdirectory when it exists

2017-05-03 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. I'm OK with this patch because it's minimally invasive. However it seems strange to support arbitrary configurations that delete random parts of the source tree. https://reviews.llvm.org/D32

[PATCH] D32838: [libcxx] Make __shared_weak_count VTable consistent across all build configurations

2017-05-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. This patch ensures that `__shared_weak_count` provides a consistent vtable regardless of if RTTI is enabled or if we are targeting a static or shared libc++ build. This patch is technically ABI breaking, but only for a very specific configuration that neither Appl

[PATCH] D32836: CMake: Only add test/ subdirectory when it exists

2017-05-03 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith created this revision. Herald added a subscriber: mgorny. CMake: Only add test/ subdirectory when it exists r296685 started adding the test/ subdirectory even when LIBCXX_INCLUDE_TESTS=OFF. This is great for testing libcxx standalone, but it also breaks the build when the test/ subdir

[PATCH] D32824: [libc++] Use placeholder return types to avoid hard errors during overload resolution

2017-05-03 Thread Robert Haberlach via Phabricator via cfe-commits
Arcoth added a comment. In https://reviews.llvm.org/D32824#745392, @EricWF wrote: > This change regresses other code. By changing `__bind_return<...>::type` into > `decltype(auto)` you prevent the member functions from SFINAE'ing. For > example: > > #include > > struct Func { > templ

[PATCH] D32824: [libc++] Use placeholder return types to avoid hard errors during overload resolution

2017-05-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. This change regresses other code. By changing `__bind_return<...>::type` into `decltype(auto)` you prevent the member functions from SFINAE'ing. For example: #include struct

[PATCH] D32178: Delete unstable integration tests

2017-05-03 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs added a comment. Ping. @arphaman I'd like to remove them, absent a concrete plan to fix this from folks with a vested interest in them (i.e. you). https://reviews.llvm.org/D32178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

Re: r302037 - DiagnosticsEngine should clear DelayedDiagID before reporting the

2017-05-03 Thread Richard Smith via cfe-commits
On 3 May 2017 at 08:41, Alex Lorenz via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: arphaman > Date: Wed May 3 10:41:16 2017 > New Revision: 302037 > > URL: http://llvm.org/viewvc/llvm-project?rev=302037&view=rev > Log: > DiagnosticsEngine should clear DelayedDiagID before reportin

[libcxx] r302084 - Attempt to fix appveyor build

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 16:14:26 2017 New Revision: 302084 URL: http://llvm.org/viewvc/llvm-project?rev=302084&view=rev Log: Attempt to fix appveyor build Modified: libcxx/trunk/appveyor.yml Modified: libcxx/trunk/appveyor.yml URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/ap

Re: r301992 - [modules] Round-trip -Werror flag through explicit module build.

2017-05-03 Thread Richard Smith via cfe-commits
On 3 May 2017 at 07:29, Alex L wrote: > Hi Richard, > > This commit has caused an infinite loop in one of our internal libclang > based tooling tests. It keeps repeating the following frames: > > frame #33528: 0x000109db2edf libclang.dylib`clang:: > DiagnosticsEngine::ReportDelayed(this=0

[PATCH] D32726: [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER.

2017-05-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. Also you're free to commit to MSVC specific files without pre-commit review :-) https://reviews.llvm.org/D32726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[PATCH] D32726: [libcxx] [test] In msvc_stdlib_force_include.hpp, use _HAS_CXX17 to set TEST_STD_VER.

2017-05-03 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 after addressing inline comments. Comment at: test/support/msvc_stdlib_force_include.hpp:76 +#include + Is the `stdlib.h` include above not enough?

[libcxx] r302082 - Qualify calls to __invoke, __apply_fuctor, and __mu

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 16:02:19 2017 New Revision: 302082 URL: http://llvm.org/viewvc/llvm-project?rev=302082&view=rev Log: Qualify calls to __invoke, __apply_fuctor, and __mu Modified: libcxx/trunk/include/functional Modified: libcxx/trunk/include/functional URL: http://llvm.org/v

[PATCH] D32828: [Modules] Fix conservative assertion for import diagnostics

2017-05-03 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno created this revision. We currenltly assert when want to diagnose a missing import and the decl in question is already visible. It turns out that the decl in question might be visible because another decl from the same module actually made the module visible in a previous error diagnostic

r302079 - [Driver] Update AArch64 testcase to match llvm r302078.

2017-05-03 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Wed May 3 15:34:32 2017 New Revision: 302079 URL: http://llvm.org/viewvc/llvm-project?rev=302079&view=rev Log: [Driver] Update AArch64 testcase to match llvm r302078. Modified: cfe/trunk/test/Preprocessor/aarch64-target-features.c Modified: cfe/trunk/test/Preprocessor/aarch

[PATCH] D32824: [libc++] Use placeholder return types to avoid hard errors during overload resolution

2017-05-03 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. Please add a test for this. https://reviews.llvm.org/D32824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r302071 - Merge r296561 - Fix PR32097 - is_abstract doesn't work on class templates.

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 14:50:39 2017 New Revision: 302071 URL: http://llvm.org/viewvc/llvm-project?rev=302071&view=rev Log: Merge r296561 - Fix PR32097 - is_abstract doesn't work on class templates. Modified: libcxx/branches/release_40/include/type_traits libcxx/branches/release

[libcxx] r302070 - Merge r300397 - Fix PR32642 - string::insert and string::append don't work with move_iterator.

2017-05-03 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Wed May 3 14:48:55 2017 New Revision: 302070 URL: http://llvm.org/viewvc/llvm-project?rev=302070&view=rev Log: Merge r300397 - Fix PR32642 - string::insert and string::append don't work with move_iterator. Modified: libcxx/branches/release_40/include/string libcxx/

[PATCH] D32825: [clang-format] Improve understanding of combined typedef+record declarations

2017-05-03 Thread Jacob Bandes-Storch via Phabricator via cfe-commits
jtbandes created this revision. Herald added a subscriber: klimek. Fixes an issue where `struct A { int X; };` would be broken onto multiple lines, but `typedef struct A { int X; } A2;` was collapsed onto a single line. https://reviews.llvm.org/D32825 Files: lib/Format/UnwrappedLineFormatter

[PATCH] D32824: [libc++] Use placeholder return types to avoid hard errors during overload resolution

2017-05-03 Thread Robert Haberlach via Phabricator via cfe-commits
Arcoth created this revision. Herald added a reviewer: EricWF. See https://bugs.llvm.org/show_bug.cgi?id=32856. Basically, as this code was written before placeholder return types for functions were a thing, the function call operators of __bind apply decltype on the call expression to infer the

r302066 - Tests: strengthen CHECK line to avoid picking up stray path.

2017-05-03 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Wed May 3 14:20:45 2017 New Revision: 302066 URL: http://llvm.org/viewvc/llvm-project?rev=302066&view=rev Log: Tests: strengthen CHECK line to avoid picking up stray path. A bot had "-LTO" in its working directory, which matched the regex used in this test. Since the arg

[PATCH] D32332: Add support for transparent overloadable functions in clang

2017-05-03 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv updated this revision to Diff 97698. george.burgess.iv added a comment. We now require `transparently_overloadable` on all redeclarations. Allowing mixed `transparently_overloadable` and `overloadable` coming soon. https://reviews.llvm.org/D32332 Files: include/clang/Basic/

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rL LLVM https://reviews.llvm.org/D32767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 97704. kuhar added a comment. I switched from a narrowing matcher to a "normal" node matcher. Repository: rL LLVM https://reviews.llvm.org/D32767 Files: clang-tidy/modernize/UseEmplaceCheck.cpp test/clang-tidy/modernize-use-emplace.cpp Index: test/cl

[PATCH] D32810: Add cxxStdInitializerListExpr AST matcher

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rL LLVM https://reviews.llvm.org/D32810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D32810: Add cxxStdInitializerListExpr AST matcher

2017-05-03 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar updated this revision to Diff 97700. kuhar added a comment. I regenerated docs and added unit tests. Thanks for help. Repository: rL LLVM https://reviews.llvm.org/D32810 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Regi

[PATCH] D32332: Add support for transparent overloadable functions in clang

2017-05-03 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv added a comment. > I'd like to understand this use case a little bit better. If you don't > perform the mangling, then choosing which overload gets called is already > based on the source order, isn't it? See https://godbolt.org/g/8b10Ns I think I might have miscommunicated: `

[PATCH] D31130: B32239 clang-tidy should not warn about array to pointer decay on system macros

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp:60 + + sys_fn_decay_str(SYS_STRING); // Not Ok - should it be ok? + // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: do not implicitly decay an array

Re: r301994 - [sanitizer-coverage] add a deprecation warning to the old sanitizer-coverage flag combinations

2017-05-03 Thread Kostya Serebryany via cfe-commits
Thanks! On Wed, May 3, 2017 at 9:15 AM, Reid Kleckner wrote: > This broke a WinASan test that builds with -Werror: > http://lab.llvm.org:8011/builders/sanitizer-windows/builds/10647 > > I tried to fix it in r302043, but I haven't finished testing it yet. > > On Tue, May 2, 2017 at 6:27 PM, Kosty

[PATCH] D32613: [Driver] Update Fuchsia driver path handling

2017-05-03 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. lgtm Repository: rL LLVM https://reviews.llvm.org/D32613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

r302060 - [IR] Abstract away ArgNo+1 attribute indexing as much as possible

2017-05-03 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed May 3 13:17:31 2017 New Revision: 302060 URL: http://llvm.org/viewvc/llvm-project?rev=302060&view=rev Log: [IR] Abstract away ArgNo+1 attribute indexing as much as possible Summary: Do three things to help with that: - Add AttributeList::FirstArgIndex, which is an enumerato

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:23 +AST_MATCHER(CXXStdInitializerListExpr, cxxStdInitializerListExpr) { + return true; kuhar wrote: > Prazek wrote: > > kuhar wrote: > > > alexfh wrote: > > > > This shou

[PATCH] D32817: [CMake] Build runtimes for Fuchsia targets

2017-05-03 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. This relies on the multi-target runtimes build support. Repository: rL LLVM https://reviews.llvm.org/D32817 Files: cmake/caches/Fuchsia-stage2.cmake cmake/caches/Fuchsia.cmake Index: cmake/caches/Fuchsia.cmake ===

[PATCH] D32815: [clang-tidy][CMake] Make clang-tidy usable as distribution component

2017-05-03 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added a project: clang-tools-extra. Herald added subscribers: xazax.hun, mgorny. Use add_clang_tool rather than add_clang_executable to support clang-tidy as a distribution component. Repository: rL LLVM https://reviews.llvm.org/D32815 Files: clang-tid

Fix two-stage build on windows using DistributionExample cmake cache

2017-05-03 Thread Matthew Larionov via cfe-commits
I've added a correct compiler name for bootstrap builds on windows. Also added an opportunity to override stage2 cache file to make distribution example more flexible. fix_win_example_distribution.patch Description: Binary data ___ cfe-commits mailing l

[PATCH] D32745: Correct debug info bit offset calculation for big-endian targets

2017-05-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Looks good without the REQUIRES line, thanks for the fix! It's unfortunate that this logic is here and in CodeGen/AsmPrinter/DwarfUnit.cpp, but such is life. https://reviews.llvm.org/D32745 ___ cfe-

[PATCH] D32810: Add cxxStdInitializerListExpr AST matcher

2017-05-03 Thread Malcolm Parsons via Phabricator via cfe-commits
malcolm.parsons added a comment. Please run `docs/tools/dump_ast_matchers.py` to update the docs. Repository: rL LLVM https://reviews.llvm.org/D32810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D32810: Add cxxStdInitializerListExpr AST matcher

2017-05-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Please add a test. Repository: rL LLVM https://reviews.llvm.org/D32810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r301815 - Adapt to LLVM's rename of WeakVH to WeakTrackingVH; NFC

2017-05-03 Thread Sanjoy Das via cfe-commits
Hi Yaron, On Wed, May 3, 2017 at 2:11 AM, Yaron Keren wrote: > out-of-tree code that uses WeakVH will continue to compile OK but may not > perform OK with WeakVH not tracking anymore. > May be better not to reuse WeakVH yet so such code will fail compilation. Typically we tend to focus on simpli

r302046 - Revert r302037

2017-05-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 3 11:22:16 2017 New Revision: 302046 URL: http://llvm.org/viewvc/llvm-project?rev=302046&view=rev Log: Revert r302037 The commit caused the following two buildbot failures: Clang :: Misc/error-limit-multiple-notes.cpp Clang :: Misc/error-limit.c Removed:

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:23 +AST_MATCHER(CXXStdInitializerListExpr, cxxStdInitializerListExpr) { + return true; Prazek wrote: > kuhar wrote: > > alexfh wrote: > > > This should be a node matcher rather t

[PATCH] D32613: [Driver] Update Fuchsia driver path handling

2017-05-03 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 97665. phosek added a comment. Done Repository: rL LLVM https://reviews.llvm.org/D32613 Files: lib/Driver/ToolChains/Fuchsia.cpp lib/Driver/ToolChains/Fuchsia.h test/Driver/fuchsia.cpp Index: test/Driver/fuchsia.cpp

[PATCH] D32810: Add cxxStdInitializerListExpr AST matcher

2017-05-03 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar created this revision. Herald added a subscriber: klimek. This adds a new ASTMatcher for CXXStdInitializerListExprs that matches C++ initializer list expressions. The primary motivation is to use it to fix PR32896 (review here D32767

Re: r301994 - [sanitizer-coverage] add a deprecation warning to the old sanitizer-coverage flag combinations

2017-05-03 Thread Reid Kleckner via cfe-commits
This broke a WinASan test that builds with -Werror: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/10647 I tried to fix it in r302043, but I haven't finished testing it yet. On Tue, May 2, 2017 at 6:27 PM, Kostya Serebryany via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Autho

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:23 +AST_MATCHER(CXXStdInitializerListExpr, cxxStdInitializerListExpr) { + return true; kuhar wrote: > alexfh wrote: > > This should be a node matcher rather than a narrowing mat

[PATCH] D32745: Correct debug info bit offset calculation for big-endian targets

2017-05-03 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. Ah. Thanks for clarifying! We should remove it, then. https://reviews.llvm.org/D32745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r302037 - DiagnosticsEngine should clear DelayedDiagID before reporting the

2017-05-03 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed May 3 10:41:16 2017 New Revision: 302037 URL: http://llvm.org/viewvc/llvm-project?rev=302037&view=rev Log: DiagnosticsEngine should clear DelayedDiagID before reporting the delayed diagnostic This avoids an infinite loop that was uncovered in one of our internal tests

[PATCH] D32807: [OpenMP] Extended parse for 'always' map modifier

2017-05-03 Thread Carlo Bertolli via Phabricator via cfe-commits
carlo.bertolli closed this revision. carlo.bertolli added a comment. Committed revision 302031. Repository: rL LLVM https://reviews.llvm.org/D32807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[PATCH] D32378: Insert invariant.group.barrier for pointers comparisons

2017-05-03 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. In https://reviews.llvm.org/D32378#741989, @hubert.reinterpretcast wrote: > Has it been discussed whether this is something to be addressed in the > optimizer as opposed to the front-end? The example that you showed is excellent. I didn't know that LLVM does the transf

r302031 - [OpenMP] Extended parse for 'always' map modifier

2017-05-03 Thread Carlo Bertolli via cfe-commits
Author: cbertol Date: Wed May 3 10:28:48 2017 New Revision: 302031 URL: http://llvm.org/viewvc/llvm-project?rev=302031&view=rev Log: [OpenMP] Extended parse for 'always' map modifier https://reviews.llvm.org/D32807 This patch allows the map modifier 'always' to be separated by the map type (to

[PATCH] D31887: [clangd] Add documentation page

2017-05-03 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Looks good! Thank you! https://reviews.llvm.org/D31887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

[PATCH] D32807: [OpenMP] Extended parse for 'always' map modifier

2017-05-03 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rL LLVM https://reviews.llvm.org/D32807 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-03 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D32759#744613, @chenwj wrote: > > Ah, sorry. "Our Tests" means the lit test SemaObjC/method-bad-param.m > > (line 11). I ran the lit tests initially with a breakpoint on this line > > and it never hit, though I must have set up the debug

[PATCH] D32807: [OpenMP] Extended parse for 'always' map modifier

2017-05-03 Thread Carlo Bertolli via Phabricator via cfe-commits
carlo.bertolli created this revision. This patch allows the map modifier 'always' to be separated by the map type (to, from, tofrom) only by a whitespace, rather than strictly by a comma as in current trunk. Repository: rL LLVM https://reviews.llvm.org/D32807 Files: lib/Parse/ParseOpenMP

[PATCH] D32796: [Driver] Add a "-mmacos_version_min" option that's an alias for "-mmacosx_version_min"

2017-05-03 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM. Repository: rL LLVM https://reviews.llvm.org/D32796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

[PATCH] D32700: [clang-tidy] Add misc-suspicious-memset-usage check.

2017-05-03 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs added a comment. In https://reviews.llvm.org/D32700#743178, @malcolm.parsons wrote: > Can you change this to match any pointer to a class with a virtual function? Well, I have just found a clang flag `-Wdynamic-class-memaccess`

[PATCH] D32700: [clang-tidy] Add misc-suspicious-memset-usage check.

2017-05-03 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs updated this revision to Diff 97646. rnkovacs edited the summary of this revision. rnkovacs added a comment. - Fixed function call format in docs. - Added check to release notes. https://reviews.llvm.org/D32700 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cp

[PATCH] D32745: Correct debug info bit offset calculation for big-endian targets

2017-05-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D32745#744292, @frej wrote: > In https://reviews.llvm.org/D32745#744280, @rnk wrote: > > > The REQUIRES tag is unnecessary. Clang can emit IR for any target without a > > registered backed. > > > So should I drop it? It doesn't hurt does it? Som

r302024 - Reusing an existing attribute diagnostic

2017-05-03 Thread Oren Ben Simhon via cfe-commits
Author: orenb Date: Wed May 3 09:05:00 2017 New Revision: 302024 URL: http://llvm.org/viewvc/llvm-project?rev=302024&view=rev Log: Reusing an existing attribute diagnostic In a previous patch, a new generic error diagnostic for inconsistent attributes was added. In this commit I reuse this diag

Re: r301992 - [modules] Round-trip -Werror flag through explicit module build.

2017-05-03 Thread Alex L via cfe-commits
Hi Richard, This commit has caused an infinite loop in one of our internal libclang based tooling tests. It keeps repeating the following frames: frame #33528: 0x000109db2edf libclang.dylib`clang::DiagnosticsEngine::ReportDelayed(this=0x00011c002c00) at Diagnostic.cpp:149 frame #3

[PATCH] D31867: Fix documentation for TargetOptions.

2017-05-03 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev accepted this revision. v.g.vassilev added a comment. This revision is now accepted and ready to land. Sorry, ignore my previous comment. LGTM! https://reviews.llvm.org/D31867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D31867: Fix documentation for TargetOptions.

2017-05-03 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. I think the second sentence is important. https://reviews.llvm.org/D31867 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar added inline comments. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:23 +AST_MATCHER(CXXStdInitializerListExpr, cxxStdInitializerListExpr) { + return true; alexfh wrote: > This should be a node matcher rather than a narrowing matcher, and it shoul

[PATCH] D32767: [clang-tidy] Fix PR32896: detect initializer lists in modernize-use-empalce

2017-05-03 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Thank you! One comment inline. Comment at: clang-tidy/modernize/UseEmplaceCheck.cpp:23 +AST_MATCHER(CXXStdInitializerListExpr, cxxStdInitializerListExpr) { + return true; This should be a node matcher rather than a narrowing matcher,

[PATCH] D32743: [clang-tidy] Add new cert-dcl21-cpp check.

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Thank you for working on this check! Comment at: clang-tidy/cert/CERTTidyModule.cpp:22 #include "FloatLoopCounter.h" +#include "PostfixOperatorCheck.h" #include "LimitedRandomnessCheck.h" Please keep the list of includes alphabe

[PATCH] D32759: Fix errored return value in CheckFunctionReturnType and add a fixit hint

2017-05-03 Thread Wei-Ren Chen via Phabricator via cfe-commits
chenwj added a comment. > Ah, sorry. "Our Tests" means the lit test SemaObjC/method-bad-param.m (line > 11). I ran the lit tests initially with a breakpoint on this line and it > never hit, though I must have set up the debugger wrong. Once I replaced it > with an assert, method-bad-param fa

[PATCH] D32332: Add support for transparent overloadable functions in clang

2017-05-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D32332#742796, @george.burgess.iv wrote: > thanks for the feedback! > > fwiw, at a high level, the main problem i'm trying to solve with this is that > you can't really make a `__overloadable_without_mangling` macro without > handing it

[PATCH] D32449: Modifying PthreadLockChecker.cpp to reduce false positives.

2017-05-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Thanks for uploading this to phabricator and sorry again that i was lost for a while. As we already discussed in the mailing lists, i agree with your point that the locked-and-possibly-destroyed state should be removed, and we also had a thought of making it explicit that

[PATCH] D32702: [analyzer] Fix 'Memory Error' bugtype capitalization.

2017-05-03 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302016: [analyzer] Fix memory error bug category capitalization. (authored by dergachev). Changed prior to commit: https://reviews.llvm.org/D32702?vs=97574&id=97609#toc Repository: rL LLVM https://r

r302016 - [analyzer] Fix memory error bug category capitalization.

2017-05-03 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Wed May 3 06:47:13 2017 New Revision: 302016 URL: http://llvm.org/viewvc/llvm-project?rev=302016&view=rev Log: [analyzer] Fix memory error bug category capitalization. It was written as "Memory Error" in most places and as "Memory error" in a few other places, however it

  1   2   >