[PATCH] D26141: Protect tests that expect an exception for an unknown std::random_device

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285677: Protect tests that expect an exception for an unknown std::random_device (authored by rogfer01). Changed prior to commit: https://reviews.llvm.org/D26141?vs=76378&id=76527#toc Repository: rL

[libcxx] r285677 - Protect tests that expect an exception for an unknown std::random_device

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
Author: rogfer01 Date: Tue Nov 1 03:11:12 2016 New Revision: 285677 URL: http://llvm.org/viewvc/llvm-project?rev=285677&view=rev Log: Protect tests that expect an exception for an unknown std::random_device Skip these tests under libcpp-no-exceptions. Differential Revision: https://reviews.llvm

r285679 - [PPC] Add vec_absd functions to altivec.h

2016-11-01 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Tue Nov 1 03:39:56 2016 New Revision: 285679 URL: http://llvm.org/viewvc/llvm-project?rev=285679&view=rev Log: [PPC] Add vec_absd functions to altivec.h This patch corresponds to review https://reviews.llvm.org/D26073. Committing on behalf of Sean Fertile. Modified: c

[PATCH] D26073: [PPC] Add vec_absd functions to altivec.h

2016-11-01 Thread Nemanja Ivanovic via cfe-commits
nemanjai added a comment. Committed revision 285679. Sean, please close this review pending no buildbot failures. https://reviews.llvm.org/D26073 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76529. malcolm.parsons added a comment. Rename modernize-use-default to modernize-use-equals-default https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/U

[PATCH] D26136: Protect exceptional path under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 updated the summary for this revision. rogfer01 updated this revision to Diff 76532. rogfer01 added a comment. Update tests following Marshall's suggestion to avoid too much code duplication. Also add assert(false) after the throwing action to ensure that the expected exception is actua

Re: r285289 - [Sema] -Wunused-variable warning for array variables should behave

2016-11-01 Thread Alex L via cfe-commits
On 31 October 2016 at 15:34, David Blaikie wrote: > > > On Thu, Oct 27, 2016 at 6:40 AM Alex Lorenz via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: arphaman >> Date: Thu Oct 27 08:30:51 2016 >> New Revision: 285289 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=285289&view

Re: r285289 - [Sema] -Wunused-variable warning for array variables should behave

2016-11-01 Thread Alex L via cfe-commits
On 1 November 2016 at 10:13, Alex L wrote: > > On 31 October 2016 at 15:34, David Blaikie wrote: > >> >> >> On Thu, Oct 27, 2016 at 6:40 AM Alex Lorenz via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> Author: arphaman >>> Date: Thu Oct 27 08:30:51 2016 >>> New Revision: 285289 >>>

r285685 - Fix parenthesized assert (nfc).

2016-11-01 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Tue Nov 1 05:30:50 2016 New Revision: 285685 URL: http://llvm.org/viewvc/llvm-project?rev=285685&view=rev Log: Fix parenthesized assert (nfc). Modified: cfe/trunk/lib/AST/Decl.cpp Modified: cfe/trunk/lib/AST/Decl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/l

[PATCH] D22334: Fix for Bug 28172 : clang crashes on invalid code (with too few arguments to __builtin_signbit) without any proper diagnostics.

2016-11-01 Thread Mayur Pandey via cfe-commits
mayurpandey added a comment. Hi David, The crash that we see can be seen with other diagnostics for builtin if we use the diagnostic format you suggested. I tried the same thing with err_builtin_annotation_first_arg. The same crash can be seen. So shall I fix this crash with this bug or file a

r285686 - [www] Fix a typo on the analyzer website

2016-11-01 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Tue Nov 1 06:12:41 2016 New Revision: 285686 URL: http://llvm.org/viewvc/llvm-project?rev=285686&view=rev Log: [www] Fix a typo on the analyzer website Modified: cfe/trunk/www/analyzer/annotations.html Modified: cfe/trunk/www/analyzer/annotations.html URL: http://llv

[PATCH] D22346: [Clang-tidy] CERT-MSC50-CPP (std:rand() )

2016-11-01 Thread Benedek Kiss via cfe-commits
falho added a comment. Thanks but I think I will try it! https://reviews.llvm.org/D22346 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26184: Protect lock tests under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 created this revision. rogfer01 added reviewers: rmaprath, mclow.lists, EricWF. rogfer01 added a subscriber: cfe-commits. Skip tests that expect an exception to be thrown. https://reviews.llvm.org/D26184 Files: test/std/thread/thread.mutex/thread.lock.algorithm/lock.pass.cpp test/s

r285688 - [x86][inline-asm][clang] accept 'v' constraint

2016-11-01 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Tue Nov 1 08:16:44 2016 New Revision: 285688 URL: http://llvm.org/viewvc/llvm-project?rev=285688&view=rev Log: [x86][inline-asm][clang] accept 'v' constraint Commit on behalf of: Coby Tayree 1.'v' constraint for (x86) non-avx arch imitates the already implemented 'x' cons

[PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

2016-11-01 Thread Daniel Marjamäki via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285689: [clang-tidy] Add check readability-redundant-declaration (authored by danielmarjamaki). Changed prior to commit: https://reviews.llvm.org/D24656?vs=74478&id=76548#toc Repository: rL LLVM htt

[clang-tools-extra] r285689 - [clang-tidy] Add check readability-redundant-declaration

2016-11-01 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Tue Nov 1 08:26:15 2016 New Revision: 285689 URL: http://llvm.org/viewvc/llvm-project?rev=285689&view=rev Log: [clang-tidy] Add check readability-redundant-declaration Finds redundant variable and function declarations. extern int X; extern int X; // <- redund

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); malcolm.parsons wrot

[PATCH] D26189: Add a note that points to the linkage specifier for the "must have C++ linkage" errors

2016-11-01 Thread Alex Lorenz via cfe-commits
arphaman created this revision. arphaman added reviewers: rsmith, rjmccall. arphaman added a subscriber: cfe-commits. arphaman set the repository for this revision to rL LLVM. This patch improves the "must have C++ linkage" error diagnostics for C++ by adding an additional note that points to the

Re: r285289 - [Sema] -Wunused-variable warning for array variables should behave

2016-11-01 Thread David Blaikie via cfe-commits
On Tue, Nov 1, 2016 at 3:13 AM Alex L wrote: > On 31 October 2016 at 15:34, David Blaikie wrote: > > > > On Thu, Oct 27, 2016 at 6:40 AM Alex Lorenz via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > Author: arphaman > Date: Thu Oct 27 08:30:51 2016 > New Revision: 285289 > > URL: http:/

[PATCH] D26184: Protect lock tests under libcpp-no-exceptions

2016-11-01 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. This looks OK to me. https://reviews.llvm.org/D26184 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

[PATCH] D26136: Protect exceptional path under libcpp-no-exceptions

2016-11-01 Thread Marshall Clow via cfe-commits
mclow.lists accepted this revision. mclow.lists added a comment. This revision is now accepted and ready to land. Thanks for making these changes; I think this looks much better than before. Feature creep: A bunch of the local variables can be marked as `const`. Comment at: te

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); aaron.ballman wrot

r285694 - [PowerPC] Implement vector shift builtins - clang portion

2016-11-01 Thread Nemanja Ivanovic via cfe-commits
Author: nemanjai Date: Tue Nov 1 09:46:20 2016 New Revision: 285694 URL: http://llvm.org/viewvc/llvm-project?rev=285694&view=rev Log: [PowerPC] Implement vector shift builtins - clang portion This patch corresponds to review https://reviews.llvm.org/D26092. Committing on behalf of Tony Jiang. M

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:29 +cxxMethodDecl( +anyOf(isCopyAssignmentOperator(), isMoveAssignmentOperator())), +cxxDestructorDecl())); malcolm.parsons wrot

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76557. malcolm.parsons added a comment. Reword diagnostic. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseDefaultCheck.cpp clang-tidy/modernize/

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76558. malcolm.parsons added a comment. Add FIXME comment. https://reviews.llvm.org/D26138 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseDefaultCheck.cpp clang-tidy/modernize/

[PATCH] D26184: Protect lock tests under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285695: Protect lock tests under libcpp-no-exceptions (authored by rogfer01). Changed prior to commit: https://reviews.llvm.org/D26184?vs=76545&id=76559#toc Repository: rL LLVM https://reviews.llvm.

[libcxx] r285695 - Protect lock tests under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
Author: rogfer01 Date: Tue Nov 1 10:00:16 2016 New Revision: 285695 URL: http://llvm.org/viewvc/llvm-project?rev=285695&view=rev Log: Protect lock tests under libcpp-no-exceptions Skip tests that expect an exception to be thrown. Differential Revision: https://reviews.llvm.org/D26184 Modifie

[PATCH] D26138: [clang-tidy] Add modernize-use-equals-delete check

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 76561. malcolm.parsons added a comment. Add quick hack to make methods public. Cleanup around replacements should be enhanced with rules to remove empty private/protected/public sections. private: public: -> public: public: private: -> private: https

[PATCH] D26189: Add a note that points to the linkage specifier for the "must have C++ linkage" errors

2016-11-01 Thread Erik Pilkington via cfe-commits
erik.pilkington added inline comments. Comment at: lib/Sema/SemaTemplate.cpp:5946 +if (const LinkageSpecDecl *LSD = Ctx->getExternCContext()) + Diag(LSD->getExternLoc(), diag::note_module_import_in_extern_c); +return true; Can you update the name of

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Felix Berger via cfe-commits
flx created this revision. flx added a reviewer: alexfh. flx added a subscriber: cfe-commits. flx set the repository for this revision to rL LLVM. IsExpensiveToCopy can return false positives for incomplete types, so ignore them. All existing ClangTidy tests that depend on this function still pa

[PATCH] D26136: Protect exceptional path under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 updated this revision to Diff 76566. rogfer01 added a comment. Const-ify variables. https://reviews.llvm.org/D26136 Files: test/std/strings/basic.string/string.access/at.pass.cpp test/std/strings/basic.string/string.capacity/reserve.pass.cpp test/std/strings/basic.string/string.c

[libcxx] r285697 - Protect exceptional paths under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
Author: rogfer01 Date: Tue Nov 1 10:46:16 2016 New Revision: 285697 URL: http://llvm.org/viewvc/llvm-project?rev=285697&view=rev Log: Protect exceptional paths under libcpp-no-exceptions These tests are of the form try { action-that-may-throw assert(!exceptional-condition) assert(some-

[PATCH] D26136: Protect exceptional path under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285697: Protect exceptional paths under libcpp-no-exceptions (authored by rogfer01). Changed prior to commit: https://reviews.llvm.org/D26136?vs=76566&id=76567#toc Repository: rL LLVM https://review

[PATCH] D24082: [CMake] Fix libc++abi arm build w/o libunwind.

2016-11-01 Thread Logan Chien via cfe-commits
logan added a comment. Hi @EricWF: Thanks for your comment. However, I think `OFF` is a better default for ARM (just like other platforms.) I usually use `libc++abi` without `libunwind` since `libgcc` is quite stable and usually linked by default. Besides, it is much more tricky to get the

r285700 - [OpenCL] Override supported OpenCL extensions with -cl-ext option

2016-11-01 Thread Alexey Bader via cfe-commits
Author: bader Date: Tue Nov 1 10:50:52 2016 New Revision: 285700 URL: http://llvm.org/viewvc/llvm-project?rev=285700&view=rev Log: [OpenCL] Override supported OpenCL extensions with -cl-ext option Summary: This patch adds a command line option '-cl-ext' to control a set of supported OpenCL exten

[PATCH] D23712: [OpenCL] Override supported OpenCL extensions with -cl-ext option

2016-11-01 Thread Alexey Bader via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285700: [OpenCL] Override supported OpenCL extensions with -cl-ext option (authored by bader). Changed prior to commit: https://reviews.llvm.org/D23712?vs=75568&id=76571#toc Repository: rL LLVM http

[PATCH] D24448: [atomics] New warning -Watomic-libcall when atomic operation expands to a library call

2016-11-01 Thread Simon Dardis via cfe-commits
sdardis added a comment. Ping. https://reviews.llvm.org/D24448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-01 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added reviewers: arsenm, tstellarAMD, rjmccall. yaxunl added a subscriber: cfe-commits. Herald added subscribers: tony-tye, nhaehnle, wdng, kzhuravl. In amdgcn target, null pointers in global, constant, and generic address space take value 0 but null pointers

[PATCH] D26197: Protect tests for new/delete under libcpp-no-exceptions

2016-11-01 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 created this revision. rogfer01 added reviewers: EricWF, mclow.lists, rmaprath. rogfer01 added a subscriber: cfe-commits. Skip the tests that expect an exception be thrown and protect unreachable catch blocks. https://reviews.llvm.org/D26197 Files: test/std/language.support/support

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Please add a test case with an incomplete type that would exercise this code path, otherwise, LGTM. Repository: rL LLVM https://reviews.llvm.org/D26195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

[PATCH] D26189: Add a note that points to the linkage specifier for the "must have C++ linkage" errors

2016-11-01 Thread Alex Lorenz via cfe-commits
arphaman updated this revision to Diff 76577. arphaman marked an inline comment as done. arphaman added a comment. The updated patch renames the note diagnostic to a more generic rename. Repository: rL LLVM https://reviews.llvm.org/D26189 Files: include/clang/AST/DeclBase.h include/clang

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26195#584712, @aaron.ballman wrote: > Please add a test case with an incomplete type that would exercise this code > path, otherwise, LGTM. Hi Aaron, do you have any advise on how to add an incomplete type? When debugging this I had a compila

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D26195#584724, @flx wrote: > In https://reviews.llvm.org/D26195#584712, @aaron.ballman wrote: > > > Please add a test case with an incomplete type that would exercise this > > code path, otherwise, LGTM. > > > Hi Aaron, > > do you have a

[PATCH] D24010: [ReachableCode] Skip over ExprWithCleanups in isConfigurationValue

2016-11-01 Thread Ted Kremenek via cfe-commits
krememek added a comment. LGTM. Repository: rL LLVM https://reviews.llvm.org/D24010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24235: [OpenCL] Improve double literal handling

2016-11-01 Thread Neil Hickey via cfe-commits
neil.hickey updated this revision to Diff 76587. neil.hickey added a comment. Sorry for the delay. It looks like the code to handle extensions was changed since Neil Henning added the check against opencl 1.2. Perhaps the best approach is just to remove the check. https://reviews.llvm.org/D242

[PATCH] D26203: [ClangTidy - performance-unnecessary-value-param]: Do not issue fix for functions that are referenced outside of callExpr

2016-11-01 Thread Felix Berger via cfe-commits
flx created this revision. flx added reviewers: alexfh, sbenza. flx added a subscriber: cfe-commits. flx set the repository for this revision to rL LLVM. Suppress fixes for functions that are referenced within the compilation unit outside of a call expression as the signature change could break t

[PATCH] D25074: [clang-tidy] Improve rename_check.py

2016-11-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 76593. omtcyfz added a comment. Reversed "tabwidth:2 -> tabwidth:4" change. Removed unused dependency (`re`). Got rid of `sys.argv[0]` via using Pythonic `__file__` and removed (now) redundant dependency (`sys`). https://reviews.llvm.org/D25074 Files: cl

[PATCH] D25208: [libc++] Make _LIBCPP_TYPE_VIS export members

2016-11-01 Thread Shoaib Meenai via cfe-commits
smeenai added a comment. Ping :) https://reviews.llvm.org/D25208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26061: [analyzer] Refactor and simplify SimpleConstraintManager

2016-11-01 Thread Dominic Chen via cfe-commits
ddcc added a comment. Yes, I've been writing a Z3 solver interface, which motivated this patch. However, this patch has snowballed into something that it's a little too convoluted, so I'll split it up. I'm not sure whether the RangedConstraintManager interface is useful or not; I preserved it

[PATCH] D26205: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: pcc, dblaikie. malcolm.parsons added a subscriber: cfe-commits. https://reviews.llvm.org/D26205 Files: clang-query/tool/ClangQuery.cpp Index: clang-query/tool/ClangQuery.cpp ===

[PATCH] D26119: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init

2016-11-01 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! https://reviews.llvm.org/D26119 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[PATCH] D26206: Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons created this revision. malcolm.parsons added reviewers: aaron.ballman, mehdi_amini, dblaikie. malcolm.parsons added a subscriber: cfe-commits. https://reviews.llvm.org/D26206 Files: lib/ARCMigrate/FileRemapper.cpp lib/CodeGen/CGObjCGNU.cpp lib/CodeGen/TargetInfo.cpp lib/Dr

[PATCH] D26118: [clang-tidy] Change readability-redundant-member-init to get base type from constructor

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. This change is missing a test case. Comment at: clang-tidy/readability/RedundantMemberInitCheck.cpp:57 "initializer for base class %0 is redundant") - << Init->getTypeSourceInfo()->getType() + << Construct->getType()

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-01 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: test/CodeGenOpenCL/amdgpu-nullptr.cl:49 +} + I think there need to be a lot more tests. A few I can think of: - Tests that compare to NULL instead of 0 - Pointer compares without the explicit 0, i.e. if (p)/if(!p)

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-01 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: test/CodeGenOpenCL/amdgpu-nullptr.cl:30 + +// CHECK: icmp eq i8 addrspace(1)* %p, null +void cmp_global(global char* p) { Missing check-label https://reviews.llvm.org/D26196 __

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26195#584730, @aaron.ballman wrote: > In https://reviews.llvm.org/D26195#584724, @flx wrote: > > > In https://reviews.llvm.org/D26195#584712, @aaron.ballman wrote: > > > > > Please add a test case with an incomplete type that would exercise this

[PATCH] D26157: [OpenCL] always use SPIR address spaces for kernel_arg_addr_space MD

2016-11-01 Thread Pekka Jääskeläinen via cfe-commits
pekka.jaaskelainen added a comment. Thanks. @tstellarAMD OK to commit for 3.9.1 as well? Repository: rL LLVM https://reviews.llvm.org/D26157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D26196: AMDGPU: Translate null pointers in private and local addr space

2016-11-01 Thread Matt Arsenault via cfe-commits
arsenm added inline comments. Comment at: lib/CodeGen/TargetInfo.cpp:6957-6958 + + llvm::Constant *translateNullPtr(const CodeGen::CodeGenModule &CGM, + llvm::Constant *C) const override; }; I was thinking that addrspacecast (generic null) should be valid

[PATCH] D25204: Register Calling Convention, Clang changes

2016-11-01 Thread Erich Keane via cfe-commits
erichkeane added a comment. @rnk, @majnemer and @ABataev : I believe that I've done everything that has come up in review, and this passes all tests for the convention I can find. Do you guys see anything that is holding this patch up? What is otherwise the 'next step' in getting this into m

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-01 Thread Felix Berger via cfe-commits
flx created this revision. flx added reviewers: alexfh, sbenza, aaron.ballman. flx added a subscriber: cfe-commits. flx set the repository for this revision to rL LLVM. Repository: rL LLVM https://reviews.llvm.org/D26207 Files: clang-tidy/performance/UnnecessaryValueParamCheck.cpp test/cla

[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. I *really* like this idea, thank you for working on this! A few things: (0) I'm uncomfortable with the lack of tests in the patch. I'm not certain of a good way to test this, however. @alexfh, do you have ideas? (1) I think that the aliases and the originals should

[PATCH] D26176: [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 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. These changes all look good to me, but it would be best to split the commit into three parts: one for include what you use, one for modernize-use-bool-literals, and one for the c

Re: r285326 - [Driver][OpenMP] Add support to create jobs for unbundling actions.

2016-11-01 Thread Galina Kistanova via cfe-commits
http://lab.llvm.org:8011/builders/clang-3stage-ubuntu/builds/128/steps/cmake-configure/logs/stdio -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 The code itself seems fine. The similar builder that uses the ToT Clang does not generate any warnings. h

[PATCH] D26125: [clang-tidy] Fixed readability-else-after-return for cascade statements

2016-11-01 Thread Paweł Żukowski via cfe-commits
idlecode retitled this revision from "[clang-tidy] Fixed else-after-return warning in cascade if statement" to "[clang-tidy] Fixed readability-else-after-return for cascade statements". idlecode updated the summary for this revision. idlecode updated this revision to Diff 76604. idlecode added a

[PATCH] D26205: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D26205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r285721 - [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Tue Nov 1 13:33:50 2016 New Revision: 285721 URL: http://llvm.org/viewvc/llvm-project?rev=285721&view=rev Log: [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio Also fix some Include What You Use and modernize-use-bool-literals war

[PATCH] D26176: [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285721: [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS… (authored by eugenezelenko). Changed prior to commit: https://reviews.llvm.org/D26176?vs=76510&id=76611#toc Repos

[PATCH] D26125: [clang-tidy] Fixed readability-else-after-return for cascade statements

2016-11-01 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. Thanks for fixing this! https://reviews.llvm.org/D26125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

Re: [clang-tools-extra] r285721 - [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 Thread Aaron Ballman via cfe-commits
On Tue, Nov 1, 2016 at 2:33 PM, Eugene Zelenko via cfe-commits wrote: > Author: eugenezelenko > Date: Tue Nov 1 13:33:50 2016 > New Revision: 285721 > > URL: http://llvm.org/viewvc/llvm-project?rev=285721&view=rev > Log: > [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by

r285725 - [OpenCL] Mark group functions as convergent in opencl-c.h

2016-11-01 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Tue Nov 1 13:45:32 2016 New Revision: 285725 URL: http://llvm.org/viewvc/llvm-project?rev=285725&view=rev Log: [OpenCL] Mark group functions as convergent in opencl-c.h Certain OpenCL builtin functions are supposed to be executed by all threads in a work group or sub group.

[PATCH] D25343: [OpenCL] Mark group functions as convergent in opencl-c.h

2016-11-01 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285725: [OpenCL] Mark group functions as convergent in opencl-c.h (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D25343?vs=75203&id=76612#toc Repository: rL LLVM https://rev

[PATCH] D26206: Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 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 some formatting nits, this LGTM. You should run the diff through clang-format before committing. Comment at: lib/CodeGen/CGObjCGNU.cpp:2650

Re: [clang-tools-extra] r285721 - [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 Thread Eugene Zelenko via cfe-commits
Hi, Aaron! I don't think that it worth to split such trivial changes in three. Eugene. On Tue, Nov 1, 2016 at 11:51 AM, Aaron Ballman wrote: > On Tue, Nov 1, 2016 at 2:33 PM, Eugene Zelenko via cfe-commits > wrote: >> Author: eugenezelenko >> Date: Tue Nov 1 13:33:50 2016 >> New Revision: 285

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:242 +// Case where parameter in declaration is already const-qualified but not in +// implementation. Make sure a second 'const' is not added to the declaration. +void Positiv

Re: [clang-tools-extra] r285721 - [Clang-tidy] Fix copy-paste error in misc-redundant-expression detected by PVS-Studio

2016-11-01 Thread Aaron Ballman via cfe-commits
On Tue, Nov 1, 2016 at 2:59 PM, Eugene Zelenko via cfe-commits wrote: > Hi, Aaron! > > I don't think that it worth to split such trivial changes in three. Unrelated changes should always go in as separate patches. This is especially important for code archaeology and times when we have to revert

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D26195#584958, @flx wrote: > In https://reviews.llvm.org/D26195#584730, @aaron.ballman wrote: > > > In https://reviews.llvm.org/D26195#584724, @flx wrote: > > > > > In https://reviews.llvm.org/D26195#584712, @aaron.ballman wrote: > > > >

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-11-01 Thread Artem Dergachev via cfe-commits
NoQ added a comment. I think i managed to understand the reasoning behind your solutions! Right now i definitely approve all the high-level logic apart from the handling of left/right `SVal`s for `evalAssume`, which i think could be easily improved upon without significant drawbacks. See the in

[PATCH] D26205: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285731: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26205?vs=76597&id=76622#toc Repository:

[clang-tools-extra] r285731 - [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings

2016-11-01 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Nov 1 15:07:05 2016 New Revision: 285731 URL: http://llvm.org/viewvc/llvm-project?rev=285731&view=rev Log: [clang-query] Fix Clang-tidy readability-redundant-string-cstr warnings Reviewers: pcc, dblaikie Subscribers: cfe-commits Differential Revision: https://

r285733 - clang/test/CodeGenOpenCL/convergent.cl: Satisfy -Asserts with "opt -instnamer".

2016-11-01 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Tue Nov 1 15:08:17 2016 New Revision: 285733 URL: http://llvm.org/viewvc/llvm-project?rev=285733&view=rev Log: clang/test/CodeGenOpenCL/convergent.cl: Satisfy -Asserts with "opt -instnamer". Modified: cfe/trunk/test/CodeGenOpenCL/convergent.cl Modified: cfe/trunk/test/

[PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-11-01 Thread Chris Bieneman via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D24869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[PATCH] D24933: Enable configuration files in clang

2016-11-01 Thread Hans Wennborg via cfe-commits
hans added a comment. I didn't follow the original thread too closely as I didn't really see the problem this was trying to address, but since I'm now cc'd I'll add my opinion. I'm not in favour of this functionality. (But I guess I might be missing the main use case.) The way I see it, what f

[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D25659#584986, @aaron.ballman wrote: > (1) I think that the aliases and the originals should be listed with > -list-checks, because these are names under which the checks may be run (and > sometimes the name may even imply different s

r285741 - [test] Fix detecting LLVM zlib support in stand-alone builds

2016-11-01 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Tue Nov 1 15:31:52 2016 New Revision: 285741 URL: http://llvm.org/viewvc/llvm-project?rev=285741&view=rev Log: [test] Fix detecting LLVM zlib support in stand-alone builds Fix the test run to declare missing HAVE_LIBZ value in stand-alone builds, using the LLVM_ENABLE_ZLIB t

[PATCH] D24869: [cfe] [test] Fix detecting LLVM zlib support in stand-alone builds

2016-11-01 Thread Michał Górny via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285741: [test] Fix detecting LLVM zlib support in stand-alone builds (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D24869?vs=72258&id=76625#toc Repository: rL LLVM https://

[PATCH] D26118: [clang-tidy] Change readability-redundant-member-init to get base type from constructor

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added inline comments. Comment at: clang-tidy/readability/RedundantMemberInitCheck.cpp:57 "initializer for base class %0 is redundant") - << Init->getTypeSourceInfo()->getType() + << Construct->getType() << FixItHint::Creat

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-11-01 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp:580 + C.addTransition(stateFound); + C.addTransition(stateNotFound); +} Ouch, i have one more concern, which can be expressed with the following false-positive test w

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-01 Thread Felix Berger via cfe-commits
flx updated this revision to Diff 76630. Repository: rL LLVM https://reviews.llvm.org/D26207 Files: clang-tidy/performance/UnnecessaryValueParamCheck.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index: test/clang-tidy/performance-unnecessary-value-param.cpp ===

[PATCH] D25660: [Analyzer] Checker for iterators dereferenced beyond their range.

2016-11-01 Thread Artem Dergachev via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/IteratorPastEndChecker.cpp:580 + C.addTransition(stateFound); + C.addTransition(stateNotFound); +} NoQ wrote: > Ouch, i have one more concern, which can be expressed with the following > false-

[PATCH] D26207: [ClangTidy - performance-unnecessary-value-param] Only add "const" when current parameter is not already const qualified

2016-11-01 Thread Felix Berger via cfe-commits
flx added inline comments. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:242 +// Case where parameter in declaration is already const-qualified but not in +// implementation. Make sure a second 'const' is not added to the declaration. +void PositiveConstDecl

[PATCH] D26195: Ignore incomplete types when determining whether they are expensive to copy

2016-11-01 Thread Felix Berger via cfe-commits
flx added a comment. In https://reviews.llvm.org/D26195#585091, @aaron.ballman wrote: > In https://reviews.llvm.org/D26195#584958, @flx wrote: > > > In https://reviews.llvm.org/D26195#584730, @aaron.ballman wrote: > > > > > In https://reviews.llvm.org/D26195#584724, @flx wrote: > > > > > > > In h

[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D25659#585154, @malcolm.parsons wrote: > In https://reviews.llvm.org/D25659#584986, @aaron.ballman wrote: > > > (1) I think that the aliases and the originals should be listed with > > -list-checks, because these are names under which th

[clang-tools-extra] r285752 - [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init

2016-11-01 Thread Malcolm Parsons via cfe-commits
Author: malcolm.parsons Date: Tue Nov 1 16:26:53 2016 New Revision: 285752 URL: http://llvm.org/viewvc/llvm-project?rev=285752&view=rev Log: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init Summary: Unnamed bitfields cannot be initialized. Bitfields cannot be in-class init

[PATCH] D26119: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init

2016-11-01 Thread Malcolm Parsons via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL285752: [clang-tidy] Handle bitfields in cppcoreguidelines-pro-type-member-init (authored by malcolm.parsons). Changed prior to commit: https://reviews.llvm.org/D26119?vs=76313&id=76635#toc Repository:

[PATCH] D19170: [safestack] Link SafeStack runtime only when not using separate stack segment

2016-11-01 Thread Michael LeMay via cfe-commits
mlemay-intel updated this revision to Diff 76636. mlemay-intel added a comment. Disabled linking of the compiler-rt SafeStack runtime library for musl environments rather than for targets that use the separate stack segment feature. This reflects changes in my proposed musl libc patches to add ar

[PATCH] D12839: Extend MoveConstructorInitCheck to also flag constructor arguments passed by value and can be moved assigned to fields.

2016-11-01 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D12839#582828, @malcolm.parsons wrote: > The modernize-pass-by-value check does the same thing: > > test/clang-tidy/misc-move-constructor-init.cpp:98:12: warning: pass by > value and use std::move [modernize-pass-by-value] > Positi

[PATCH] D25659: [clang-tidy] Avoid running aliased checks twice

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D25659#585234, @aaron.ballman wrote: > In https://reviews.llvm.org/D25659#585154, @malcolm.parsons wrote: > > > In https://reviews.llvm.org/D25659#584986, @aaron.ballman wrote: > > > > > (1) I think that the aliases and the originals sh

[PATCH] D12839: Extend MoveConstructorInitCheck to also flag constructor arguments passed by value and can be moved assigned to fields.

2016-11-01 Thread Malcolm Parsons via cfe-commits
malcolm.parsons added a comment. In https://reviews.llvm.org/D12839#585256, @aaron.ballman wrote: > This overlap is unfortunate. misc-move-constructor-init is for move > constructor initializer lists which accidentally initialize a member or base > through a copy constructor rather than a move

r285759 - [analyzer] Fix capitalization in ObjCSuperDealloc checker diagnostic.

2016-11-01 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Tue Nov 1 17:16:39 2016 New Revision: 285759 URL: http://llvm.org/viewvc/llvm-project?rev=285759&view=rev Log: [analyzer] Fix capitalization in ObjCSuperDealloc checker diagnostic. Change "use of 'self'..." to "Use of 'self'...". The convention is to start diagnostics wit

  1   2   >