[libcxx] r261419 - Remove all usages of "const" node pointer typedefs in the assoc containers.

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Sat Feb 20 01:12:17 2016 New Revision: 261419 URL: http://llvm.org/viewvc/llvm-project?rev=261419=rev Log: Remove all usages of "const" node pointer typedefs in the assoc containers. The "const" pointer typedefs such as "__node_const_pointer" and "__node_base_const_pointer"

[libcxx] r261416 - Cleanup node-type handling in the associative containers.

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Feb 19 23:28:30 2016 New Revision: 261416 URL: http://llvm.org/viewvc/llvm-project?rev=261416=rev Log: Cleanup node-type handling in the associative containers. This patch is very similar to r260431. This patch is the first in a series of patches that's meant to better

LLVM buildmaster restarted in few minutes.

2016-02-19 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted in few minutes. Thank you for understanding. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17170: [OPENMP] Codegen for distribute directive

2016-02-19 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:2126 @@ +2125,3 @@ + OpenMPSchedType ScheduleNum = getRuntimeSchedule(ScheduleKind, Chunk != nullptr, +Ordered); + auto *UpdatedLocation =

r261412 - [OPENMP 4.5] Initial support for data members in 'lastprivate' clause.

2016-02-19 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Feb 19 22:09:36 2016 New Revision: 261412 URL: http://llvm.org/viewvc/llvm-project?rev=261412=rev Log: [OPENMP 4.5] Initial support for data members in 'lastprivate' clause. OpenMP 4.5 allows to privatize non-static data members of current class in non-static member

Re: [PATCH] D17148: [OPENMP] Basic teams directive implementation

2016-02-19 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rL LLVM http://reviews.llvm.org/D17148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17019: [OpenMP] Code generation for teams - kernel launching

2016-02-19 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:3799-3806 @@ -3780,4 +3798,10 @@ OffloadEntriesInfoManager.registerTargetRegionEntryInfo( DeviceID, FileID, ParentName, Line, OutlinedFn, OutlinedFnID); } +/// \brief Emit the num_teams clause

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
On Fri, Feb 19, 2016 at 10:02 PM, Nico Weber wrote: > On Fri, Feb 19, 2016 at 8:01 PM, Richard Smith > wrote: > >> On Fri, Feb 19, 2016 at 4:41 PM, Nico Weber wrote: >> > On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-19 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/ClangTidy.cpp:115 @@ +114,3 @@ +// +// Specify the build directory of the source file as current working +// directroy to find source file correctly. Maybe `Change the directory to the one used

Re: r259975 - Fix a crash when emitting dbeug info for forward-declared scoped enums.

2016-02-19 Thread Eric Christopher via cfe-commits
Hi Adrian, I'm taking a look at this and can't duplicate using the testcase you gave without your patch(es) applied. It's also causing asserts in other code as you can have the forward decl left around and the CU isn't a valid context. Can you take a look/revert until you've got a different

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
On Fri, Feb 19, 2016 at 8:01 PM, Richard Smith wrote: > On Fri, Feb 19, 2016 at 4:41 PM, Nico Weber wrote: > > On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits > > wrote: > >> > >> On Thu, Feb 18, 2016 at

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In http://reviews.llvm.org/D17434#356765, @dblaikie wrote: > should probably have test coverage +1 Repository: rL LLVM http://reviews.llvm.org/D17434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17457: [VFS] Add 'overlay-relative' field to YAML files

2016-02-19 Thread Ben Langmuir via cfe-commits
benlangmuir accepted this revision. benlangmuir added a comment. This revision is now accepted and ready to land. LGTM! http://reviews.llvm.org/D17457 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D16360: unordered_map: Avoid unnecessary mallocs when no insert occurs

2016-02-19 Thread Duncan P. N. Exon Smith via cfe-commits
dexonsmith added a comment. Honestly I didn't think much about the testing style. I used r239666 as a reference and modified it for std::unordered_map. I'll redo the tests when I have a moment, based on the newer examples. Probably next week some time? http://reviews.llvm.org/D16360

Re: [PATCH] D16360: unordered_map: Avoid unnecessary mallocs when no insert occurs

2016-02-19 Thread Duncan P. N. Exon Smith via cfe-commits
Honestly I didn't think much about the testing style. I used r239666 as a reference and modified it for std::unordered_map. I'll redo the tests when I have a moment, based on the newer examples. Probably next week some time? > On 2016-Feb-19, at 17:53, Eric Fiselier wrote: > >

Re: [PATCH] D17104: [VFS] Drop path traversal assertion

2016-02-19 Thread Ben Langmuir via cfe-commits
benlangmuir accepted this revision. benlangmuir added a comment. This revision is now accepted and ready to land. LGTM if you fix 256->PATH_MAX. Comment at: lib/Frontend/ModuleDependencyCollector.cpp:66 @@ +65,3 @@ +#ifdef HAVE_REALPATH + char CanonicalPath[256]; +

[PATCH] D17469: [libcxx] Add deployment knobs to tests (for Apple platforms)

2016-02-19 Thread Duncan P. N. Exon Smith via cfe-commits
dexonsmith created this revision. dexonsmith added reviewers: EricWF, mclow.lists. dexonsmith added a subscriber: cfe-commits. The tests for libc++ specify `-target` on the command-line to the compiler, but this is problematic for a few reasons. Firstly, the `-target` option isn't supported on

Re: [PATCH] D16360: unordered_map: Avoid unnecessary mallocs when no insert occurs

2016-02-19 Thread Eric Fiselier via cfe-commits
EricWF added a comment. @dexonsmith Actually is it OK if I contribute the tests for this patch? Your's are in no way bad, but I want to test this in a similar manner to `unord.map.modifiers/insert_allocator_requirments.pass.cpp` and it's not fair to ask you to do that. However if your willing

Re: [PATCH] D16360: unordered_map: Avoid unnecessary mallocs when no insert occurs

2016-02-19 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Overall this patch is *almost* there. My only objection is that this optimization neglects "unordered_set". Optimally we would also catch "unordered_set.emplace(42)" Comment at: include/__hash_table:103 @@ -102,1 +102,3 @@ +template ::type>

[libcxx] r261391 - Work around GCC bug in .fail.cpp tests

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Feb 19 19:11:55 2016 New Revision: 261391 URL: http://llvm.org/viewvc/llvm-project?rev=261391=rev Log: Work around GCC bug in .fail.cpp tests Modified: libcxx/trunk/test/libcxx/test/format.py Modified: libcxx/trunk/test/libcxx/test/format.py URL:

Re: [PATCH] D17407: [Sema] PR25755 Fix crash when initializing out-of-order struct references

2016-02-19 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 48561. hintonda added a comment. - Fix additional tests http://reviews.llvm.org/D17407 Files: lib/Sema/SemaInit.cpp test/CXX/dcl.decl/dcl.init/dcl.init.list/p3-0x.cpp test/SemaCXX/cxx0x-initializer-aggregates.cpp

r261388 - Remove a duplicate declaration specifier from _ReadBarrier

2016-02-19 Thread David Majnemer via cfe-commits
Author: majnemer Date: Fri Feb 19 18:57:00 2016 New Revision: 261388 URL: http://llvm.org/viewvc/llvm-project?rev=261388=rev Log: Remove a duplicate declaration specifier from _ReadBarrier This fixes PR26675. Modified: cfe/trunk/lib/Headers/Intrin.h Modified: cfe/trunk/lib/Headers/Intrin.h

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
On Fri, Feb 19, 2016 at 4:29 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits > wrote: > > Author: nico > > Date: Thu Feb 18 19:52:46 2016 > > New Revision: 261297 > > > > URL:

Re: [libcxx] r261381 - Add stdbool.h wrapper for libc++

2016-02-19 Thread Richard Smith via cfe-commits
On Fri, Feb 19, 2016 at 4:16 PM, Eric Fiselier via cfe-commits wrote: > Author: ericwf > Date: Fri Feb 19 18:16:41 2016 > New Revision: 261381 > > URL: http://llvm.org/viewvc/llvm-project?rev=261381=rev > Log: > Add stdbool.h wrapper for libc++ > > Summary: > According

[libcxx] r261383 - Fix PR26622 - Make CheckLibcxxAtomic.cmake use the libc++ headers.

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Feb 19 18:24:43 2016 New Revision: 261383 URL: http://llvm.org/viewvc/llvm-project?rev=261383=rev Log: Fix PR26622 - Make CheckLibcxxAtomic.cmake use the libc++ headers. Modified: libcxx/trunk/cmake/Modules/CheckLibcxxAtomic.cmake Modified:

[libcxx] r261382 - Make __wrap_iter work with GCC again

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Feb 19 18:19:45 2016 New Revision: 261382 URL: http://llvm.org/viewvc/llvm-project?rev=261382=rev Log: Make __wrap_iter work with GCC again Summary: This bug was originally fixed in http://reviews.llvm.org/D7201. However it was broken again by the fix to

Re: [PATCH] D16345: Make __wrap_iter work with GCC again

2016-02-19 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a reviewer: EricWF. EricWF added a comment. This revision is now accepted and ready to land. @mclow.lists said this was OK to commit if he couldn't think of a better idea. It's unfortunate to use `` to forward declare containers but `` already

[libcxx] r261381 - Add stdbool.h wrapper for libc++

2016-02-19 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Feb 19 18:16:41 2016 New Revision: 261381 URL: http://llvm.org/viewvc/llvm-project?rev=261381=rev Log: Add stdbool.h wrapper for libc++ Summary: According to the C++ standard isn't allowed to define `true` `false` or `bool`. However these macros are sometimes defined

Re: [PATCH] D16346: Add stdbool.h wrapper for libc++

2016-02-19 Thread Eric Fiselier via cfe-commits
EricWF accepted this revision. EricWF added a reviewer: EricWF. EricWF added a comment. This revision is now accepted and ready to land. Got approval from @mclow.lists offline. http://reviews.llvm.org/D16346 ___ cfe-commits mailing list

Re: [PATCH] D16821: Add whole-program vtable optimization feature to Clang.

2016-02-19 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/CodeGen/CGVTables.cpp:904-919 @@ -900,5 +903,18 @@ + +bool CodeGenModule::IsBitSetBlacklistedRecord(const CXXRecordDecl *RD) { + std::string TypeName = RD->getQualifiedNameAsString(); + auto isInBlacklist = [&](const

Re: [PATCH] D17456: [libcxx] Reorganize _LIBCPP_LOCALE__L_EXTENSIONS

2016-02-19 Thread Joerg Sonnenberger via cfe-commits
On Fri, Feb 19, 2016 at 06:14:18PM +, Ben Craig via cfe-commits wrote: > Instead of checking _LIBCPP_LOCALE__L_EXTENSIONS all over, instead > check it once, and define the various *_l symbols once. If you want to rename using macros, please use the argument form. I find that to provide better

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Richard Smith via cfe-commits
On Thu, Feb 18, 2016 at 5:52 PM, Nico Weber via cfe-commits wrote: > Author: nico > Date: Thu Feb 18 19:52:46 2016 > New Revision: 261297 > > URL: http://llvm.org/viewvc/llvm-project?rev=261297=rev > Log: > Implement the likely resolution of core issue 253. > > C++11

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Aaron Ballman via cfe-commits
On Fri, Feb 19, 2016 at 4:14 PM, Richard Smith via cfe-commits wrote: > rsmith added a subscriber: rsmith. > rsmith added a comment. > > Do they treat this as a keyword or as a predefined macro? (Does `#ifdef` > think `static_assert` is defined?) It seems to be

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith added a comment. Do they treat this as a keyword or as a predefined macro? (Does `#ifdef` think `static_assert` is defined?) http://reviews.llvm.org/D17444 ___ cfe-commits mailing list

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-19 Thread Richard Smith via cfe-commits
On Fri, Feb 19, 2016 at 5:35 AM, Michael Matz wrote: > Hi, > > On Thu, 18 Feb 2016, Richard Smith wrote: > >> >> An empty type is a type where it and all of its subobjects >> >> (recursively) are of class, structure, union, or array type. No >> >> memory slot nor register should be

[PATCH] D17462: Fix a codegen bug for variadic functions with pass_object_size params

2016-02-19 Thread George Burgess IV via cfe-commits
george.burgess.iv created this revision. george.burgess.iv added a reviewer: rsmith. george.burgess.iv added subscribers: srhines, cfe-commits. Currently, we get assertion failures/segfaults for variadic functions with `pass_object_size` params, e.g.: ``` void foo(void *const

Re: [PATCH] D17438: [OpenCL] Add Sema checks for atomics and implicit declaration

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaDecl.cpp:11504 @@ +11503,3 @@ + else if (getLangOpts().OpenCL) +// OpenCL function need to be called with prototype, so we don't allow +// implicit function declarations in OpenCL Could you add

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-19 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Comment at: test/SemaOpenCL/storageclass-cl20.cl:23 @@ -19,1 +22,3 @@ + extern global int G5; + extern int G6; // expected-error{{program scope variable must

Re: [PATCH] D17438: [OpenCL] Add Sema checks for atomics and implicit declaration

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaDecl.cpp:3900 @@ -3899,1 +3899,3 @@ if (!DeclaresAnything) { +// OpenCL C doesn't support bit-field, so declaration with no declarator +// has no use. I am still not convinced about this change?

Re: [PATCH] D17447: Add check for CERT ENV33-C

2016-02-19 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/cert/CommandProcessorCheck.cpp:36 @@ +35,3 @@ + // is not a security risk by itself. + if (Fn->getName() == "system" && E->getNumArgs() == 1 && + E->getArg(0)->isNullPointerConstant(*Result.Context, You

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/storageclass-cl20.cl:23 @@ -19,1 +22,3 @@ + extern global int G5; + extern int G6; // expected-error{{program scope variable must reside in global or constant address space}} } Apparently not,

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-19 Thread H.J. Lu via cfe-commits
On Fri, Feb 19, 2016 at 11:03 AM, Matthijs van Duin wrote: > On 19 February 2016 at 14:35, Michael Matz wrote: >> struct S { >> S() {something();} >> }; >> >> would be an empty type, and that's not what we want. > > Why not? The default constructor is

Re: [PATCH] D17437: [OpenCL] Add Sema checks for image and pipe

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaDecl.cpp:5714 @@ +5713,3 @@ + // OpenCL v2.0 s6.9.b + // An image type can only be used as a type of a function argument. + if (getLangOpts().OpenCL && R->isImageType()) { Move to the line above,

Re: [PATCH] D17360: [cfi] Fix handling of sanitize trap/recover flags in the cross-DSO CFI mode.

2016-02-19 Thread Peter Collingbourne via cfe-commits
pcc added a comment. What I meant was that it looks like a hack that this is being handled in the driver. The frontend shouldn't care what the value of a trap flag is if a sanitizer is disabled. Why are we even emitting checks for disabled sanitizers in the target DSO anyway? Can we fail open

Re: [PATCH] D17436: [OpenCL] Add Sema checks for OpenCL 2.0 block

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7719 @@ +7718,3 @@ +def err_opencl_block_proto_variadic : Error< + "invalid block prototype, variadic arguments are not allowed in opencl">; +def err_opencl_invalid_block_array : Error<

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Reid Kleckner via cfe-commits
An alternative fix would be to interpose MSVC's assert.h in clang's builtin headers with #include_next, and do the define there. I don't like interposing headers if we can avoid it though. ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D17170: [OPENMP] Codegen for distribute directive

2016-02-19 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 48526. carlo.bertolli added a comment. Update to trunk and implement suggestions from latest review: do not make public methods used in static function calling kmpc_for_static_init, but call those functions in the caller that can access them.

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread David Blaikie via cfe-commits
On Fri, Feb 19, 2016 at 11:10 AM, Eugene Zelenko wrote: > On Fri, Feb 19, 2016 at 11:06 AM, David Blaikie > wrote: > > > > Could we take this conversation back to the list? (better to discuss > things > > with everyone) > > > > On Fri, Feb 19, 2016

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Aaron Ballman via cfe-commits
On Fri, Feb 19, 2016 at 2:02 PM, Reid Kleckner via cfe-commits wrote: > rnk added a comment. > > I think we should do this because MSVC doesn't make _Static_assert available > to C code. Except, they do, somewhat. _Static_assert(0, "this should diagnose"); does *not*

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-19 Thread Matthijs van Duin via cfe-commits
On 19 February 2016 at 14:35, Michael Matz wrote: > struct S { > S() {something();} > }; > > would be an empty type, and that's not what we want. Why not? The default constructor is never invoked as part of passing such an object around. Its copy constructor is a nop and requires

Re: [PATCH] D16040: [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:5046 @@ +5045,3 @@ + if (D->hasAttr()) { +S.Diag(Attr.getLoc(), diag::err_opencl_multiple_access_qualifiers) +<< D->getSourceRange(); Yes, I think attribute would make more sense.

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Reid Kleckner via cfe-commits
rnk added a comment. I think we should do this because MSVC doesn't make _Static_assert available to C code. David says that, according to the C standard, assert.h is supposed to `#define static_assert _Static_assert`. MSVC doesn't do that because they provide static_assert directly as a

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia updated this revision to Diff 48518. Anastasia added a comment. Corrected to new error msg in tests too! http://reviews.llvm.org/D17345 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/Parser/opencl-storage-class.cl

Re: [PATCH] D17345: [OpenCL] Improve diagnostics of address spaces for variables inside function

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia updated this revision to Diff 48516. Anastasia added a comment. Fixed error msg and test! http://reviews.llvm.org/D17345 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp test/Parser/opencl-storage-class.cl test/SemaOpenCL/storageclass-cl20.cl

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-19 Thread Matthijs van Duin via cfe-commits
On 19 February 2016 at 16:27, H.J. Lu wrote: > We want to include static member functions and exclude non-static member > functions. > There's no reason to disallow non-static member functions in general; they have no impact on being trivially copyable or not, only the

[PATCH] D17457: [VFS] Add 'overlay-relative' field to YAML files

2016-02-19 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added reviewers: benlangmuir, bogner. bruno added subscribers: cfe-commits, dexonsmith. The VFS overlay mapping between virtual paths and real paths is done through the 'external-contents' entries in YAML files, which contains hardcoded paths to the real files.

Re: [PATCH] D17456: [libcxx] Reorganize _LIBCPP_LOCALE__L_EXTENSIONS

2016-02-19 Thread Jonathan Roelofs via cfe-commits
jroelofs added a comment. In http://reviews.llvm.org/D17456#357245, @bcraig wrote: > In http://reviews.llvm.org/D17456#357232, @jroelofs wrote: > > > > The private redirector symbol names are all prefixed with _CXX_* so that > > > they won't conflict with user symbols, > > > > > > This is more

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread David Blaikie via cfe-commits
On Fri, Feb 19, 2016 at 10:38 AM, Eugene Zelenko wrote: > On Fri, Feb 19, 2016 at 10:32 AM, David Blaikie > wrote: > > > > > > On Fri, Feb 19, 2016 at 10:25 AM, Eugene Zelenko via cfe-commits > > wrote: > >> > >>

Re: [PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia updated this revision to Diff 48514. Anastasia added a comment. Removed varargs due to printf special handling. To be added as a separate review! http://reviews.llvm.org/D16928 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDecl.cpp lib/Sema/SemaType.cpp

Re: [PATCH] D17456: [libcxx] Reorganize _LIBCPP_LOCALE__L_EXTENSIONS

2016-02-19 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D17456#357232, @jroelofs wrote: > > The private redirector symbol names are all prefixed with _CXX_* so that > > they won't conflict with user symbols, > > > This is more @mclow.lists/@ericwf's domain, but I think __libcxx_ prefixes > would be

r261350 - [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-19 Thread Anastasia Stulova via cfe-commits
Author: stulova Date: Fri Feb 19 12:30:11 2016 New Revision: 261350 URL: http://llvm.org/viewvc/llvm-project?rev=261350=rev Log: [OpenCL] Generate metadata for opencl_unroll_hint attribute Add support for opencl_unroll_hint attribute from OpenCL v2.0 s6.11.5. Reusing most of metadata generation

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-19 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261350: [OpenCL] Generate metadata for opencl_unroll_hint attribute (authored by stulova). Changed prior to commit: http://reviews.llvm.org/D16686?vs=47716=48513#toc Repository: rL LLVM

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread David Blaikie via cfe-commits
On Fri, Feb 19, 2016 at 10:25 AM, Eugene Zelenko via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Eugene.Zelenko added a comment. > > Also I agree that testing is good idea, it doesn't make sense in current > incarnation which test only vector and set and only with containers' code >

Re: [PATCH] D17148: [OPENMP] Basic teams directive implementation

2016-02-19 Thread Carlo Bertolli via cfe-commits
carlo.bertolli updated this revision to Diff 48511. carlo.bertolli added a comment. Update against trunk. Repository: rL LLVM http://reviews.llvm.org/D17148 Files: lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h lib/CodeGen/CGStmtOpenMP.cpp

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. Also I agree that testing is good idea, it doesn't make sense in current incarnation which test only vector and set and only with containers' code snippets instead of real implementations. I wrote about last issue in cfe-dev, but idea was rejected. Other issue

Re: [PATCH] D17456: [libcxx] Reorganize _LIBCPP_LOCALE__L_EXTENSIONS

2016-02-19 Thread Jonathan Roelofs via cfe-commits
jroelofs added a subscriber: EricWF. jroelofs added a comment. > The private redirector symbol names are all prefixed with _CXX_* so that they > won't conflict with user symbols, This is more @mclow.lists/@ericwf's domain, but I think __libcxx_ prefixes would be safer (so that there's no

Re: [PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0

2016-02-19 Thread Mats Petersson via cfe-commits
MatsPetersson added a comment. @Anastasia: Yes, I agree, printf should be done as a separate patch. http://reviews.llvm.org/D16928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17456: [libcxx] Reorganize _LIBCPP_LOCALE__L_EXTENSIONS

2016-02-19 Thread Ben Craig via cfe-commits
bcraig created this revision. bcraig added reviewers: scshunt, howard.hinnant, jroelofs, mclow.lists. bcraig added a subscriber: cfe-commits. Herald added a subscriber: jfb. This is one part of many of a locale refactor. See http://reviews.llvm.org/D17146 for an idea of where this is going.

Re: [PATCH] D16928: [OpenCL] Apply missing restrictions for Blocks in OpenCL v2.0

2016-02-19 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. @Mats, I think I would prefer not to add even more special handling (i.e. error in this case) for printf. I will look into adding it as a Builtin instead. However, I would prefer to remove it from this change and submit a separate patch as it doesn't belong to Clang

Re: [PATCH] D17446: ASTMatchers: add new statement/decl matchers

2016-02-19 Thread Aleksei Sidorin via cfe-commits
a.sidorin removed rL LLVM as the repository for this revision. a.sidorin updated this revision to Diff 48503. a.sidorin added a comment. Fix issues pointed by Aaron. http://reviews.llvm.org/D17446 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Nico Weber via cfe-commits
If you merge this, you also need to merge the small follow up "r261301 - Fix SemaTemplate/instantiate-field.cpp after r261297." On Feb 19, 2016 11:26 AM, "Hans Wennborg via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > On Fri, Feb 19, 2016 at 4:00 AM, Ismail Donmez via cfe-commits >

Re: [PATCH] D10013: Refactor: Simplify boolean conditional return statements in lib/Driver

2016-02-19 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. I do not have commit access, so someone else will need to commit this. Let me know if it needs rebasing. Patch by Richard Thomson. http://reviews.llvm.org/D10013 ___ cfe-commits mailing list

Re: [PATCH] D17452: [CMake] Add partial support for MSVC in compiler-rt builtins

2016-02-19 Thread Chris Bieneman via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Looks good to me. http://reviews.llvm.org/D17452 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D17453: [Driver] Enable --rtlib option for MSVC target

2016-02-19 Thread Roman Shirokiy via cfe-commits
roman.shirokiy created this revision. roman.shirokiy added reviewers: rnk, majnemer, beanz, pcc. roman.shirokiy added a subscriber: cfe-commits. This enables "--rtlib compiler-rt" option under MSVC environment. Related compiler-rt patch: http://reviews.llvm.org/D17452

[PATCH] D17452: [CMake] Add partial support for MSVC in compiler-rt builtins

2016-02-19 Thread Roman Shirokiy via cfe-commits
roman.shirokiy created this revision. roman.shirokiy added reviewers: rnk, majnemer, beanz, pcc. roman.shirokiy added a subscriber: cfe-commits. This enables MSVC build of complex number arithmetic compiler-rt builtins. Consider Clang which is built under native Windows environment. Compiling

[PATCH] D17451: PR26448: [Sema] Fix determined type of ternary operator acting on two xvalue class types

2016-02-19 Thread Erik Pilkington via cfe-commits
erik.pilkington created this revision. erik.pilkington added a reviewer: rsmith. erik.pilkington added a subscriber: cfe-commits. Previously, when the 2 expressions passed to a ternary operator were xvalues and one inherits from the other, the resulting expression had type 'T', not 'T&&' as

Re: r261297 - Implement the likely resolution of core issue 253.

2016-02-19 Thread Hans Wennborg via cfe-commits
On Fri, Feb 19, 2016 at 4:00 AM, Ismail Donmez via cfe-commits wrote: > On Fri, Feb 19, 2016 at 3:52 AM, Nico Weber via cfe-commits > wrote: >> Author: nico >> Date: Thu Feb 18 19:52:46 2016 >> New Revision: 261297 >> >> URL:

Re: [PATCH] D17447: Add check for CERT ENV33-C

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cert/CommandProcessorCheck.cpp:22 @@ +21,3 @@ + Finder->addMatcher( + callExpr(callee(functionDecl(anyOf(hasName("system"), hasName("popen"), + hasName("_popen")))

Re: [PATCH] D17447: Add check for CERT ENV33-C

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 48499. aaron.ballman marked an inline comment as done. http://reviews.llvm.org/D17447 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/cert/CMakeLists.txt clang-tidy/cert/CommandProcessorCheck.cpp clang-tidy/cert/CommandProcessorCheck.h

Re: [PATCH] D17447: Add check for CERT ENV33-C

2016-02-19 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/cert/CommandProcessorCheck.cpp:22 @@ +21,3 @@ + Finder->addMatcher( + callExpr(callee(functionDecl(anyOf(hasName("system"), hasName("popen"), + hasName("_popen")))

Re: [PATCH] D17434: [Clang-tidy] Make readability-container-size-empty working with STL string

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I agree with David, I'd like to see test coverage for this (with both std::string and std::wstring to be paranoid). Repository: rL LLVM http://reviews.llvm.org/D17434 ___ cfe-commits mailing list

[PATCH] D17447: Add check for CERT ENV33-C

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: alexfh, sbenza. aaron.ballman added a subscriber: cfe-commits. This patch adds a check for the CERT secure coding rule: ENV33-C. Do not call system(). It flags any call expression that calls a system command processor

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-19 Thread H.J. Lu via cfe-commits
On Fri, Feb 19, 2016 at 5:35 AM, Michael Matz wrote: > Hi, > > On Thu, 18 Feb 2016, Richard Smith wrote: > >> >> An empty type is a type where it and all of its subobjects >> >> (recursively) are of class, structure, union, or array type. No >> >> memory slot nor register should be

Re: [PATCH] D17416: [libcxx] Reorganize locale extension fallbacks

2016-02-19 Thread Craig, Ben via cfe-commits
On 2/19/2016 8:40 AM, Joerg Sonnenberger via cfe-commits wrote: On Thu, Feb 18, 2016 at 10:32:11PM +, Ben Craig via cfe-commits wrote: The fallback locale functions are also useful on their own for other lightweight platforms. Putting these fallback implementations in support/xlocale should

Re: [PATCH] D17387: Add check for CERT FLP30-C

2016-02-19 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. LG Comment at: test/clang-tidy/cert-flp30-c.c:6 @@ +5,3 @@ +void func(void) { + // CHECK-MESSAGES: :[[@LINE+1]]:37: warning: loop induction expression should not have floating-point type [cert-flp30-c] + for (float x = 0.1f; x <= 1.0f; x += 0.1f) {

Re: [PATCH] D17380: [libcxx] Split locale management out of ibm/xlocale.h. NFCI

2016-02-19 Thread Craig, Ben via cfe-commits
On 2/19/2016 8:36 AM, Joerg Sonnenberger via cfe-commits wrote: On Thu, Feb 18, 2016 at 03:39:29PM +, Ben Craig via cfe-commits wrote: Unfortunately, I have no access to an AIX machine to build with, so this change has been made blind. Any reason why this is not using "new" and "delete"? I

Re: [PATCH] D17446: ASTMatchers: add new statement/decl matchers

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Given the wide disparity of functionality, I'm wondering if there are concrete purposes for these new matchers? Comment at: include/clang/ASTMatchers/ASTMatchers.h:1599 @@ -1543,1 +1598,3 @@ +/// \brief Matches atomic builtins. +const

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-02-19 Thread Aleksei Sidorin via cfe-commits
a.sidorin added a comment. Serge Pavlov: I'll enable tests from you patch (http://reviews.llvm.org/D14224) after all node types your patch supports will be supported. If you're agree, of course. Repository: rL LLVM http://reviews.llvm.org/D14286

Re: [PATCH] D17437: [OpenCL] Add Sema checks for image and pipe

2016-02-19 Thread Yaxun Liu via cfe-commits
yaxunl added inline comments. Comment at: test/SemaOpenCL/invalid-pipes-cl2.0.cl:9 @@ -8,1 +8,3 @@ } +void test4() { + pipe int p; // expected-error {{pipe can only be used as a function parameter}} Do we have a test for diagnosing pipe type for OCL < 2.0 ?

Re: [PATCH] D14286: ASTImporter: expressions, pt.1

2016-02-19 Thread Aleksei Sidorin via cfe-commits
a.sidorin updated the summary for this revision. a.sidorin set the repository for this revision to rL LLVM. a.sidorin updated this revision to Diff 48487. a.sidorin added a comment. Herald added a subscriber: aemerson. Add AST matcher-based unit tests; add some additional nodes to pass the tests.

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Aaron Ballman via cfe-commits
On Fri, Feb 19, 2016 at 9:44 AM, Andrey Bokhanko wrote: > Aaron, you might be right... but still, I doubt MS will fix it any > time soon -- I suppose enough code already depends on this. > > Either way, it's up to Reid, as Windows maintainer, to decide whatever > we want

Re: [PATCH] D17444: PR26672: [MSVC] Clang does not recognize "static_assert" keyword in C mode

2016-02-19 Thread Andrey Bokhanko via cfe-commits
Aaron, you might be right... but still, I doubt MS will fix it any time soon -- I suppose enough code already depends on this. Either way, it's up to Reid, as Windows maintainer, to decide whatever we want this to be supported in clang or not. Yours, Andrey On Fri, Feb 19, 2016 at 4:43 PM,

Re: [PATCH] D17416: [libcxx] Reorganize locale extension fallbacks

2016-02-19 Thread Joerg Sonnenberger via cfe-commits
On Thu, Feb 18, 2016 at 10:32:11PM +, Ben Craig via cfe-commits wrote: > The fallback locale functions are also useful on their own for other > lightweight platforms. Putting these fallback implementations in > support/xlocale should enable code sharing. Shouldn't the fallback functions be

Re: [PATCH] D17380: [libcxx] Split locale management out of ibm/xlocale.h. NFCI

2016-02-19 Thread Joerg Sonnenberger via cfe-commits
On Thu, Feb 18, 2016 at 03:39:29PM +, Ben Craig via cfe-commits wrote: > Unfortunately, I have no access to an AIX machine to build with, so > this change has been made blind. Any reason why this is not using "new" and "delete"? I think I would prefer to not define uselocale, but that can be

[PATCH] D17446: ASTMatchers: add new statement/decl matchers

2016-02-19 Thread Aleksei Sidorin via cfe-commits
a.sidorin created this revision. a.sidorin added a reviewer: aaron.ballman. a.sidorin added a subscriber: cfe-commits. a.sidorin set the repository for this revision to rL LLVM. Herald added a subscriber: klimek. Added matchers: addrLabelExpr atomicExpr binaryConditionalOperator

Re: [PATCH] D17387: Add check for CERT FLP30-C

2016-02-19 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman marked an inline comment as done. aaron.ballman added a comment. Thanks! I've commit in r261324. Comment at: test/clang-tidy/cert-flp30-c.c:6 @@ +5,3 @@ +void func(void) { + // CHECK-MESSAGES: :[[@LINE+1]]:37: warning: loop

[clang-tools-extra] r261324 - Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating-point type. This check corresponds to the CERT secure coding rule: https://www.secure

2016-02-19 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Fri Feb 19 08:03:20 2016 New Revision: 261324 URL: http://llvm.org/viewvc/llvm-project?rev=261324=rev Log: Add a new check, cert-flp30-c, that diagnoses loop induction expressions of floating-point type. This check corresponds to the CERT secure coding rule:

Re: [PATCH] D17440: clang-format: [JS] do not wrap ES6 imports/exports.

2016-02-19 Thread Martin Probst via cfe-commits
mprobst added a comment. FYI this should not be submitted yet, there are still style discussions going on. http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D17439: clang-format: [JS] treat forwardDeclare as an import/export statement.

2016-02-19 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added subscribers: cfe-commits, klimek. http://reviews.llvm.org/D17439 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp

[PATCH] D17440: clang-format: [JS] do not wrap ES6 imports/exports.

2016-02-19 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added subscribers: cfe-commits, klimek. "import ... from '...';" and "export ... from '...';" should be treated the same as goog.require/provide/module/forwardDeclare calls. http://reviews.llvm.org/D17440 Files:

  1   2   >