r263638 - Add visualizers for more clang types. Create more C++-like visualizations for existing Clang types

2016-03-20 Thread Mike Spertus via cfe-commits
Author: mps Date: Wed Mar 16 09:27:50 2016 New Revision: 263638 URL: http://llvm.org/viewvc/llvm-project?rev=263638&view=rev Log: Add visualizers for more clang types. Create more C++-like visualizations for existing Clang types Created visualizer for PointerType, LValueReferenceType, RValueRefe

Re: [PATCH] D18261: Show members of DeclContexts (i.e., class members) in Visual Studio native visualizers

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus added a comment. I think the code is correct as written, see response in comment Comment at: clang.natvis:77 @@ +76,3 @@ + + + aaron.ballman wrote: > The only hard-wiring I see uses 3 bits, so is this comment still accurate? I think the code is co

Re: [PATCH] D18123: Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.

2016-03-20 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 50930. hintonda added a comment. Fixed comment per Dave's recommendation. http://reviews.llvm.org/D18123 Files: include/clang/AST/UnresolvedSet.h include/clang/Sema/Lookup.h Index: include/clang/Sema/Lookup.h ==

r263750 - Revert "Reapply [VFS] Add 'overlay-relative' field to YAML files"

2016-03-20 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Thu Mar 17 16:30:55 2016 New Revision: 263750 URL: http://llvm.org/viewvc/llvm-project?rev=263750&view=rev Log: Revert "Reapply [VFS] Add 'overlay-relative' field to YAML files" Tests failing on http://bb.pgr.jp/builders/cmake-clang-x86_64-linux/builds/46102 This reverts comm

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-20 Thread Richard Smith via cfe-commits
rsmith added a comment. Note that the diagnostic wording has already been fixed compared with the diagnostic reported in that bug report. Do we actually need more changes here? http://reviews.llvm.org/D16965 ___ cfe-commits mailing list cfe-commits

Re: [PATCH] D18262: [clang-tidy] Skip reporting of not applicable fixes.

2016-03-20 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 51046. etienneb marked 2 inline comments as done. etienneb added a comment. Added test. http://reviews.llvm.org/D18262 Files: ClangTidy.cpp misc-macro-parentheses-cmdline.cpp Index: misc-macro-parentheses-cmdline.cpp ==

r263785 - Make LookupResult movable again.

2016-03-20 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Mar 18 08:31:00 2016 New Revision: 263785 URL: http://llvm.org/viewvc/llvm-project?rev=263785&view=rev Log: Make LookupResult movable again. We lost copy semantics in r263730, because it only worked for a few very specific cases. Move semantics don't have this issue. Sadly t

Re: [PATCH] D18274: [clang-tidy] Add boost module

2016-03-20 Thread Piotr Padlewski via cfe-commits
Prazek updated this revision to Diff 51087. http://reviews.llvm.org/D18274 Files: clang-tidy/CMakeLists.txt clang-tidy/boost/BoostTidyModule.cpp clang-tidy/boost/CMakeLists.txt clang-tidy/plugin/CMakeLists.txt clang-tidy/tool/CMakeLists.txt clang-tidy/tool/ClangTidyMain.cpp docs/cla

Re: [PATCH] D18280: [tsan] Allow -fsanitize=thread for iOS-style simulator targets

2016-03-20 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Cool, great to see this coming. I'll let Kuba sign this off. Comment at: test/Driver/fsanitize.c:220 @@ -219,1 +219,3 @@ +// RUN: %clang -target x86_64-apple-darwin10 -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-DARW

Re: [PATCH] D17950: Implement is_always_lock_free

2016-03-20 Thread James Y Knight via cfe-commits
jyknight added inline comments. Comment at: lib/Frontend/InitPreprocessor.cpp:305 @@ +304,3 @@ +if (TypeWidth == TypeAlign && (TypeWidth & (TypeWidth - 1)) == 0 && +TypeWidth <= InlineWidth) + return Always; jfb wrote: > bcraig wrote: > > On some

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-03-20 Thread Xiuli PAN via cfe-commits
pxli168 added inline comments. Comment at: test/CodeGenOpenCL/spir_version.cl:15 @@ +14,2 @@ +// CL20: !opencl.ocl.version = !{[[SPIR:![0-9]+]]} +// CL20: [[SPIR]] = !{i32 2, i32 0} Anastasia wrote: > Forgotten to check OpenCL version here? The metadate will be me

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-03-20 Thread Xiuli PAN via cfe-commits
pxli168 updated this revision to Diff 51126. http://reviews.llvm.org/D17596 Files: lib/CodeGen/TargetInfo.cpp test/CodeGenOpenCL/spir_version.cl Index: test/CodeGenOpenCL/spir_version.cl === --- /dev/null +++ test/CodeGenOpenCL/

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-03-20 Thread Xiuli PAN via cfe-commits
pxli168 marked 2 inline comments as done. pxli168 added a comment. http://reviews.llvm.org/D17596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r263895 - P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ.

2016-03-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Mar 20 05:33:40 2016 New Revision: 263895 URL: http://llvm.org/viewvc/llvm-project?rev=263895&view=rev Log: P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ. Modified: cfe/trunk/include/clang/AST/StmtCXX.h cfe/trunk/include

r263896 - Mark C++ features implemented in Clang 3.8 as done now that 3.8 has released.

2016-03-20 Thread Richard Smith via cfe-commits
Author: rsmith Date: Sun Mar 20 05:37:12 2016 New Revision: 263896 URL: http://llvm.org/viewvc/llvm-project?rev=263896&view=rev Log: Mark C++ features implemented in Clang 3.8 as done now that 3.8 has released. Modified: cfe/trunk/www/cxx_status.html Modified: cfe/trunk/www/cxx_status.html U

Re: [PATCH] D18300: [clang-tidy] ProTypeMemberInitCheck - check that field decls do not have in-class initializer

2016-03-20 Thread JVApen via cfe-commits
JVApen accepted this revision. JVApen added a comment. This revision is now accepted and ready to land. I'm not sure if I'm the right person to do reviews, as I'm mostly a user of the tool and have not yet done any developments or bug fixes to it. However, from what I know from coding, this looks

Re: r263709 - clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak.

2016-03-20 Thread Jean-philippe Dufraigne via cfe-commits
Hi Daniel, I'm not sure I understand the logic behind modifying 'AlwaysBreak' to be 'AlwaysBreakExceptForSingleArgument'. AlwaysBreak is always going to lead to "wasted space". Some consider consistently break to not be a waste but actually contribute to readability, it seems that was what 'Alway

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

2016-03-20 Thread Duncan P. N. Exon Smith via cfe-commits
r263746. > On 2016-Mar-17, at 13:36, Duncan P. N. Exon Smith via cfe-commits > wrote: > >> >> On 2016-Mar-16, at 15:41, Eric Fiselier wrote: >> >> EricWF accepted this revision. >> EricWF added a comment. >> This revision is now accepted and ready to land. >> >> LGTM after change in inline

Re: r263718 - Use a simpler set of mock headers for the vfs+modules crash recovery tests.

2016-03-20 Thread Bruno Cardoso Lopes via cfe-commits
Nice! Thanks Benjamin On Thu, Mar 17, 2016 at 9:19 AM, Benjamin Kramer via cfe-commits wrote: > Author: d0k > Date: Thu Mar 17 11:19:51 2016 > New Revision: 263718 > > URL: http://llvm.org/viewvc/llvm-project?rev=263718&view=rev > Log: > Use a simpler set of mock headers for the vfs+modules crash

Re: r263893 - Reapply [2] [VFS] Add 'overlay-relative' field to YAML files

2016-03-20 Thread Benjamin Kramer via cfe-commits
On Sun, Mar 20, 2016 at 3:08 AM, Bruno Cardoso Lopes via cfe-commits wrote: > Author: bruno > Date: Sat Mar 19 21:08:48 2016 > New Revision: 263893 > > URL: http://llvm.org/viewvc/llvm-project?rev=263893&view=rev > Log: > Reapply [2] [VFS] Add 'overlay-relative' field to YAML files > > This reappl

Re: [PATCH] D17746: Fix PR26741 -- __builtin_object_size is not consistently conservative with C++ inheritance

2016-03-20 Thread Joerg Sonnenberger via cfe-commits
On Fri, Mar 18, 2016 at 05:11:19PM +, Richard Smith via cfe-commits wrote: > rsmith added a comment. > > Can you explain a bit more about the problem? It seems to me that if I have: > > struct Base { > char k[1]; > }; > struct Derived : Base {}; > > ... then the 'k' subobject of a

Re: [PATCH] D17950: Implement is_always_lock_free

2016-03-20 Thread Joerg Sonnenberger via cfe-commits
On Fri, Mar 18, 2016 at 12:11:22PM -0500, Craig, Ben via cfe-commits wrote: > A lot of it is a frontend decision. What goes in the libcall feels an awful > lot like the 386 vs 486 example that I hear a lot. If I want one binary > that can run on both a 386 (very limited atomic support) and a 486

Re: [PATCH] D18271: Avoid -Wshadow warnings about constructor parameters named after fields

2016-03-20 Thread Reid Kleckner via cfe-commits
rnk added a comment. I'm not sure your example is in scope for -Wshadow, though. Any function call that takes a non-const reference to the parameter could modify it. I guess I'm thinking something like: void trim_in_place(std::string &s); struct A { std::string s; A(std::string s) :

[libcxxabi] r263699 - [libcxxabi] Disable cxa_thread_atexit_test if unavailable

2016-03-20 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Thu Mar 17 05:00:24 2016 New Revision: 263699 URL: http://llvm.org/viewvc/llvm-project?rev=263699&view=rev Log: [libcxxabi] Disable cxa_thread_atexit_test if unavailable The feature check is already in place when building the library but wasn't honored for the tests. Diffe

Re: [PATCH] D17950: Implement is_always_lock_free

2016-03-20 Thread Craig, Ben via cfe-commits
On 3/18/2016 11:54 AM, JF Bastien wrote: Some architectures support byte granularity memory protection. Accessing unsolicited bytes can cause a trap on those architectures. I think it makes sense for atomic and Atomic to get turned into the 4 byte __atomic intrinsics. Those 4

Re: r263895 - P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ.

2016-03-20 Thread Renato Golin via cfe-commits
On 20 March 2016 at 11:33, Richard Smith via cfe-commits wrote: > Author: rsmith > Date: Sun Mar 20 05:33:40 2016 > New Revision: 263895 > > URL: http://llvm.org/viewvc/llvm-project?rev=263895&view=rev > Log: > P0184R0: Allow types of 'begin' and 'end' expressions in range-based for > loops to di

[clang-tools-extra] r263900 - [clang-tidy] Update check for API change in r263895.

2016-03-20 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Sun Mar 20 09:24:49 2016 New Revision: 263900 URL: http://llvm.org/viewvc/llvm-project?rev=263900&view=rev Log: [clang-tidy] Update check for API change in r263895. for range stmts now have split begin and ends, just apply OR to the condition. Should unbreak the build. Modified

Re: [PATCH] D18163: Add visualizers for more clang types. Create more C++-like visualizations for existing Clang types

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus added a comment. Committed as revision 263638. At Chandler's suggestion, I am going to send an announcement to cfe-dev letting people know of all of the recent improvements to native visualizers http://reviews.llvm.org/D18163 ___ cfe-comm

Re: [PATCH] D18149: Add check for unneeded copies of locals

2016-03-20 Thread Matt Kulukundis via cfe-commits
fowles marked 4 inline comments as done. fowles added a comment. http://reviews.llvm.org/D18149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18238: [clang-tidy] Fix clang-tidy crashes when using -fdelayed-template-parsing.

2016-03-20 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. Comment at: cppcoreguidelines/ProTypeMemberInitCheck.cpp:183 @@ +182,3 @@ + // Skip delayed template instantiation declarations. + const auto *Body = Ctor->getBody(); + if (!Body) Please do not use auto here sinc

r263730 - Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.

2016-03-20 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Thu Mar 17 13:05:07 2016 New Revision: 263730 URL: http://llvm.org/viewvc/llvm-project?rev=263730&view=rev Log: Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed. Fix implicit copy ctor and copy assignment operator warnings when -Wdeprec

Re: [PATCH] D18300: [clang-tidy] ProTypeMemberInitCheck - check that field decls do not have in-class initializer

2016-03-20 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added a reviewer: aaron.ballman. Comment at: test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp:94 @@ +93,3 @@ + bool Bool{false}; + // CHECK-FIXES: bool Bool{false}; +}; Why is this checking

Re: [PATCH] D18297: Visualizer for clang::FunctionProtoType

2016-03-20 Thread Aaron Ballman via cfe-commits
On Sat, Mar 19, 2016 at 8:29 PM, Mike Spertus wrote: > mspertus added a comment. > > Based on Aaron's agreement to conducting post-commit reviews, I've committed > this as revision 263890. Please let me know if I should not have done so. > (This change is a lot smaller and simpler than I feared

[PATCH] D18303: Visual Studio Visualizers for clang::FunctionDecl

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus created this revision. mspertus added reviewers: aaron.ballman, zturner. mspertus added a subscriber: cfe-commits. Displays a FunctionDecl in the Visual Studio Locals Window something like: void g(int, double d, struct A && arr) http://reviews.llvm.org/D18303 Files: clang.natvis I

Re: [PATCH] D17986: [ASTMatchers] New matcher hasReturnValue added

2016-03-20 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware updated this revision to Diff 50932. baloghadamsoftware added a comment. Previous patch generation failed. http://reviews.llvm.org/D17986 Files: include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Registry.cpp unittests/ASTMatchers/ASTMatchersTest.cpp Index

Re: [PATCH] D17951: Implement is_always_lock_free

2016-03-20 Thread Ben Craig via cfe-commits
bcraig added a comment. Visual Studio has a flag, /Zc:wchar_t-, that turns wchar_t into a short. This flag is for people that need to maintain ABI compatibility with ancient Visual Studios (MSVC6? MSVC5?). It is definitely non-conformant, and many things support it poorly. I still have night

Re: [PATCH] D16965: Fix for Bug 14644 - clang confuses scope operator for global namespace giving extra qualification on member

2016-03-20 Thread Ryan Yee via cfe-commits
ryee88 added a comment. In http://reviews.llvm.org/D16965#377864, @dblaikie wrote: > Not sure I fully understand the issue with the existing diagnostic/change in > wording. > > '::' is a nested name specifier, even if it's a degenerate case, I think - so > the old wording doesn't seem wrong, as

Re: [PATCH] D9888: [OPENMP] Driver support for OpenMP offloading

2016-03-20 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Richard, Thanks for your review. I partitioned some of the stuff I am proposing here in smaller patches: http://reviews.llvm.org/D18170 http://reviews.llvm.org/D18171 http://reviews.llvm.org/D18172 These patches already try to incorporate the feedback I got in http

Re: [PATCH] D18303: Visual Studio Visualizers for clang::FunctionDecl

2016-03-20 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. If we can find a way to do DisplayString loops, then such a cleanup would be welcome here as well. However, that can always be a follow-up patch if someone discovers a good way t

r263908 - Fixed -Wdocumentation warning

2016-03-20 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Sun Mar 20 11:25:23 2016 New Revision: 263908 URL: http://llvm.org/viewvc/llvm-project?rev=263908&view=rev Log: Fixed -Wdocumentation warning Modified: cfe/trunk/include/clang/Frontend/FrontendAction.h Modified: cfe/trunk/include/clang/Frontend/FrontendAction.h URL: ht

Re: [PATCH] D18300: [clang-tidy] ProTypeMemberInitCheck - check that field decls do not have in-class initializer

2016-03-20 Thread Felix Berger via cfe-commits
flx added inline comments. Comment at: test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp:94 @@ +93,3 @@ + bool Bool{false}; + // CHECK-FIXES: bool Bool{false}; +}; aaron.ballman wrote: > Why is this checking a fix? I thought that point was that this sho

r263909 - AST: Fix some bogus indentation. NFC

2016-03-20 Thread Justin Bogner via cfe-commits
Author: bogner Date: Sun Mar 20 11:58:03 2016 New Revision: 263909 URL: http://llvm.org/viewvc/llvm-project?rev=263909&view=rev Log: AST: Fix some bogus indentation. NFC Noticed by Liu Xin. Thanks! Modified: cfe/trunk/lib/AST/ASTImporter.cpp Modified: cfe/trunk/lib/AST/ASTImporter.cpp URL:

r263912 - [VFS] Fix test to use more restrict set of headers

2016-03-20 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Sun Mar 20 13:08:32 2016 New Revision: 263912 URL: http://llvm.org/viewvc/llvm-project?rev=263912&view=rev Log: [VFS] Fix test to use more restrict set of headers Modified: cfe/trunk/test/Modules/crash-vfs-relative-overlay.m Modified: cfe/trunk/test/Modules/crash-vfs-rela

Re: r263893 - Reapply [2] [VFS] Add 'overlay-relative' field to YAML files

2016-03-20 Thread Bruno Cardoso Lopes via cfe-commits
>> // RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH= TMPDIR=%t TEMP=%t TMP=%t \ >> -// RUN: %clang -fsyntax-only %s -I %S/Inputs/crash-recovery -isysroot >> %/t/i/\ >> +// RUN: %clang -fsyntax-only %s -I %S/Inputs/System -isysroot %/t/i/\ > > Is this an intentional revert? Test fails for me

[PATCH] D18304: [DarwinDriver] Increase the number of valid digits for ld version string

2016-03-20 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added reviewers: bob.wilson, dexonsmith. bruno added a subscriber: cfe-commits. Previously only 3 digits were valid. Increase it to 5. http://reviews.llvm.org/D18304 Files: include/clang/Driver/Driver.h lib/Driver/Driver.cpp lib/Driver/Tools.cpp test/Dr

r263913 - [tsan] Allow -fsanitize=thread for iOS-style simulator targets

2016-03-20 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Sun Mar 20 13:24:33 2016 New Revision: 263913 URL: http://llvm.org/viewvc/llvm-project?rev=263913&view=rev Log: [tsan] Allow -fsanitize=thread for iOS-style simulator targets Update the clang driver to allow -fsanitize=thread when targeting x86_64 iOS and tvOS simulators.

Re: [PATCH] D18280: [tsan] Allow -fsanitize=thread for iOS-style simulator targets

2016-03-20 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL263913: [tsan] Allow -fsanitize=thread for iOS-style simulator targets (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D18280?vs=51076&id=51132#toc Repository: rL LLVM http

Re: [PATCH] D18297: Visualizer for clang::FunctionProtoType

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus accepted this revision. mspertus added a reviewer: mspertus. mspertus added a comment. This revision is now accepted and ready to land. Accepting revision based on Aaron's LGTM email to reviews.llvm.org. http://reviews.llvm.org/D18297 ___ c

Re: [PATCH] D18297: Visualizer for clang::FunctionProtoType

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus closed this revision. mspertus added a comment. Closing committed revision. Further discussion as needed on mailing list http://reviews.llvm.org/D18297 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: [PATCH] D18299: Better visualization of clang::BuiltinType in VisualStudio

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus accepted this revision. mspertus added a reviewer: mspertus. mspertus added a comment. This revision is now accepted and ready to land. Per Aaron, I want to close the committed diff, but I seem to need to accept it first. Further discussion as needed on mailing list http://reviews.llvm

Re: [PATCH] D18299: Better visualization of clang::BuiltinType in VisualStudio

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus closed this revision. mspertus added a comment. Closing committed revision http://reviews.llvm.org/D18299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r263915 - Visual Studio Visualizers for clang::FunctionDecl

2016-03-20 Thread Mike Spertus via cfe-commits
Author: mps Date: Sun Mar 20 15:15:23 2016 New Revision: 263915 URL: http://llvm.org/viewvc/llvm-project?rev=263915&view=rev Log: Visual Studio Visualizers for clang::FunctionDecl Readably displays a FunctionDecl in the Visual Studio Locals Window something like: void g(int, double d, struct A

Re: [PATCH] D18303: Visual Studio Visualizers for clang::FunctionDecl

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus added a comment. Committed as revision 263915. http://reviews.llvm.org/D18303 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18303: Visual Studio Visualizers for clang::FunctionDecl

2016-03-20 Thread Mike Spertus via cfe-commits
mspertus closed this revision. mspertus added a comment. Closing accepted revision http://reviews.llvm.org/D18303 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r263895 - P0184R0: Allow types of 'begin' and 'end' expressions in range-based for loops to differ.

2016-03-20 Thread Richard Smith via cfe-commits
On Sun, Mar 20, 2016 at 7:05 AM, Renato Golin wrote: > On 20 March 2016 at 11:33, Richard Smith via cfe-commits > wrote: >> Author: rsmith >> Date: Sun Mar 20 05:33:40 2016 >> New Revision: 263895 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=263895&view=rev >> Log: >> P0184R0: Allow types o

Re: [PATCH] D17746: Fix PR26741 -- __builtin_object_size is not consistently conservative with C++ inheritance

2016-03-20 Thread Richard Smith via cfe-commits
On Sun, Mar 20, 2016 at 6:25 AM, Joerg Sonnenberger via cfe-commits wrote: > On Fri, Mar 18, 2016 at 05:11:19PM +, Richard Smith via cfe-commits wrote: >> rsmith added a comment. >> >> Can you explain a bit more about the problem? It seems to me that if I have: >> >> struct Base { >> cha

r263920 - clang-cl: Add a comment about /Oy- (see r245913).

2016-03-20 Thread Nico Weber via cfe-commits
Author: nico Date: Sun Mar 20 21:48:05 2016 New Revision: 263920 URL: http://llvm.org/viewvc/llvm-project?rev=263920&view=rev Log: clang-cl: Add a comment about /Oy- (see r245913). Modified: cfe/trunk/include/clang/Driver/CLCompatOptions.td Modified: cfe/trunk/include/clang/Driver/CLCompatOp

Re: [PATCH] D16749: [OpenMP] Map clause codegeneration.

2016-03-20 Thread Alexey Bataev via cfe-commits
Samuel, this is true for device part of codegen. But what about host? If this code must be executed on host, will it be handled correctly? Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 18.03.2016 23:03, Samuel Antao пишет: > sfantao added a comment. > > Hi Alexe

Re: [PATCH] D18276: [OpenMP] Allow reduction on pointer dereference

2016-03-20 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:913-929 @@ -912,9 +912,19 @@ }); - } else if (auto *ASE = dyn_cast(IRef)) { -auto *Base = ASE->getBase()->IgnoreParenImpCasts(); -while (auto *TempASE = dyn_cast(Base)) -

Re: [PATCH] D18286: [OPENMP] private and firstprivate clauses of teams code generation for nvptx

2016-03-20 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp:53-57 @@ -52,2 +52,7 @@ auto &&CodeGen = [&D](CodeGenFunction &CGF) { +CodeGenFunction::OMPPrivateScope PrivateScope(CGF); +(void)CGF.EmitOMPFirstprivateClause(D, PrivateScope); +CGF.Emi

Re: [PATCH] D17955: [OpenCL] Fix pipe builtin bugs

2016-03-20 Thread Xiuli PAN via cfe-commits
pxli168 updated this revision to Diff 51140. pxli168 added a comment. Refine other check using the changed diag. Change test as well. http://reviews.llvm.org/D17955 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaChecking.cpp test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl I