r248778 - Revert part of r248776. One of the changes worked on my local build, but not on the bots.

2015-09-28 Thread Craig Topper via cfe-commits
Author: ctopper Date: Tue Sep 29 00:08:30 2015 New Revision: 248778 URL: http://llvm.org/viewvc/llvm-project?rev=248778&view=rev Log: Revert part of r248776. One of the changes worked on my local build, but not on the bots. Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.

r248776 - Simplify or remove calls to makeArrayRef based on feedback from David Blaikie. NFC.

2015-09-28 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Sep 28 23:53:28 2015 New Revision: 248776 URL: http://llvm.org/viewvc/llvm-project?rev=248776&view=rev Log: Simplify or remove calls to makeArrayRef based on feedback from David Blaikie. NFC. Modified: cfe/trunk/include/clang/Analysis/Analyses/ThreadSafetyTIL.h

r248775 - Honor the casted-to alignment of an explicit cast even when

2015-09-28 Thread John McCall via cfe-commits
Author: rjmccall Date: Mon Sep 28 23:37:40 2015 New Revision: 248775 URL: http://llvm.org/viewvc/llvm-project?rev=248775&view=rev Log: Honor the casted-to alignment of an explicit cast even when Sema thinks the cast is a no-op, as it does when (e.g.) the only thing that changes is an alignment att

r248774 - Remove 'const' from some ArrayRef arguments since they're passed by value anyway. NFC

2015-09-28 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Sep 28 23:30:07 2015 New Revision: 248774 URL: http://llvm.org/viewvc/llvm-project?rev=248774&view=rev Log: Remove 'const' from some ArrayRef arguments since they're passed by value anyway. NFC Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk

r248773 - Pass ArrayRef by value. NFC.

2015-09-28 Thread Craig Topper via cfe-commits
Author: ctopper Date: Mon Sep 28 23:30:05 2015 New Revision: 248773 URL: http://llvm.org/viewvc/llvm-project?rev=248773&view=rev Log: Pass ArrayRef by value. NFC. Modified: cfe/trunk/lib/AST/ExprConstant.cpp Modified: cfe/trunk/lib/AST/ExprConstant.cpp URL: http://llvm.org/viewvc/llvm-proje

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. Ah. Well, Im tempted to say that we should avoid the option. Generally, making the backend options visible is undesirable since there is no guarantee of stability there. This simplifies that, and if users start using that, we would not be able to change those as eas

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread don hinton via cfe-commits
hintonda added a comment. Mainly aesthetic. It was the only one of the group, -Xassembler, -Xlinker, -Xpreprocessor, and -Xclang, that didn't have a corresponding comma separated option, so I figured it might be a good addition. http://reviews.llvm.org/D13229 __

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread Saleem Abdulrasool via cfe-commits
compnerd added a comment. While I can certainly appreciate the simplification this may afford, Im not sure if adding a new option here is really that valuable. Options being added to the frontend are expensive because they can't be changed or removed. If gcc has a similar frontend option, we

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-28 Thread Artem Belevich via cfe-commits
cuda_runtime.h may be a better choice. nvcc -includes it during both host and device compilation and this wrapper file is intended to serve a similar purpose and will probably end up being -included by cc1 in the end. --Artem On Mon, Sep 28, 2015 at 6:26 PM, Eric Christopher wrote: > echristo

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-28 Thread Eric Christopher via cfe-commits
echristo added a comment. Why not just call it cuda.h and use #include next for it and then fix it up? -eric http://reviews.llvm.org/D13171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread don hinton via cfe-commits
hintonda added a comment. Here are a few examples from existing tests showing how this option could be used: -Xclang -analyzer-max-loop -Xclang 34 becomes: -Wc,-analyzer-max-loop,34 -Xclang -analyzer-checker=debug.ConfigDumper -Xclang -analyzer-max-loop -Xclang 34 becomes: -Wc,-a

LLVM buildnaster will be restarted tonight

2015-09-28 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be restarted after 6 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r248762 - Unique-pointerify these pointers an plug a memory leak.

2015-09-28 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Mon Sep 28 18:56:10 2015 New Revision: 248762 URL: http://llvm.org/viewvc/llvm-project?rev=248762&view=rev Log: Unique-pointerify these pointers an plug a memory leak. Thanks to echristo for noticing! Modified: cfe/trunk/include/clang/CodeGen/CodeGenABITypes.h cfe/tru

Re: r241035 - Pass HeaderSearchOptions and PreprocessorOptions into CodeGenModule.

2015-09-28 Thread Adrian Prantl via cfe-commits
Thanks, Eric! Should be fixed in r248762. -- adrian > On Sep 28, 2015, at 4:40 PM, Eric Christopher wrote: > > Actually using the right list now... > > On Mon, Sep 28, 2015 at 4:39 PM Eric Christopher wrote: > Hi Adrian, > > >: CGO(new CodeGenOptions), > -CGM(new CodeGen::CodeGenMo

r248760 - Add an explicitly defaulted copy ctor (and FIXME) to Command since its copy ctor is currently used (and actually slices derived objects... ) in some diagnostics handling.

2015-09-28 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Sep 28 18:48:52 2015 New Revision: 248760 URL: http://llvm.org/viewvc/llvm-project?rev=248760&view=rev Log: Add an explicitly defaulted copy ctor (and FIXME) to Command since its copy ctor is currently used (and actually slices derived objects... ) in some diagnostics

r248759 - Remove trivial dtor that was making uses of the copy ctor -Wdeprecated unclean

2015-09-28 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Sep 28 18:48:49 2015 New Revision: 248759 URL: http://llvm.org/viewvc/llvm-project?rev=248759&view=rev Log: Remove trivial dtor that was making uses of the copy ctor -Wdeprecated unclean And also remove an unused variable that's now diagnosed by -Wunused-variable since

r248761 - Remove the only use of LookupResult's implicit copy ctor

2015-09-28 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Mon Sep 28 18:48:55 2015 New Revision: 248761 URL: http://llvm.org/viewvc/llvm-project?rev=248761&view=rev Log: Remove the only use of LookupResult's implicit copy ctor LookupResult should not be copyable, it's not readily copyable and can only be copied when it's in specif

Re: r241035 - Pass HeaderSearchOptions and PreprocessorOptions into CodeGenModule.

2015-09-28 Thread Eric Christopher via cfe-commits
Actually using the right list now... On Mon, Sep 28, 2015 at 4:39 PM Eric Christopher wrote: > Hi Adrian, > > >>: CGO(new CodeGenOptions), >> -CGM(new CodeGen::CodeGenModule(C, *CGO, M, TD, C.getDiagnostics(), >> +HSO(new HeaderSearchOptions), >> +PPO(new PreprocessorOptions), >>

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread don hinton via cfe-commits
Hi Joerg: This change would allow users to pass multiple options, or options with arguments, to cc1 without having to use -Xclang multiple times. Recently, the -load option was added, at least partly, because passing -Xclang multiple times was cumbersome. (I like that change btw) Had -Wc, been a

Re: [PATCH] D13181: [CUDA] 32-bit NVPTX: long should be 32bit

2015-09-28 Thread Artem Belevich via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL248753: [CUDA] 32-bit NVPTX should have 32-bit long type. (authored by tra). Changed prior to commit: http://reviews.llvm.org/D13181?vs=35772&id=35918#toc Repository: rL LLVM http://reviews.llvm.org

r248753 - [CUDA] 32-bit NVPTX should have 32-bit long type.

2015-09-28 Thread Artem Belevich via cfe-commits
Author: tra Date: Mon Sep 28 17:54:08 2015 New Revision: 248753 URL: http://llvm.org/viewvc/llvm-project?rev=248753&view=rev Log: [CUDA] 32-bit NVPTX should have 32-bit long type. Currently it's 64-bit which will lead to mismatch between host and device code if we compile for i386. Differential

Re: [PATCH] D13229: Add -Wc, option

2015-09-28 Thread Joerg Sonnenberger via cfe-commits
On Mon, Sep 28, 2015 at 09:54:53PM +, don hinton via cfe-commits wrote: > Add -Wc, option (similar to -Wl,) to go along with -Xclang. > This makes it easier to pass multiple options to cc1. How is this better than -mllvm and -Xclang? There is no precendence case for this with GCC really and I

[PATCH] D13229: Add -Wc, option

2015-09-28 Thread don hinton via cfe-commits
hintonda created this revision. hintonda added a subscriber: cfe-commits. Add -Wc, option (similar to -Wl,) to go along with -Xclang. This makes it easier to pass multiple options to cc1. http://reviews.llvm.org/D13229 Files: include/clang/Driver/Options.td lib/Driver/Tools.cpp Index: lib

[PATCH] D13228: clang-format: Extend #include sorting functionality

2015-09-28 Thread Daniel Jasper via cfe-commits
djasper created this revision. djasper added a reviewer: klimek. djasper added a subscriber: cfe-commits. Herald added a subscriber: klimek. Recognize main module header as well as different #include categories. This should now mimic the behavior of llvm/utils/sort_includes.py as well as clang-t

Re: [PATCH] D13190: Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1

2015-09-28 Thread Bill Schmidt via cfe-commits
wschmidt accepted this revision. wschmidt added a comment. This revision is now accepted and ready to land. Sorry, forgot to accept. Repository: rL LLVM http://reviews.llvm.org/D13190 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

Re: [PATCH] D12652: [Static Analyzer] Lambda support.

2015-09-28 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. I will look into it. Do you prefer to revert the patch this it is fixed? Repository: rL LLVM http://reviews.llvm.org/D12652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

r248734 - Generate assume loads only with -fstrict-vtable-pointers

2015-09-28 Thread Piotr Padlewski via cfe-commits
Author: prazek Date: Mon Sep 28 15:30:22 2015 New Revision: 248734 URL: http://llvm.org/viewvc/llvm-project?rev=248734&view=rev Log: Generate assume loads only with -fstrict-vtable-pointers Temporary fix till InstCombine and other possible passes will be efficient to handle multiple assumes. Mod

Re: [PATCH] D13223: Generate assume loads only with -fstrict-vtable-pointers

2015-09-28 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. One inline comment reword. Comment at: lib/CodeGen/CGClass.cpp:2111 @@ -2110,1 +2110,3 @@ + // FIXME: It looks like InstCombine is very ineffic

Re: [PATCH] D13223: Generate assume loads only with -fstrict-vtable-pointers

2015-09-28 Thread Reid Kleckner via cfe-commits
rnk added a subscriber: rnk. rnk accepted this revision. rnk added a reviewer: rnk. rnk added a comment. This revision is now accepted and ready to land. lgtm http://reviews.llvm.org/D13223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[PATCH] D13223: Generate assume loads only with -fstrict-vtable-pointers

2015-09-28 Thread Piotr Padlewski via cfe-commits
Prazek created this revision. Prazek added reviewers: rsmith, samsonov, majnemer. Prazek added a subscriber: cfe-commits. Temporary fix till InstCombine and other possible passes will be efficient to handle multiple assumes. http://reviews.llvm.org/D13223 Files: lib/CodeGen/CGClass.cpp test

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-28 Thread Artem Belevich via cfe-commits
The (vague) idea was to make clear that the header is *not* part of cuda distribution. That said, the file could use a better name. Do any of these sound better? * fix_cuda_headers.h * adapt_cuda_headers.h * cuda_shim.h --Artem On Sat, Sep 26, 2015 at 12:20 PM, Eric Christopher wrote: > echri

Re: [PATCH] D13221: Make CompilerInvocation's use of the debug options more understandable.

2015-09-28 Thread Douglas Katzman via cfe-commits
dougk added a comment. I think the best thing to do is introduce new cc1 arguments that control the Opts explicitly, and cease accepting the equivalent driver arguments in cc1. I would propose '-gdwarf-version={2|3|4}' and '-gdebug-info-kind={line-tables|limited|full}' http://reviews.llvm.org/

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 35900. aaron.ballman marked 2 inline comments as done. aaron.ballman added a comment. Addresses review comments, also adds a documentation file. http://reviews.llvm.org/D12945 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cp

[clang-tools-extra] r248729 - Fixing a sphinx warning.

2015-09-28 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Mon Sep 28 14:27:37 2015 New Revision: 248729 URL: http://llvm.org/viewvc/llvm-project?rev=248729&view=rev Log: Fixing a sphinx warning. Modified: clang-tools-extra/trunk/docs/modularize.rst Modified: clang-tools-extra/trunk/docs/modularize.rst URL: http://llvm.or

[PATCH] D13221: Make CompilerInvocation's use of the debug options more understandable.

2015-09-28 Thread Douglas Katzman via cfe-commits
dougk created this revision. dougk added reviewers: chandlerc, jyknight. dougk added a subscriber: cfe-commits. Both the Driver and the cc1 frontend play games with various combinations of 'g' group options. It would be nice if at least the frontend could be sane, leaving the decision of what OS

Re: [PATCH] D12652: [Static Analyzer] Lambda support.

2015-09-28 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Looks like this patch is causing regressions: https://llvm.org/bugs/show_bug.cgi?id=24914 Repository: rL LLVM http://reviews.llvm.org/D12652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

[clang-tools-extra] r248723 - [clang-tidy] add option to specify build path

2015-09-28 Thread Guillaume Papin via cfe-commits
Author: papin_g Date: Mon Sep 28 12:53:04 2015 New Revision: 248723 URL: http://llvm.org/viewvc/llvm-project?rev=248723&view=rev Log: [clang-tidy] add option to specify build path Summary: compile_commands.json is usually generated in the build directory. Projects like LLVM/Clang enforce out-of-s

Re: [PATCH] Change memcpy/memmove/memset to have dest and source alignment

2015-09-28 Thread Pete Cooper via cfe-commits
Hey Hal Thanks for the review. I really appreciate it given the scale of this. > On Sep 25, 2015, at 1:13 PM, Hal Finkel wrote: > > Hi Pete, > > Thanks for working on this. > > + class IntegerAlignment { > + private: > +uint64_t Align; > > You explain in the patch summary why this is he

Re: [PATCH] D12793: Three new overflow builtins with generic argument types

2015-09-28 Thread John McCall via cfe-commits
rjmccall added a comment. LGTM, thanks. http://reviews.llvm.org/D12793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D13217: The Driver does not set the +strict-align flag when targeting armv6m + netbsd

2015-09-28 Thread Alexandros Lamprineas via cfe-commits
labrinea created this revision. labrinea added reviewers: cfe-commits, rengolin. Herald added subscribers: rengolin, aemerson. Tests are misssing for armv6m + darwin as well. http://reviews.llvm.org/D13217 Files: lib/Basic/Targets.cpp lib/Driver/Tools.cpp test/Driver/arm-alignment.c Index

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
On Mon, Sep 28, 2015 at 12:36 PM, Alexander Kornienko via cfe-commits wrote: > alexfh added inline comments. > > > Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:170 > @@ +169,3 @@ > +const auto &OI = std::find_if( > +Overloads.begin(), Overloads.end(), [&](co

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:170 @@ +169,3 @@ +const auto &OI = std::find_if( +Overloads.begin(), Overloads.end(), [&](const FunctionDecl *FD) { + if (FD == O) aaron.ballman wrote: > ale

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman marked 4 inline comments as done. aaron.ballman added a comment. http://reviews.llvm.org/D13071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 35881. aaron.ballman added a comment. Addressing review comments. http://reviews.llvm.org/D13071 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/NewDeleteOverloadsCheck.cpp clang-tidy/misc/NewDeleteOver

Re: [clang-tools-extra] r248438 - Fix loop-convert for trivially copyable types.

2015-09-28 Thread Manuel Klimek via cfe-commits
Yes that's already planned. On Mon, Sep 28, 2015, 5:10 PM David Blaikie wrote: > On Sat, Sep 26, 2015 at 11:21 PM, Manuel Klimek via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Yep. We'll make it better by limiting the size, but trivially copyable is >> an improvement, as there are o

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:170 @@ +169,3 @@ +const auto &OI = std::find_if( +Overloads.begin(), Overloads.end(), [&](const FunctionDecl *FD) { + if (FD == O) alexfh wrote: > aar

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:168 @@ +167,3 @@ + SmallVector Diagnose; + for (const auto *O : Overloads) { +const auto &OI = std::find_if( alexfh wrote: > aaron.ballman wrote: > > alexfh wrote: >

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:168 @@ +167,3 @@ + SmallVector Diagnose; + for (const auto *O : Overloads) { +const auto &OI = std::find_if( aaron.ballman wrote: > alexfh wrote: > > Please don't use "O",

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Thank you for the review! Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:66 @@ +65,3 @@ +namespace { +OverloadedOperatorKind GetCorrespondingOverload(const FunctionDecl *FD) { + switch (FD->getOverloadedOperator()) { alex

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/NonCopyableObjects.cpp:21 @@ +20,3 @@ + static const char *TypeNames[] = { +"::pthread_cond_t", +"::pthread_mutex_t", aaron.ballman wrote: > alexfh wrote: > > How about making these lists configura

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/NewDeleteOverloadsCheck.cpp:66 @@ +65,3 @@ +namespace { +OverloadedOperatorKind GetCorrespondingOverload(const FunctionDecl *FD) { + switch (FD->getOverloadedOperator()) { http://llvm.org/docs/CodingStanda

Re: [PATCH] D12945: [PATCH] Add checker for objects that should not be value types

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/NonCopyableObjects.cpp:21 @@ +20,3 @@ + static const char *TypeNames[] = { +"::pthread_cond_t", +"::pthread_mutex_t", alexfh wrote: > How about making these lists configurable or adding a li

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 35873. angelgarcia added a comment. Also replace on aliases. http://reviews.llvm.org/D13166 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeUniqueCheck.cpp clang-tidy/modernize/MakeUniqueCheck.h clang-tidy/modernize/Modernize

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman marked an inline comment as done. aaron.ballman added a comment. http://reviews.llvm.org/D13071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13071: [PATCH] New checker for mismatched operator new/operator delete definitions

2015-09-28 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 35872. aaron.ballman added a comment. Added documentation, fixed else after return. ~Aaron http://reviews.llvm.org/D13071 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/NewDeleteOverloadsCheck.cpp cla

Re: [clang-tools-extra] r248438 - Fix loop-convert for trivially copyable types.

2015-09-28 Thread David Blaikie via cfe-commits
On Sat, Sep 26, 2015 at 11:21 PM, Manuel Klimek via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Yep. We'll make it better by limiting the size, but trivially copyable is > an improvement, as there are orders of magnitude more loops over small > copyable types than over large ones. > We see

Re: r248678 - Use llvm::makeArrayRef. NFC.

2015-09-28 Thread David Blaikie via cfe-commits
On Sat, Sep 26, 2015 at 8:44 PM, Craig Topper via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ctopper > Date: Sat Sep 26 22:44:08 2015 > New Revision: 248678 > > URL: http://llvm.org/viewvc/llvm-project?rev=248678&view=rev > Log: > Use llvm::makeArrayRef. NFC. > > Modified: > cf

Re: [PATCH] D13127: [ARM] Upgrade codegen for vld[234] and vst[234] to to communicate a 0 address space

2015-09-28 Thread Jeroen Ketema via cfe-commits
jketema updated this revision to Diff 35871. jketema added a comment. Sync with updates to the llvm part of this patch http://reviews.llvm.org/D13127 Files: lib/CodeGen/CGBuiltin.cpp test/CodeGen/arm-neon-misc.c test/CodeGen/arm-vector-align.c test/CodeGen/vld_dup.c Index: test/CodeGen

Re: [PATCH] D13190: Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1

2015-09-28 Thread Bill Schmidt via cfe-commits
wschmidt added a comment. Other than the FIXME removal, this LGTM! Very good and careful work. Thanks for taking care of this! Comment at: lib/Headers/altivec.h:13788 @@ -13416,3 +13787,3 @@ removed with -mno-crypto). This is under development. */ #ifdef __CRYPTO__ ---

r248714 - clang-format: [JS] Support pseudo-keywords

2015-09-28 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Sep 28 09:29:45 2015 New Revision: 248714 URL: http://llvm.org/viewvc/llvm-project?rev=248714&view=rev Log: clang-format: [JS] Support pseudo-keywords JavaScript allows keywords to appear in IdenfierName positions, e.g. fields, or object literal members, but not as plain

Re: [PATCH] D13213: clang-format: [JS] Support pseudo-keywords.

2015-09-28 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r248714. http://reviews.llvm.org/D13213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13211: clang-format: [JS] handle let (ES6).

2015-09-28 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r248713. http://reviews.llvm.org/D13211 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r248713 - clang-format: [JS] handle let (ES6)

2015-09-28 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Mon Sep 28 09:28:08 2015 New Revision: 248713 URL: http://llvm.org/viewvc/llvm-project?rev=248713&view=rev Log: clang-format: [JS] handle let (ES6) Patch by Martin Probst. Thank you! Modified: cfe/trunk/lib/Format/FormatToken.h cfe/trunk/lib/Format/TokenAnnotator.cp

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D13166#254730, @angelgarcia wrote: > This raises a question. Do we want to do replacements when we use an alias > for std::unique_ptr? That fact that something is an unique_ptr might be an > implementation detail that should not be exposed, but

Re: [PATCH] D13211: clang-format: [JS] handle let (ES6).

2015-09-28 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 35867. mprobst marked an inline comment as done. mprobst added a comment. Use isOneOf instead of startsWith. http://reviews.llvm.org/D13211 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp lib/Format/UnwrappedLineParser.cpp unittests/Fo

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia added a comment. This raises a question. Do we want to do replacements when we use an alias for std::unique_ptr? That fact that something is an unique_ptr might be an implementation detail that should not be exposed, but it could also happen that the alias is there only for brevity. Wh

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

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. In http://reviews.llvm.org/D12839#254384, @flx wrote: > I changed the check to also produce a fix that wraps the argument in > std::move(). > > When I modified the test include -isystem %S/Inputs/Headers it broke and only > produces warnings but no fixes anymore. Is ther

Re: [PATCH] D13213: clang-format: [JS] Support pseudo-keywords.

2015-09-28 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. http://reviews.llvm.org/D13213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[PATCH] D13213: clang-format: [JS] Support pseudo-keywords.

2015-09-28 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added reviewers: djasper, klimek. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. JavaScript allows keywords to appear in IdenfierName positions, e.g. fields, or object literal members, but not as plain identifiers. http://reviews

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/MakeUniqueCheck.cpp:75-76 @@ +74,4 @@ + std::string Identifier = removeWhitespace(ExprStr.substr(0, LAngle)); + if (Identifier != "unique_ptr" && Identifier != "std::unique_ptr") +return; + SourceLocation Constr

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 35864. angelgarcia added a comment. I think this is a bit better than before. http://reviews.llvm.org/D13166 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeUniqueCheck.cpp clang-tidy/modernize/MakeUniqueCheck.h clang-tidy/mo

Re: Bug 23529: Add support for gcc's attribute abi_tag (needed for compatibility with gcc 5's libstdc++)

2015-09-28 Thread Manuel Klimek via cfe-commits
On Sun, Sep 27, 2015 at 2:45 PM Stefan Bühler via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi, > > it seems moderation didn't approve the phabricator mails for D12834. > (I have no intention to be subscribed to the list just to get > phabricator mails through. For now I am subscribed but

Re: [PATCH] D13206: Add clang-query tool to installation targets

2015-09-28 Thread Evangelos Foutras via cfe-commits
foutrelis added a comment. Thanks for the review. Can you please commit the patch to `clang-tools-extra/trunk` (since I don't have commit rights)? http://reviews.llvm.org/D13206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

Re: [PATCH] D13206: Add clang-query tool to installation targets

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek closed this revision. klimek added a comment. Submitted in r248710 http://reviews.llvm.org/D13206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r248710 - Install clang-query by default.

2015-09-28 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Mon Sep 28 08:26:39 2015 New Revision: 248710 URL: http://llvm.org/viewvc/llvm-project?rev=248710&view=rev Log: Install clang-query by default. It is already installed by the autotools build, and it is useful for developers who are not working on LLVM/Clang itself. Modified:

Re: [PATCH] D13211: clang-format: [JS] handle let (ES6).

2015-09-28 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Format/TokenAnnotator.cpp:2087 @@ -2087,1 +2086,3 @@ +// above. +!Line.startsWith(Keywords.kw_var) && !Line.startsWith(Keywords.kw_let)) // Object literals on th

[PATCH] D13211: clang-format: [JS] handle let (ES6).

2015-09-28 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added reviewers: klimek, djasper. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. clang-format: [JS] handle let (ES6). http://reviews.llvm.org/D13211 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp lib/Format/

[PATCH] D13210: Make brace styles more configurable

2015-09-28 Thread Daniel Jasper via cfe-commits
djasper created this revision. djasper added a reviewer: klimek. djasper added a subscriber: cfe-commits. Herald added a subscriber: klimek. Add individual brace flags for the different aspects of wrapping braces and make Allman, GNU, etc. just presets for them. This patch isn't complete yet, st

Re: [PATCH] D13206: Add clang-query tool to installation targets

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. klimek accepted this revision. klimek added a reviewer: klimek. klimek added a comment. This revision is now accepted and ready to land. LG As we already a) install it from auto-tools and b) this tool is useful for non-llvm/clang devs http://reviews.llvm.org/

[PATCH] D13206: Add clang-query tool to installation targets

2015-09-28 Thread Evangelos Foutras via cfe-commits
foutrelis created this revision. foutrelis added a subscriber: cfe-commits. It has been requested in a bug report downstream in Arch Linux to include the clang-query tool as part of our clang-tools-extra package. [1] This point has also been brought up on the cfe-dev list and the LLVM bug track

Re: [PATCH] D13206: Add clang-query tool to installation targets

2015-09-28 Thread Evangelos Foutras via cfe-commits
foutrelis added a comment. Just a note that this change is specific to CMake since autotools already installs clang-query (along with some other tools). http://reviews.llvm.org/D13206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia added a comment. How can Lexer::getSourceText give us the range? My problem precisely is that I couldn't find any way to obtain the range of the constructor call without the template arguments. http://reviews.llvm.org/D13166 ___ cfe-comm

Re: [PATCH] D12359: New warning -Wnonconst-parameter when a pointer parameter can be const

2015-09-28 Thread Daniel Marjamäki via cfe-commits
danielmarjamaki added a comment. Thanks! Very good comments. I will look at the comments asap. but unfortunately I don't have time right now. I expect that I can continue working on this warning in a few weeks. Comment at: include/clang/AST/DeclBase.h:279 @@ +278,3 @@ + /// b

Re: [PATCH] D13054: [libc++] Un-guarded reference to uncaught_exception() in ostream header

2015-09-28 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Gentle ping. http://reviews.llvm.org/D13054 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D13166#254520, @angelgarcia wrote: > Two tests in which 'getTokenLength' returns 0. Thanks for the tests - question is: I would have expected us to use something like Lexer::getSourceText, which should give us the full range in the first test

Re: [PATCH] D13079: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:577-578 @@ -578,3 +576,4 @@ Diag << FixItHint::CreateReplacement( -CharSourceRange::getTokenRange(Range), Failure.Fixup); +SourceRange(SourceLocation::getFro

Re: [PATCH] D13079: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-28 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL248700: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D13079?vs=35818&id=35842#toc Repository: rL LLVM h

[clang-tools-extra] r248700 - [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck

2015-09-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Sep 28 03:59:12 2015 New Revision: 248700 URL: http://llvm.org/viewvc/llvm-project?rev=248700&view=rev Log: [clang-tidy] Code factorization and cleanup in IdentifierNamingCheck This is to level the ground a little bit, in preparation for the changes in http://reviews.llv

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 35841. angelgarcia added a comment. Two tests in which 'getTokenLength' returns 0. http://reviews.llvm.org/D13166 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeUniqueCheck.cpp clang-tidy/modernize/MakeUniqueCheck.h clang-ti

[clang-tools-extra] r248699 - [clang-tidy] Removed a stray empty line in the docs.

2015-09-28 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Mon Sep 28 03:52:55 2015 New Revision: 248699 URL: http://llvm.org/viewvc/llvm-project?rev=248699&view=rev Log: [clang-tidy] Removed a stray empty line in the docs. Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/google-build-explicit-make-pair.rst Modified: c

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-28 Thread Alexey Bataev via cfe-commits
ABataev added a comment. The bad thing is that the same problem can be reproduced not only in frontend, but also in opt tool. The test I wrote (test/Other/empty.ll) also failed with the same message. And Yaron is right, I need to mix several outputs in stdout. What should I do in this case? h

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Manuel Klimek via cfe-commits
klimek added inline comments. Comment at: clang-tidy/modernize/MakeUniqueCheck.cpp:26-28 @@ +25,5 @@ +/// \brief Returns the length of the token that goes since the beggining of the +/// constructor call until the '<' of the template. This token should either be +/// 'unique_ptr'

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia updated this revision to Diff 35839. angelgarcia marked an inline comment as done. angelgarcia added a comment. Remove 'hasCanonicalType'. http://reviews.llvm.org/D13166 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/MakeUniqueCheck.cpp clang-tidy/modernize/Ma

Re: [PATCH] D13166: Create modernize-make-unique check.

2015-09-28 Thread Angel Garcia via cfe-commits
angelgarcia added inline comments. Comment at: clang-tidy/modernize/MakeUniqueCheck.cpp:25-27 @@ +24,5 @@ + +/// \brief Returns the length of the token that goes since the beggining of the +/// constructor call until the '<' of the template. This token should either be +/// 'uniqu

[PATCH] D13203: [Clang] - Massaging code to fix MSVS 2015 win32-release configuration

2015-09-28 Thread George Rimar via cfe-commits
grimar created this revision. grimar added reviewers: rsmith, echristo. grimar added subscribers: cfe-commits, grimar. Microsoft Visual Studio Community 2015 Version 14.0.23107.0 D14REL When building in release mode, MSVS failed with: 57>c:\access_softek\llvm\tools\clang\lib\ast\astcontext.cpp(3

Re: [PATCH] D13190: Addition of interfaces the FE to conform to Table A-2 of ELF V2 ABI V1.1

2015-09-28 Thread Nemanja Ivanovic via cfe-commits
nemanjai updated this revision to Diff 35838. nemanjai added a comment. I forgot the test cases in the original upload. This patch contains the test cases and is ready for review. Repository: rL LLVM http://reviews.llvm.org/D13190 Files: include/clang/Basic/BuiltinsPPC.def lib/Headers/a

Re: r246985 - Compute and preserve alignment more faithfully in IR-generation.

2015-09-28 Thread John McCall via cfe-commits
> On Sep 27, 2015, at 5:56 PM, Joerg Sonnenberger > wrote: > On Tue, Sep 08, 2015 at 08:06:00AM -, John McCall via cfe-commits wrote: >> Author: rjmccall >> Date: Tue Sep 8 03:05:57 2015 >> New Revision: 246985 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=246985&view=rev >> Log: >> Co