Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: include/clang/Tooling/Refactoring.h:91 @@ +90,3 @@ + Rewriter &Rewrite, + const format::FormatStyle &Style); + Do you have a use case where we'd want to

Re: [PATCH] D17142: SystemZ: Check required features when handling builtins

2016-03-29 Thread Jonas Paulsson via cfe-commits
jonpa retitled this revision from "SystemZ: Check that argument -fzvector is only given for -z13" to "SystemZ: Check required features when handling builtins". jonpa updated the summary for this revision. jonpa updated this revision to Diff 51910. jonpa added a comment. This patch has been rewor

Re: [PATCH] D17412: PR19957: [OpenCL] incorrectly accepts implicit address space conversion with ternary operator

2016-03-29 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. LG, apart from small comments mentioned here. Comment at: lib/AST/ASTContext.cpp:7613 @@ +7612,3 @@ +if (getLangOpts().OpenCL) { + if (LHS.getUnqualifiedType() != RHS.getUnqualifiedType() || + LQuals.getCVRQualifiers() != RQuals.getCV

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-03-29 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. Aside from the copy-pasta, looks good. Comment at: clang-tidy/misc/AssignOperatorCheck.cpp:74 @@ +73,3 @@ + } else { +std::string Name = ; + ---

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

2016-03-29 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. LGTM! http://reviews.llvm.org/D17955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
ioeric marked an inline comment as done. Comment at: include/clang/Tooling/Refactoring.h:91 @@ +90,3 @@ + Rewriter &Rewrite, + const format::FormatStyle &Style); + djasper wrote: > Do you have a u

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: include/clang/Tooling/Refactoring.h:91 @@ +90,3 @@ + Rewriter &Rewrite, + const format::FormatStyle &Style); + ioeric wrote: > djasper wrote: > > Do you

Re: [PATCH] D18396: Clang-tidy:modernize-use-override. Fix for __declspec attributes and const=0 without spacse

2016-03-29 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/modernize-use-override-ms.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s modernize-use-override %t + I *think* this run line may require -fms-extensions in order to compile under non-MSVC-built vers

Re: [PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.

2016-03-29 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 51927. etienneb added a comment. fix invalid comment. http://reviews.llvm.org/D18475 Files: clang-tidy/readability/RedundantStringCStrCheck.cpp test/clang-tidy/readability-redundant-string-cstr.cpp Index: test/clang-tidy/readability-redundant-string-c

Re: [PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.

2016-03-29 Thread Etienne Bergeron via cfe-commits
etienneb marked an inline comment as done. etienneb added a comment. thanks, aaron.ballman@. Comment at: clang-tidy/readability/RedundantStringCStrCheck.cpp:129 @@ +128,3 @@ + // Detect: 'dst += str.c_str()' -> 'dst += str' + // Detect: 's == str.c_str()' -> 's == str' +

Re: [PATCH] D18408: readability check for const params in declarations

2016-03-29 Thread Matt Kulukundis via cfe-commits
fowles added a comment. ping? http://reviews.llvm.org/D18408 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r264737 - [AMDGPU] Switch linker to amdphdrs + update test

2016-03-29 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Tue Mar 29 10:54:09 2016 New Revision: 264737 URL: http://llvm.org/viewvc/llvm-project?rev=264737&view=rev Log: [AMDGPU] Switch linker to amdphdrs + update test Differential Revision: http://reviews.llvm.org/D18253 Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk

Re: [PATCH] D18253: [AMDGPU] Switch linker to amdphdrs + update test

2016-03-29 Thread Konstantin Zhuravlyov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264737: [AMDGPU] Switch linker to amdphdrs + update test (authored by kzhuravl). Changed prior to commit: http://reviews.llvm.org/D18253?vs=50975&id=51930#toc Repository: rL LLVM http://reviews.llvm

Re: [PATCH] D12192: Add clang support for AAP

2016-03-29 Thread Edward Jones via cfe-commits
edward-jones updated this revision to Diff 51932. edward-jones added a comment. This rolls AAP forward to top-of-tree. http://reviews.llvm.org/D12192 Files: lib/Basic/Targets.cpp lib/Driver/Driver.cpp lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp lib/Driver/

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 51933. ioeric added a comment. - Change the Style parameter of formatAndApplyReplacements from FormatStyle to be a Style name string. http://reviews.llvm.org/D17852 Files: include/clang/Basic/SourceManager.h include/clang/Format/Format.h include/clang

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: include/clang/Tooling/Refactoring.h:93 @@ +92,3 @@ +/// +/// See also "clang/Tooling/Core/Replacements.h". +bool formatAndApplyAllReplacements(const

Re: [PATCH] D17142: SystemZ: Check required features when handling builtins

2016-03-29 Thread Ulrich Weigand via cfe-commits
uweigand added a comment. > This patch has been reworked, and aims to specify which features systemz > builtins require. The way of doing this has been taken from the X86 Target > (with a '#define TARGET_BUILTIN') > > If a builtin is used by the programmer for a target that does not include a

r264742 - [CUDA] Add missing #undef __DEVICE__ to CUDA shim header.

2016-03-29 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Mar 29 11:24:23 2016 New Revision: 264742 URL: http://llvm.org/viewvc/llvm-project?rev=264742&view=rev Log: [CUDA] Add missing #undef __DEVICE__ to CUDA shim header. Modified: cfe/trunk/lib/Headers/__clang_cuda_cmath.h Modified: cfe/trunk/lib/Headers/__clang_cuda_cma

r264741 - [CUDA] Fix order of overloading preferences in comment.

2016-03-29 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Mar 29 11:24:22 2016 New Revision: 264741 URL: http://llvm.org/viewvc/llvm-project?rev=264741&view=rev Log: [CUDA] Fix order of overloading preferences in comment. Modified: cfe/trunk/lib/Sema/SemaCUDA.cpp Modified: cfe/trunk/lib/Sema/SemaCUDA.cpp URL: http://llvm.o

r264739 - [CUDA] Remove three obsolete CUDA cc1 flags.

2016-03-29 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Mar 29 11:24:16 2016 New Revision: 264739 URL: http://llvm.org/viewvc/llvm-project?rev=264739&view=rev Log: [CUDA] Remove three obsolete CUDA cc1 flags. Summary: * -fcuda-target-overloads Previously unconditionally set to true by the driver. Necessary for correct fu

r264740 - [CUDA] Make CUDA description strings in langopts into noun phrases. NFC

2016-03-29 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Tue Mar 29 11:24:20 2016 New Revision: 264740 URL: http://llvm.org/viewvc/llvm-project?rev=264740&view=rev Log: [CUDA] Make CUDA description strings in langopts into noun phrases. NFC rsmith quoth in D18380: > This should be a noun phrase -- this string appears in contexts

Re: [PATCH] D18416: [CUDA] Remove three obsolete CUDA cc1 flags.

2016-03-29 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264739: [CUDA] Remove three obsolete CUDA cc1 flags. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D18416?vs=51478&id=51935#toc Repository: rL LLVM http://reviews.llvm.org/D

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 51936. ioeric added a comment. - Minor changes. http://reviews.llvm.org/D17852 Files: include/clang/Basic/SourceManager.h include/clang/Format/Format.h include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactoring.h lib/Format/Format.c

Re: [PATCH] D17852: Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264745: Added formatAndApplyAllReplacements that works on multiple files in libTooling. (authored by ioeric). Changed prior to commit: http://reviews.llvm.org/D17852?vs=51936&id=51939#toc Repository:

Re: [PATCH] D18408: readability check for const params in declarations

2016-03-29 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with one nit. Thank you for the new check! Do you need me to submit the patch for you? Comment at: clang-tidy/readability/AvoidConstParamsInDecls.cpp:24 @@ +23,3 @

r264745 - Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Mar 29 11:31:53 2016 New Revision: 264745 URL: http://llvm.org/viewvc/llvm-project?rev=264745&view=rev Log: Added formatAndApplyAllReplacements that works on multiple files in libTooling. Summary: formatAndApplyAllReplacements takes a set of Replacements, applies them on

Re: [PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.

2016-03-29 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good to me. Adding Samuel, since he has done a lot of similar stuff by now and might have good ideas on improving this and making this more general. http://reviews.llvm.org/D18475 __

Re: [PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL 1.2/2.0 header files.

2016-03-29 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Regarding half types since there is inconsistency in both headers (commented in CL1.2), should we just enable the extension cl_khr_fp16 in the header and then have the overloads with half there with all the other types? They shouldn't be visible to custom code unless

Re: [PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.

2016-03-29 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. In http://reviews.llvm.org/D18475#385789, @alexfh wrote: > Looks good to me. Adding Samuel, since he has done a lot of similar stuff by > now and might have good ideas on improving this and making this more general. There are two things I've done before that might apply

r264752 - [Sema] Handle UTF-8 invalid format string specifiers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 12:35:02 2016 New Revision: 264752 URL: http://llvm.org/viewvc/llvm-project?rev=264752&view=rev Log: [Sema] Handle UTF-8 invalid format string specifiers Improve invalid format string specifier handling by printing out invalid specifiers characters with \x, \u and \

Re: [PATCH] D18296: [Sema] Handle UTF-8 invalid format string specifiers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
bruno closed this revision. bruno added a comment. Thanks Richard. Applied your last comments and committed in r264752 http://reviews.llvm.org/D18296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

Re: [PATCH] D16544: [libcxx] Framework to allow testing of static libc++abi

2016-03-29 Thread Ben Craig via cfe-commits
bcraig added a comment. ping http://reviews.llvm.org/D16544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16545: [libcxxabi] Enable testing for static libc++abi

2016-03-29 Thread Ben Craig via cfe-commits
bcraig added a comment. ping http://reviews.llvm.org/D16545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17410: [libcxxabi] Respect LIBCXXABI_LIBDIR_SUFFIX before an install

2016-03-29 Thread Ben Craig via cfe-commits
bcraig added a comment. ping http://reviews.llvm.org/D17410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-03-29 Thread Ben Craig via cfe-commits
bcraig added a comment. ping @danalbert, @mclow.lists http://reviews.llvm.org/D17416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18408: readability check for const params in declarations

2016-03-29 Thread Matt Kulukundis via cfe-commits
fowles updated this revision to Diff 51954. fowles marked 2 inline comments as done. fowles added a comment. - review comments - rename variables and remove MSVC compat issues http://reviews.llvm.org/D18408 Files: clang-tidy/readability/AvoidConstParamsInDecls.cpp clang-tidy/readability/Avo

r264757 - [Order Files] Fix order file usage

2016-03-29 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Tue Mar 29 12:51:08 2016 New Revision: 264757 URL: http://llvm.org/viewvc/llvm-project?rev=264757&view=rev Log: [Order Files] Fix order file usage The CMake EXISTS operator needs to have the variable expanded. Not expanding this was causing the if statement to always be f

[clang-tools-extra] r264759 - [clang-tidy] Add check to detect dangling references in value handlers.

2016-03-29 Thread Samuel Benzaquen via cfe-commits
Author: sbenza Date: Tue Mar 29 13:02:26 2016 New Revision: 264759 URL: http://llvm.org/viewvc/llvm-project?rev=264759&view=rev Log: [clang-tidy] Add check to detect dangling references in value handlers. Summary: Add check misc-dangling-handle to detect dangling references in value handlers like

Re: r264745 - Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Teresa Johnson via cfe-commits
Hi Eric, I'm getting a build error: In file included from /usr/local/google/home/tejohnson/llvm/llvm_16/tools/clang/lib/Tooling/Refactoring.cpp:21: /usr/local/google/home/tejohnson/llvm/llvm_16/tools/clang/include/clang/Tooling/Refactoring.h:32:1: error: class 'FormatStyle' was previously declare

Re: [PATCH] D17811: [clang-tidy] Add check to detect dangling references in value handlers.

2016-03-29 Thread Samuel Benzaquen via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264759: [clang-tidy] Add check to detect dangling references in value handlers. (authored by sbenza). Changed prior to commit: http://reviews.llvm.org/D17811?vs=51684&id=51956#toc Repository: rL LLVM

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

2016-03-29 Thread Sean Callanan via cfe-commits
spyffe requested changes to this revision. spyffe added a comment. This revision now requires changes to proceed. Overall this is a great improvement and I look forward to taking advantage of this patch in LLDB! I had one specific nit about `NullPtrTy`, and one more general comment about your i

r264760 - Removed class FormatStyle, which is a struct, forward declaration from Refactoring.h to avoid compilation error.

2016-03-29 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Mar 29 13:17:11 2016 New Revision: 264760 URL: http://llvm.org/viewvc/llvm-project?rev=264760&view=rev Log: Removed class FormatStyle, which is a struct, forward declaration from Refactoring.h to avoid compilation error. Modified: cfe/trunk/include/clang/Tooling/Refa

Re: r264745 - Added formatAndApplyAllReplacements that works on multiple files in libTooling.

2016-03-29 Thread Eric Liu via cfe-commits
Hi Teresa, Thanks a lot! I have patched the error. Thanks, Eric On Tue, Mar 29, 2016 at 8:08 PM Teresa Johnson wrote: > Hi Eric, > > I'm getting a build error: > > In file included from > /usr/local/google/home/tejohnson/llvm/llvm_16/tools/clang/lib/Tooling/Refactoring.cpp:21: > /usr/local/goo

r264765 - [Sema] Attempt to fix tests for utf-8 invalid format string specifiers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 13:38:44 2016 New Revision: 264765 URL: http://llvm.org/viewvc/llvm-project?rev=264765&view=rev Log: [Sema] Attempt to fix tests for utf-8 invalid format string specifiers Followup from r264752. Attempt to appease buildbots: http://lab.llvm.org:8011/builders/clang

[PATCH] D18565: Implement an "I'm dtrace, please retain all debug types" option.

2016-03-29 Thread Adrian Prantl via cfe-commits
aprantl created this revision. aprantl added reviewers: dblaikie, dexonsmith. aprantl added a subscriber: cfe-commits. aprantl set the repository for this revision to rL LLVM. As noted in the review thread for http://reviews.llvm.org/D18477 on llvm-commits, DWARF consumers such as dtrace's ctfcon

[PATCH] D18567: Block: Fix a crash when we have type attributes or qualifiers with omitted return type.

2016-03-29 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: rjmccall, Anastasia. manmanren added a subscriber: cfe-commits. A simple example will crash at IRGen: void (^simpleBlock)() = ^ _Nonnull { return; }; The Return type for the block will be AttributedType of a DependentTy and it will no

Re: [PATCH] D18475: [clang-tidy] Add more detection rules for redundant c_str calls.

2016-03-29 Thread Etienne Bergeron via cfe-commits
etienneb marked an inline comment as done. etienneb added a comment. I'll to try to make a better way to describe redundant cases (as proposed by sbenza@) with an array. I like the array based approach, it's lean and clean. I'll try to make a prototype of the generic overloaded functions matcher

Re: [PATCH] D18380: [CUDA] Make unattributed constexpr functions (usually) implicitly host+device.

2016-03-29 Thread Artem Belevich via cfe-commits
tra added a comment. LGTM. http://reviews.llvm.org/D18380 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18565: Implement an "I'm dtrace, please retain all debug types" option.

2016-03-29 Thread Joerg Sonnenberger via cfe-commits
On Tue, Mar 29, 2016 at 06:47:24PM +, Adrian Prantl via cfe-commits wrote: > This code in this patch listens to the driver option -gfull, and lowers it to > the new cc1 option -debug-retain-types (1). > When -debug-retain-types is present, CGDebugInfo will retain every(2) type it > creates.

Re: [PATCH] D18565: Implement an "I'm dtrace, please retain all debug types" option.

2016-03-29 Thread Adrian Prantl via cfe-commits
> On Mar 29, 2016, at 12:00 PM, Joerg Sonnenberger > wrote: > > On Tue, Mar 29, 2016 at 06:47:24PM +, Adrian Prantl via cfe-commits wrote: >> This code in this patch listens to the driver option -gfull, and lowers it >> to the new cc1 option -debug-retain-types (1). >> When -debug-retain-t

Re: [PATCH] D18457: [clang-tidy] Add a new checker to detect missing comma in initializer list.

2016-03-29 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/SuspiciousMissingCommaCheck.cpp:42 @@ +41,3 @@ + const auto *ConcatenatedLiteral = Result.Nodes.getNodeAs("str"); + if (InitializerList && ConcatenatedLiteral) { +// Skip small arrays as they often generate false-posi

r264774 - clang-cl: Silently ignore /d2FastFail flag.

2016-03-29 Thread Nico Weber via cfe-commits
Author: nico Date: Tue Mar 29 14:41:02 2016 New Revision: 264774 URL: http://llvm.org/viewvc/llvm-project?rev=264774&view=rev Log: clang-cl: Silently ignore /d2FastFail flag. It's some debugging flag for cl.exe related to how it writes crash dumps. Modified: cfe/trunk/include/clang/Driver/CL

Re: [PATCH] D17861: [OpenCL] Accept __attribute__((nosvm))

2016-03-29 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 51967. yaxunl marked 2 inline comments as done. yaxunl added a comment. Revised as Aaron suggested. http://reviews.llvm.org/D17861 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/

Re: [PATCH] D17552: Pass -backend-option to LLVM when there is no target machine

2016-03-29 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. Ping. Tom, are you OK with this fix? http://reviews.llvm.org/D17552 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18457: [clang-tidy] Add a new checker to detect missing comma in initializer list.

2016-03-29 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 51969. etienneb marked 5 inline comments as done. etienneb added a comment. address alexfh@ comments. http://reviews.llvm.org/D18457 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SuspiciousMissingCommaCheck.

Re: [PATCH] D18457: [clang-tidy] Add a new checker to detect missing comma in initializer list.

2016-03-29 Thread Etienne Bergeron via cfe-commits
etienneb added inline comments. Comment at: clang-tidy/misc/SuspiciousMissingCommaCheck.cpp:42 @@ +41,3 @@ + const auto *ConcatenatedLiteral = Result.Nodes.getNodeAs("str"); + if (InitializerList && ConcatenatedLiteral) { +// Skip small arrays as they often generate false-po

Re: [PATCH] D18567: Block: Fix a crash when we have type attributes or qualifiers with omitted return type.

2016-03-29 Thread John McCall via cfe-commits
rjmccall added inline comments. Comment at: lib/Sema/SemaType.cpp:1569 @@ +1568,3 @@ +// Mark them as invalid. +attr.setInvalid(); + } It's not generally a good idea to set things as invalid if you're just emitting a warning. It might be dif

Re: [PATCH] D17861: [OpenCL] Accept __attribute__((nosvm))

2016-03-29 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. LGTM, thank you! http://reviews.llvm.org/D17861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

r264783 - [PGO] Move the instrumentation point closer to the value site.

2016-03-29 Thread Betul Buyukkurt via cfe-commits
Author: betulb Date: Tue Mar 29 15:44:09 2016 New Revision: 264783 URL: http://llvm.org/viewvc/llvm-project?rev=264783&view=rev Log: [PGO] Move the instrumentation point closer to the value site. For terminator instructions, the value profiling instrumentation happens in a basic block other than

r264784 - [Sema] Attempt [2] to fix tests for utf-8 invalid format string specifiers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 15:47:09 2016 New Revision: 264784 URL: http://llvm.org/viewvc/llvm-project?rev=264784&view=rev Log: [Sema] Attempt [2] to fix tests for utf-8 invalid format string specifiers Some buildbots still complain. Followup from r264752 and 264765. Modified: cfe/trunk/

[PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-03-29 Thread don hinton via cfe-commits
hintonda created this revision. hintonda added a reviewer: alexfh. hintonda added a subscriber: cfe-commits. This checker allows users to replace deprecated throw() specifications with noexcept. It also allows users to replace an arbitrary list of macros with either noexcept or a user defined mac

Re: [PATCH] D18567: Block: Fix a crash when we have type attributes or qualifiers with omitted return type.

2016-03-29 Thread Manman Ren via cfe-commits
manmanren added a comment. Cheers, Manman Comment at: lib/Sema/SemaType.cpp:1569 @@ +1568,3 @@ +// Mark them as invalid. +attr.setInvalid(); + } rjmccall wrote: > It's not generally a good idea to set things as invalid if you're just > emit

r264787 - Enable the SafeStack sanitizer on CloudABI by default.

2016-03-29 Thread Ed Schouten via cfe-commits
Author: ed Date: Tue Mar 29 16:13:53 2016 New Revision: 264787 URL: http://llvm.org/viewvc/llvm-project?rev=264787&view=rev Log: Enable the SafeStack sanitizer on CloudABI by default. Over the last month we've been testing SafeStack extensively. As far as we know, it works perfectly fine. That wh

r264788 - [Sema] Attempt [3] to fix tests for utf-8 invalid format string specifiers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 16:30:58 2016 New Revision: 264788 URL: http://llvm.org/viewvc/llvm-project?rev=264788&view=rev Log: [Sema] Attempt [3] to fix tests for utf-8 invalid format string specifiers Make the tests darwin only. The bots complaining already output UTF-8 invalid specifiers,

Re: [PATCH] D18539: [CUDA] Add math forward declares.

2016-03-29 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 51988. jlebar added a comment. Fix typo in wrapper header. (How did this ever work??) http://reviews.llvm.org/D18539 Files: lib/Headers/CMakeLists.txt lib/Headers/__clang_cuda_math_forward_declares.h lib/Headers/__clang_cuda_runtime_wrapper.h Index:

Re: r264783 - [PGO] Move the instrumentation point closer to the value site.

2016-03-29 Thread Artem Belevich via cfe-commits
Hi, FYI, cxx-indirect-call.cpp test fails on platforms with different alignment. It may help to either use specific target or change your patterns to accommodate other targets. --Artem TEST 'Clang :: Profile/cxx-indirect-call.cpp' FAILED Script: -- /usr/

r264795 - [PGO] Test case fix for r264783

2016-03-29 Thread Betul Buyukkurt via cfe-commits
Author: betulb Date: Tue Mar 29 17:17:52 2016 New Revision: 264795 URL: http://llvm.org/viewvc/llvm-project?rev=264795&view=rev Log: [PGO] Test case fix for r264783 Modified: cfe/trunk/test/Profile/cxx-indirect-call.cpp Modified: cfe/trunk/test/Profile/cxx-indirect-call.cpp URL: http://ll

RE: r264783 - [PGO] Move the instrumentation point closer to the value site.

2016-03-29 Thread Betul Buyukkurt via cfe-commits
Hi Artem, I’ve uploaded a patch to remove the alignment. Thanks, -Betul From: Artem Belevich [mailto:t...@google.com] Sent: Tuesday, March 29, 2016 3:15 PM To: Betul Buyukkurt Cc: cfe-commits Subject: Re: r264783 - [PGO] Move the instrumentation point closer to the value site.

Re: r264783 - [PGO] Move the instrumentation point closer to the value site.

2016-03-29 Thread Artem Belevich via cfe-commits
Thanks for the quick fix. The test works on x86_64-unknown-linux-gnu now. --Artem On Tue, Mar 29, 2016 at 3:24 PM, Betul Buyukkurt wrote: > Hi Artem, > > > > I’ve uploaded a patch to remove the alignment. > > > > Thanks, > > -Betul > > > > *From:* Artem Belevich [mailto:t...@google.com] > *Sent

Re: [PATCH] D18557: [Clang][ARM] __va_list declaration is not saved in ASTContext causing compilation error or crash

2016-03-29 Thread Richard Smith via cfe-commits
rsmith added a comment. Thanks, the change itself LGTM, but please add your testcase, perhaps to test/PCH/__va_list_tag.c Repository: rL LLVM http://reviews.llvm.org/D18557 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D18582: [Clang-tidy] Update release notes with list of checks added since 3.8

2016-03-29 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added reviewers: alexfh, LegalizeAdulthood, aaron.ballman, sbenza, etienne.bergeron. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. Descriptions of checks were extracted from docu

Re: [PATCH] D18533: Fixing PR26558: the adc builtins do not require the adx target attribute

2016-03-29 Thread Justin Bogner via cfe-commits
Yunzhong Gao writes: > ygao created this revision. > ygao added subscribers: craig.topper, bogner, cfe-commits. > > Hi, > The addcarry and subborrow variants of the builtins do not require the > adx target attribute. Only the addcarryx variants require them. > This patch attempts to remove the tar

r264801 - Fixing PR26558: remove the adx target attribute requirement from adc builtins.

2016-03-29 Thread Yunzhong Gao via cfe-commits
Author: ygao Date: Tue Mar 29 17:59:20 2016 New Revision: 264801 URL: http://llvm.org/viewvc/llvm-project?rev=264801&view=rev Log: Fixing PR26558: remove the adx target attribute requirement from adc builtins. The addcarry and subborrow variants of the builtins do not require the adx target attri

Re: [PATCH] D18533: Fixing PR26558: the adc builtins do not require the adx target attribute

2016-03-29 Thread Yunzhong Gao via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264801: Fixing PR26558: remove the adx target attribute requirement from adc builtins. (authored by ygao). Changed prior to commit: http://reviews.llvm.org/D18533?vs=51857&id=52000#toc Repository: rL

Re: [PATCH] D18533: Fixing PR26558: the adc builtins do not require the adx target attribute

2016-03-29 Thread Yunzhong Gao via cfe-commits
ygao added a comment. > Yep, only the ADCX instruction needs adx. This LGTM, but please just > remove "-target-feature +adx" from the run line instead of adding a > second run line. Thanks, Justin. Committed r264801 and updated the test as you suggested. Repository: rL LLVM http://revie

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-03-29 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Please add information about this check in docs/ReleaseNotes.rst. http://reviews.llvm.org/D18575 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

Re: [PATCH] D18210: [analyzer] Fix an assertion fail in hash generation.

2016-03-29 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. zaks.anna added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D18210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

Re: [PATCH] D17253: Cleanup of analyzer scripts as suggested by pychecker and pep8

2016-03-29 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Once tested, this can land. http://reviews.llvm.org/D17253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18073: Add memory allocating functions

2016-03-29 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > > Also, we should not duplicate all of our tests. Instead, we should add a > > single test per added API checking that it is modeling the operation we > > think it > > > should model. > > > So should I dump the _dbg versions from the tests? No but do not

Re: [PATCH] D18540: [Sema] Note when we've actually encountered a failure in ExprConstant, and take that into account when looking up objects.

2016-03-29 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/Expr.h:541-546 @@ -540,1 +540,8 @@ +/// \brief Whether the evaluation was unable to reduce a construct to a +/// value. +/// +/// For example, in foo(bar, baz, qux), if evaluating bar fails, we may +

r264808 - [CrashReproducer] Cleanup and move functionality around in ModuleDependencyCollector. NFC

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 18:47:40 2016 New Revision: 264808 URL: http://llvm.org/viewvc/llvm-project?rev=264808&view=rev Log: [CrashReproducer] Cleanup and move functionality around in ModuleDependencyCollector. NFC - Make ModuleDependencyCollector use the DependencyCollector interface - M

[PATCH] D18585: [CrashReproducer] Add a module map callback for added headers

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added a reviewer: benlangmuir. bruno added a subscriber: cfe-commits. The current ModuleDependencyCollector has a AST listener to collect header files present in loaded modules, but this isn't enough to collect all headers needed in the crash reproducer. On

Re: r264071 - StaticAnalyzer: Avoid an unintentional copy

2016-03-29 Thread Justin Bogner via cfe-commits
David Blaikie writes: > On Tue, Mar 22, 2016 at 10:50 AM, Justin Bogner via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: bogner >> Date: Tue Mar 22 12:50:05 2016 >> New Revision: 264071 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=264071&view=rev >> Log: >> StaticAnalyzer:

Re: [PATCH] D18539: [CUDA] Add math forward declares.

2016-03-29 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. One nit. LGTM otherwise. Comment at: lib/Headers/__clang_cuda_math_forward_declares.h:1 @@ +1,2 @@ +/*=== __clang_cuda_cmath.h - Device-side CUDA cmath support === +

r264813 - [Driver] Quote clang full version in dwarf producer when invoking cc1as

2016-03-29 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Tue Mar 29 19:25:57 2016 New Revision: 264813 URL: http://llvm.org/viewvc/llvm-project?rev=264813&view=rev Log: [Driver] Quote clang full version in dwarf producer when invoking cc1as Convenience to allow easy copy-n-paste from clang -v output when reproducing cc1as comandline

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

2016-03-29 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Thinking more about this patch I think it is a right solution to override void `llvm::Value *emitParallelOrTeamsOutlinedFunction()` and `void emitTeamsCall()` for `CGOpenMPRuntimeNVPTX` class: llvm::Value *CGOpenMPRuntimeNVPTX::emitParallelOrTeamsOutlinedFunction() {

Re: [PATCH] D18470: [OPENMP] Remove unnecessary code generation of firstprivate clause for target directive in nvptx

2016-03-29 Thread Alexey Bataev via cfe-commits
ABataev added a comment. Update patch to the latest version. It is not allowed to override CodeGen sequemces in runtime. They must be universal and all must be defined in CGStmtOpenMP.cpp only Repository: rL LLVM http://reviews.llvm.org/D18470

Re: [PATCH] D18474: [OPENMP] Enable correct generation of runtime call when target directive is separated from teams directive by multiple curly brackets

2016-03-29 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4257 @@ +4256,3 @@ +hasEnclosingOpenMPDirective(const Stmt *Body) { + const SK *S = nullptr; + // keep iterating until we find an LF or not an SK or a nullptr You don't need `SK`, because

Re: [PATCH] D18110: [OpenMP] Fix SEMA bug in the capture of global variables in template functions.

2016-03-29 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaOpenMP.cpp:816-822 @@ -801,6 +815,9 @@ + + // A DSA refers to this captured region if the parent contexts match. + auto *ParentContext = RSI->TheCapturedDecl->getParent(); for (auto I = Stack.rbegin(), EE = Stack.rend();

r264825 - [OpenCL] Fix pipe builtin bugs

2016-03-29 Thread Xiuli Pan via cfe-commits
Author: pxl Date: Tue Mar 29 23:46:32 2016 New Revision: 264825 URL: http://llvm.org/viewvc/llvm-project?rev=264825&view=rev Log: [OpenCL] Fix pipe builtin bugs Summary: 1. Diag should be output if types are not the same. 2. Should compare using canonical type. 3. Refine the diag to be more clear

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

2016-03-29 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264825: [OpenCL] Fix pipe builtin bugs (authored by pxl). Changed prior to commit: http://reviews.llvm.org/D17955?vs=51629&id=52021#toc Repository: rL LLVM http://reviews.llvm.org/D17955 Files: cf

Re: [PATCH] D18565: Implement an "I'm dtrace, please retain all debug types" option.

2016-03-29 Thread David Blaikie via cfe-commits
On Tue, Mar 29, 2016 at 12:03 PM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Mar 29, 2016, at 12:00 PM, Joerg Sonnenberger < > jo...@britannica.bec.de> wrote: > > > > On Tue, Mar 29, 2016 at 06:47:24PM +, Adrian Prantl via cfe-commits > wrote: > >> This code in

r264841 - For MS ABI, emit dllexport friend functions defined inline in class

2016-03-29 Thread Stephan Bergmann via cfe-commits
Author: sberg Date: Wed Mar 30 01:27:31 2016 New Revision: 264841 URL: http://llvm.org/viewvc/llvm-project?rev=264841&view=rev Log: For MS ABI, emit dllexport friend functions defined inline in class ...as that is apparently what MSVC does. This is an updated version of r263738, which had to be

Re: [PATCH] D18430: For MS ABI, emit dllexport friend functions defined inline in class

2016-03-29 Thread Stephan Bergmann via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264841: For MS ABI, emit dllexport friend functions defined inline in class (authored by sberg). Changed prior to commit: http://reviews.llvm.org/D18430?vs=51517&id=52024#toc Repository: rL LLVM htt

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-03-29 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware updated this revision to Diff 52023. baloghadamsoftware added a comment. Faulty line deleted. http://reviews.llvm.org/D18265 Files: clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp clang-tidy/misc/AssignOperatorCheck.cpp clang-tidy/misc/AssignOperatorCheck.h

Re: [PATCH] D18265: [clang-tidy] New: checker misc-assign-operator-return

2016-03-29 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware marked an inline comment as done. Comment at: clang-tidy/misc/AssignOperatorCheck.cpp:75 @@ +74,3 @@ +static const char *const Messages[][2] = { +{"ReturnType", "operator=() should return '%0&'"}, +{"ArgumentType", "operator=() should take '%

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

2016-03-29 Thread Aleksei Sidorin via cfe-commits
a.sidorin added a comment. Is this patch OK to submit? http://reviews.llvm.org/D14286 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D7982: Add readability-duplicate-include check to clang-tidy

2016-03-29 Thread Richard via cfe-commits
LegalizeAdulthood added inline comments. Comment at: clang-tidy/readability/DuplicateIncludeCheck.cpp:62 @@ +61,3 @@ +StringRef SearchPath, StringRef RelativePath, const Module *Imported) { + if (!SM_.isInMainFile(HashLoc)) { +return; LegalizeAdulthood wr

Re: [PATCH] D17378: Add additional Hi/Lo registers to Clang MipsTargetInfoBase

2016-03-29 Thread Daniel Sanders via cfe-commits
dsanders accepted this revision. dsanders added a comment. This revision is now accepted and ready to land. LGTM Sorry for missing this when it was first posted. I've also been away for roughly half of the two weeks since Petar added me to the review. http://reviews.llvm.org/D17378

[PATCH] D18542: [OPENMP] Parsing and Sema support for 'omp declare target' directive

2016-03-29 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added reviewers: ABataev, aaron.ballman. DmitryPolukhin added subscribers: cfe-commits, fraggamuffin. Add parsing, sema analysis for 'declare target' construct for OpenMP 4.0 (4.5 support will be added in separate patch). The declare target dir

  1   2   >