Re: [PATCH] D17385: clang-format: [JS] single quote double quoted strings.

2016-02-24 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:1579 @@ +1578,3 @@ + // The width of the extra \ escapes is taken into account in getNextToken. + void requoteJSStringLiterals(tooling::Replacements &Replaces, + FormatToken *Current)

Re: [PATCH] D13980: Add "x87" in x86 target feature map

2016-02-24 Thread Andrey Turetskiy via cfe-commits
aturetsk updated this revision to Diff 48904. aturetsk added a comment. Rebased. http://reviews.llvm.org/D13980 Files: lib/Basic/Targets.cpp test/CodeGen/attr-target-x86-mmx.c test/CodeGen/attr-target-x86.c Index: test/CodeGen/attr-target-x86.c ===

Re: [PATCH] D13980: Add "x87" in x86 target feature map

2016-02-24 Thread Andrey Turetskiy via cfe-commits
aturetsk added a comment. Hi, The related LLVM patch (http://reviews.llvm.org/D13979) was approved. Is this patch ok for commit? http://reviews.llvm.org/D13980 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

[PATCH] D17567: [GCC] Sema part of attrbute abi_tag support

2016-02-24 Thread Dmitry Polukhin via cfe-commits
DmitryPolukhin created this revision. DmitryPolukhin added a reviewer: aaron.ballman. DmitryPolukhin added subscribers: cfe-commits, stbuehler. Original patch by Stefan Bühler http://reviews.llvm.org/D12834 Difference between original and this one: - fixed all comments in original code review - a

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48905. omtcyf0 added a comment. replaced few explicit casts to llvm::Twine with implicit ones http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/modernize/DeprecatedHead

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. In http://reviews.llvm.org/D17484#359634, @alexfh wrote: > Looks good with one nit. > > Let me know if you need me to commit the patch for you. Yes, commit please! http://reviews.llvm.org/D17484 ___ cfe-commits mailing li

Re: [PATCH] D16376: clang-tidy check: misc-deprecated-special-member-functions

2016-02-24 Thread Jonathan B Coe via cfe-commits
jbcoe added a comment. The Sema diagnostic warning is only produced if a deprecated special member function is used whereas I want to find places where it would be compiler-generated and explicitly delete them. This is useful for library code where I don't have control over the warnings my user

Re: r261717 - Default vaarg lowering should support indirect struct types.

2016-02-24 Thread Joerg Sonnenberger via cfe-commits
On Wed, Feb 24, 2016 at 03:03:32AM -, James Y Knight via cfe-commits wrote: > Author: jyknight > Date: Tue Feb 23 20:59:33 2016 > New Revision: 261717 > > URL: http://llvm.org/viewvc/llvm-project?rev=261717&view=rev > Log: > Default vaarg lowering should support indirect struct types. > > Fix

[clang-tools-extra] r261737 - [clang-tidy] Added a check for forward declaration in the potentially wrong namespace

2016-02-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Feb 24 07:35:32 2016 New Revision: 261737 URL: http://llvm.org/viewvc/llvm-project?rev=261737&view=rev Log: [clang-tidy] Added a check for forward declaration in the potentially wrong namespace Adds a new check "misc-forward-declaration-namespace". In check, A forward de

[clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Feb 24 07:36:34 2016 New Revision: 261738 URL: http://llvm.org/viewvc/llvm-project?rev=261738&view=rev Log: [clang-tidy] introduce modernize-deprecated-headers check Summary: This patch introduces the modernize-deprecated-headers check, which is supposed to replace depre

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261738: [clang-tidy] introduce modernize-deprecated-headers check (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D17484?vs=48905&id=48919#toc Repository: rL LLVM http://revie

Re: [PATCH] D17244: [clang-tidy] readability-ternary-operator new check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. Thanks for the review! I'll fix these issues as soon as I manage to get time for that! http://reviews.llvm.org/D17244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

Re: [PATCH] D15539: [libcxxabi] Reducing stack usage of test

2016-02-24 Thread Ben Craig via cfe-commits
bcraig added a comment. @mclow.lists ping http://reviews.llvm.org/D15539 ___ 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-02-24 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] D16544: [libcxx] Framework to allow testing of static libc++abi

2016-02-24 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] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-24 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 48924. hokein added a comment. Update: - Update test to apply multiple files and fixes. - Make it work with multiple files. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidy.h clang-tidy/ClangTidyDiagnosticConsumer.cp

Re: [PATCH] D15075: No error for conflict between inputs\outputs and clobber list

2016-02-24 Thread Ziv Izhar via cfe-commits
zizhar added a comment. You understood corectly :) After going a bit through the log, I think that there is no reason for clang to not detect it, probably the check was just forgotten. This patch is the check. "r" constraint means (taken from the spec:) A register operand is allowed provided

r261744 - [docs] Change non-c++ code blocks to 'text' format to fix a sphinx warning.

2016-02-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Feb 24 09:07:48 2016 New Revision: 261744 URL: http://llvm.org/viewvc/llvm-project?rev=261744&view=rev Log: [docs] Change non-c++ code blocks to 'text' format to fix a sphinx warning. Modified: cfe/trunk/docs/InternalsManual.rst Modified: cfe/trunk/docs/InternalsManu

Re: [PATCH] D15883: Add ARM EHABI-related constants to unwind.h.

2016-02-24 Thread Logan Chien via cfe-commits
logan added inline comments. Comment at: lib/Headers/unwind.h:61 @@ +60,3 @@ +#define _UNWIND_ARM_EHABI 0 +#endif + logan wrote: > compnerd wrote: > > logan wrote: > > > compnerd wrote: > > > > logan wrote: > > > > > Since this is `unwind.h`, I feel that we can ge

Re: [PATCH] D17385: clang-format: [JS] single quote double quoted strings.

2016-02-24 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 48945. mprobst marked an inline comment as done. mprobst added a comment. - Move code closer together by piping Replacements into the FormatTokenLexer. http://reviews.llvm.org/D17385 Files: lib/Format/Format.cpp unittests/Format/FormatTestJS.cpp Index:

Re: [PATCH] D17385: clang-format: [JS] single quote double quoted strings.

2016-02-24 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. Comment at: lib/Format/Format.cpp:1579 @@ +1578,3 @@ + // The width of the extra \ escapes is taken into account in getNextToken. + void requoteJSStringLiterals(tooling::Replacements &Replaces, + FormatToken

Re: [PATCH] D17385: clang-format: [JS] single quote double quoted strings.

2016-02-24 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 48946. mprobst marked an inline comment as done. mprobst added a comment. - Move code closer together by piping Replacements into the FormatTokenLexer. - remove sstream import http://reviews.llvm.org/D17385 Files: lib/Format/Format.cpp unittests/Format/

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 48940. Alexander_Droste added a comment. Changes: - remove `if (VariableName.size() && VariableName.back() == '\'')` check - call `getVariableName` for index if Region is no `ConcreteInt` Hi Gábor, sorry about the delay! Here's the updated patch. Is

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
On 24/02/16 02:05, Richard Smith wrote: Calling getMostRecentDecl seems like a slightly fragile way to avoid iterator invalidation here. Instead... @@ -214,6 +212,19 @@ namespace clang { unsigned I = Record.size(); Record.push_back(0); + auto &Specializations = Common->Spe

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In http://reviews.llvm.org/D16044#360737, @Alexander_Droste wrote: > Hi Gábor, > Is it really possible to reduce string copying in this case, with the help > of `llvm::Twine`? > The problem with `llvm::Twine` seems to me that it cannot be modified after > initialisa

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 48949. Alexander_Droste added a comment. - Changed `idx = R->getVariableName();` to `idx = ER->getVariableName();` as it better describes what is happening on a semantic level. http://reviews.llvm.org/D16044 Files: include/clang/StaticAnalyzer

Re: r261717 - Default vaarg lowering should support indirect struct types.

2016-02-24 Thread Hans Wennborg via cfe-commits
On Wed, Feb 24, 2016 at 5:11 AM, Joerg Sonnenberger via cfe-commits wrote: > On Wed, Feb 24, 2016 at 03:03:32AM -, James Y Knight via cfe-commits > wrote: >> Author: jyknight >> Date: Tue Feb 23 20:59:33 2016 >> New Revision: 261717 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=261717&vi

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Gábor Horváth via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/MemRegion.cpp:636 @@ +635,3 @@ +std::string MemRegion::getVariableName() const { + std::string VariableName{""}; + std::string ArrayIndices{""}; Small nit, I prefer to call the default construc

r261751 - [WinEH] Make sure terminate handlers have funclet operands

2016-02-24 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Feb 24 11:02:45 2016 New Revision: 261751 URL: http://llvm.org/viewvc/llvm-project?rev=261751&view=rev Log: [WinEH] Make sure terminate handlers have funclet operands Calls to the terminate handler must be annotated within the exception region they are within. Modified

Re: [PATCH] D15883: Add ARM EHABI-related constants to unwind.h.

2016-02-24 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: lib/Headers/unwind.h:61 @@ +60,3 @@ +#define _UNWIND_ARM_EHABI 0 +#endif + logan wrote: > logan wrote: > > compnerd wrote: > > > logan wrote: > > > > compnerd wrote: > > > > > logan wrote: > > > > > > Since this is `unwi

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 48953. Alexander_Droste added a comment. - remove string idx variable -> remove string copy assignments - use Twine to reduce temporary string objects, built during concatenation Is `ArrayIndices = llvm::Twine(ArrayIndices + "]" + intValAsString.str(

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. Since we went with the twine solution, I think we can get rid of the reverse stuff. Note that: Twine should be used like: (Twine(A) + B + C).str() So the operator+ has twine as one of the operands. Once these are fixed, it looks good to me. Do you have commit access o

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Gábor Horváth via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/MemRegion.cpp:672 @@ +671,3 @@ +// Combine variable name with indices. +VariableName.insert(VariableName.size() - 1, ArrayIndices); + } nit: this is in fact an append. It is cleaner inst

Re: [PATCH] D15829: [PGO] Clang Option that enables IR level PGO instrumentation

2016-02-24 Thread David Li via cfe-commits
davidxl added a comment. Looks good to me -- and it makes the profile-gen and profile-use's cc1 option handling consistent. Please check with Sean or Justin just in case before proceeding. http://reviews.llvm.org/D15829 ___ cfe-commits mailing li

r261755 - [CLANG] [AVX512] [BUILTIN] Adding PSHUF{L|H}W{128|256|512} builtin to clang .

2016-02-24 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Wed Feb 24 11:39:35 2016 New Revision: 261755 URL: http://llvm.org/viewvc/llvm-project?rev=261755&view=rev Log: [CLANG] [AVX512] [BUILTIN] Adding PSHUF{L|H}W{128|256|512} builtin to clang . Differential Revision: http://reviews.llvm.org/D17539 Modified: cfe/trunk/inclu

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

2016-02-24 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/AttrDocs.td:1572 @@ +1571,3 @@ +The __read_only, __write_only, __read_write, read_only, write_only and +read_write names are reserved for use as access qualifiers and shall not be +used otherwise. An

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

2016-02-24 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Yes, I think it deserves clarification. Could you submit a bug to Khronos then? http://reviews.llvm.org/D17438 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

r261756 - Objective-C: Add a size field to non-fragile category metadata.

2016-02-24 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Feb 24 11:49:50 2016 New Revision: 261756 URL: http://llvm.org/viewvc/llvm-project?rev=261756&view=rev Log: Objective-C: Add a size field to non-fragile category metadata. This is mainly for extensibility. Note that fragile category metadata, metadata for classes and protoc

Re: [PATCH] D16044: getVariableName() for MemRegion

2016-02-24 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 48959. Alexander_Droste added a comment. - removed `reverse` - fixed twine usage I think `VariableName.insert(VariableName.size() - 1, ArrayIndices);` is needed here. varName, indices -> 'varname[...]' If append would be used, the second single qu

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

2016-02-24 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/storageclass-cl20.cl:11 @@ -10,3 +10,3 @@ static global int S2 = 5; - static private int S3 = 5;// expected-error{{program scope variable must reside in global or constant address space}} + static private int S3 =

Re: [PATCH] SemaCXX: Support templates in availability attributes

2016-02-24 Thread Aaron Ballman via cfe-commits
On Tue, Feb 23, 2016 at 6:39 PM, Duncan P. N. Exon Smith wrote: > >> On 2016-Feb-23, at 11:18, Aaron Ballman wrote: >> >> On Tue, Feb 23, 2016 at 1:52 PM, Manman Ren wrote: >>> This patch looks good to me. But I am not sure if Aaron has any comment. >>> >>> On Feb 22, 2016, at 6:19 PM, Duncan P.

r261758 - AArch64: fix Cyclone CPU features list.

2016-02-24 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Wed Feb 24 11:57:48 2016 New Revision: 261758 URL: http://llvm.org/viewvc/llvm-project?rev=261758&view=rev Log: AArch64: fix Cyclone CPU features list. It turns out we don't have CRC after all. Who knew? Modified: cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/test/Pre

Re: [PATCH] D17561: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-24 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: lib/Headers/cuda_builtin_vars.h:72 @@ -66,1 +71,3 @@ + // uint3). This function is defined after we pull in vector_types.h. + __attribute__((device)) operator uint3() const; private: Considering that built-in variables ar

[PATCH] D17575: Determine if there's a getDecl member function using less hacks

2016-02-24 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: sbenza, klimek. aaron.ballman added a subscriber: cfe-commits. Herald added a subscriber: klimek. ASTMatchersInternal uses a custom type trait to determine the presence or absence of a getDecl member function. While the current i

r261762 - Fix typo in test/CodeGen/object-size.c CHECK line.

2016-02-24 Thread Bob Wilson via cfe-commits
Author: bwilson Date: Wed Feb 24 12:38:35 2016 New Revision: 261762 URL: http://llvm.org/viewvc/llvm-project?rev=261762&view=rev Log: Fix typo in test/CodeGen/object-size.c CHECK line. Modified: cfe/trunk/test/CodeGen/object-size.c Modified: cfe/trunk/test/CodeGen/object-size.c URL: http://

Re: r261762 - Fix typo in test/CodeGen/object-size.c CHECK line.

2016-02-24 Thread Eric Christopher via cfe-commits
Nice catch. :) On Wed, Feb 24, 2016, 10:43 AM Bob Wilson via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bwilson > Date: Wed Feb 24 12:38:35 2016 > New Revision: 261762 > > URL: http://llvm.org/viewvc/llvm-project?rev=261762&view=rev > Log: > Fix typo in test/CodeGen/object-size.c

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

2016-02-24 Thread Nico Weber via cfe-commits
Thanks for patiently explaining this. The attached patch is your email in diff form. Does this look alright? Since you mention C++98: We emit this diagnostic in C++98 mode (before and after my change). The rule is new in C+++11, right? Should I add a check for CPlusPlus11 before emitting this diag

[PATCH] D17576: Fix assertion failure on MaybeODRUseExprs.

2016-02-24 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added reviewers: rsmith, EricWF, faisalv. manmanren added a subscriber: cfe-commits. In VisitNonTypeTemplateParamDecl, before SubstExpr with the default argument, we should create a ConstantEvaluated ExpressionEvaluationContext. Without this, it is possib

Re: [PATCH] D17561: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-24 Thread Justin Lebar via cfe-commits
jlebar added inline comments. Comment at: lib/Headers/cuda_builtin_vars.h:72 @@ -66,1 +71,3 @@ + // uint3). This function is defined after we pull in vector_types.h. + __attribute__((device)) operator uint3() const; private: tra wrote: > Considering that built

Re: [PATCH] D17562: [CUDA] Add hack so code which includes "curand.h" doesn't break.

2016-02-24 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. OK. http://reviews.llvm.org/D17562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17578: [OpenCL]Allowing explicit conversion of "0" to event_t type

2016-02-24 Thread Aaron En Ye Shi via cfe-commits
ashi1 created this revision. ashi1 added reviewers: Anastasia, pxli168, yaxunl. ashi1 added subscribers: pekka.jaaskelainen, tstellarAMD, cfe-commits. This patch will allow the cast of 0 to event_t type. http://reviews.llvm.org/D17578 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sem

Re: [PATCH] D17576: Fix assertion failure on MaybeODRUseExprs.

2016-02-24 Thread Faisal Vali via cfe-commits
faisalv added inline comments. Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:2114 @@ -2113,1 +2113,3 @@ +EnterExpressionEvaluationContext ConstantEvaluated(SemaRef, + Sema::ConstantEvaluated); ExprResult Value

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

2016-02-24 Thread Yaxun Liu via cfe-commits
yaxunl updated the summary for this revision. yaxunl removed a reviewer: pekka.jaaskelainen. yaxunl added a subscriber: pekka.jaaskelainen. yaxunl set the repository for this revision to rL LLVM. yaxunl updated this revision to Diff 48967. yaxunl marked 5 inline comments as done. yaxunl added a com

RE: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-02-24 Thread Romanova, Katya via cfe-commits
Hello, I don’t think it will too hard to convert C++ style doxygen comments into C style doxygen comments by writing a post-processing python script. However, at first we need to decide if we really want to do that. If so, we need to settle on the exact format. After that, I need to make sure t

r261767 - Add whole-program vtable optimization feature to Clang.

2016-02-24 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Feb 24 14:46:36 2016 New Revision: 261767 URL: http://llvm.org/viewvc/llvm-project?rev=261767&view=rev Log: Add whole-program vtable optimization feature to Clang. This patch introduces the -fwhole-program-vtables flag, which enables the whole-program vtable optimization fea

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

2016-02-24 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261767: Add whole-program vtable optimization feature to Clang. (authored by pcc). Changed prior to commit: http://reviews.llvm.org/D16821?vs=46697&id=48968#toc Repository: rL LLVM http://reviews.ll

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

2016-02-24 Thread Richard Smith via cfe-commits
On Wed, Feb 24, 2016 at 10:47 AM, Nico Weber wrote: > Thanks for patiently explaining this. The attached patch is your email in > diff form. Does this look alright? Yes, it looks great. Thanks for the excellent test cases. > Since you mention C++98: We emit this diagnostic in C++98 mode (before

r261770 - Fix rejects-valid caused by r261297.

2016-02-24 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Feb 24 14:58:14 2016 New Revision: 261770 URL: http://llvm.org/viewvc/llvm-project?rev=261770&view=rev Log: Fix rejects-valid caused by r261297. r261297 called hasUserProvidedDefaultConstructor() to check if defining a const object is ok. This is incorrect for this example

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

2016-02-24 Thread Nico Weber via cfe-commits
On Wed, Feb 24, 2016 at 3:53 PM, Richard Smith wrote: > On Wed, Feb 24, 2016 at 10:47 AM, Nico Weber wrote: > > Thanks for patiently explaining this. The attached patch is your email in > > diff form. Does this look alright? > > Yes, it looks great. Thanks for the excellent test cases. > r26177

Re: [PATCH] D17575: Determine if there's a getDecl member function using less hacks

2016-02-24 Thread Samuel Benzaquen via cfe-commits
sbenza added a comment. I assume you checked that the new trait works on MSVC. Aren't both the same type of expression SFINAE? Is somehow one supported but not the other? http://reviews.llvm.org/D17575 ___ cfe-commits mailing list cfe-commits@lists

Re: [PATCH] D17575: Determine if there's a getDecl member function using less hacks

2016-02-24 Thread Aaron Ballman via cfe-commits
On Wed, Feb 24, 2016 at 4:14 PM, Samuel Benzaquen via cfe-commits wrote: > sbenza added a comment. > > I assume you checked that the new trait works on MSVC. Yes. It's also used in ThreadSafety.cpp, so maybe at some point we may want to consider generalizing the trait. > Aren't both the same typ

Re: [clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Nico Weber via cfe-commits
This broke the Windows bot: http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10093/steps/build%20stage%201/logs/stdio FAILED: C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP /DWIN32 /D_WINDOWS /W4 -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd43

Re: [clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Alexander Kornienko via cfe-commits
Looking into this... On Wed, Feb 24, 2016 at 10:21 PM, Nico Weber wrote: > This broke the Windows bot: > http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/10093/steps/build%20stage%201/logs/stdio > > FAILED: C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP /DWIN32 > /D_WINDOW

[PATCH] D17581: [CUDA] disable attribute-based overloading for __global__ functions.

2016-02-24 Thread Artem Belevich via cfe-commits
tra created this revision. tra added a reviewer: jlebar. tra added a subscriber: cfe-commits. __global__ functions are present on both host and device side, so providing __host__ or __device__ overloads is not going to do anything useful. http://reviews.llvm.org/D17581 Files: lib/Sema/SemaOver

Re: [PATCH] D17216: Make test/Driver/output-file-cleanup.c hermetic.

2016-02-24 Thread Justin Lebar via cfe-commits
jlebar added a comment. Upon further consideration, I think I'm going to push this with post-submit review, as we know this test is quite broken, and I think this change is unlikely to make the situation worse. http://reviews.llvm.org/D17216 ___ c

Re: [PATCH] D17056: Mark all CUDA device-side function defs and decls as convergent.

2016-02-24 Thread Justin Lebar via cfe-commits
jlebar added a comment. Friendly ping -- are we happy with this? http://reviews.llvm.org/D17056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17217: Bail on compilation as soon as a job fails.

2016-02-24 Thread Justin Lebar via cfe-commits
jlebar added a comment. Upon further consideration, I'm going to push this with post-submit review -- the only difference from what echristo reviewed is an obvious change to output-file-cleanup.c. http://reviews.llvm.org/D17217 ___ cfe-commits mai

Re: [PATCH] D17561: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-24 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. OK. http://reviews.llvm.org/D17561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Richard Smith via cfe-commits
On Wed, Feb 24, 2016 at 8:10 AM, Vassil Vassilev wrote: > > On 24/02/16 02:05, Richard Smith wrote: >> >> Calling getMostRecentDecl seems like a slightly fragile way to avoid >> iterator invalidation here. Instead... >> >> @@ -214,6 +212,19 @@ namespace clang { >> unsigned I = Record.size(

r261774 - Bail on compilation as soon as a job fails.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:49:28 2016 New Revision: 261774 URL: http://llvm.org/viewvc/llvm-project?rev=261774&view=rev Log: Bail on compilation as soon as a job fails. Summary: (Re-land of r260448, which was reverted in r260522 due to a test failure in Driver/output-file-cleanup.c that o

r261775 - [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:49:30 2016 New Revision: 261775 URL: http://llvm.org/viewvc/llvm-project?rev=261775&view=rev Log: [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu. This makes the test less fragile to changes to cuda_builtin_vars.h. Test-only change. Modified:

r261776 - [CUDA] Add hack so code which includes "curand.h" doesn't break.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:49:31 2016 New Revision: 261776 URL: http://llvm.org/viewvc/llvm-project?rev=261776&view=rev Log: [CUDA] Add hack so code which includes "curand.h" doesn't break. Summary: curand.h includes curand_mtgp32_kernel.h. In host mode, this header redefines threadIdx a

r261773 - Make test/Driver/output-file-cleanup.c hermetic.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:49:26 2016 New Revision: 261773 URL: http://llvm.org/viewvc/llvm-project?rev=261773&view=rev Log: Make test/Driver/output-file-cleanup.c hermetic. Summary: It checks that certain files do and exist, so make sure that they don't exist at the beginning of the test

r261777 - [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:49:33 2016 New Revision: 261777 URL: http://llvm.org/viewvc/llvm-project?rev=261777&view=rev Log: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3. Summary: This lets you write, e.g. uint3 a = threadIdx; uint

Re: [PATCH] D17562: [CUDA] Add hack so code which includes "curand.h" doesn't break.

2016-02-24 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261776: [CUDA] Add hack so code which includes "curand.h" doesn't break. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D17562?vs=48885&id=48977#toc Repository: rL LLVM http:

Re: [PATCH] D17216: Make test/Driver/output-file-cleanup.c hermetic.

2016-02-24 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261773: Make test/Driver/output-file-cleanup.c hermetic. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D17216?vs=47857&id=48975#toc Repository: rL LLVM http://reviews.llvm.o

Re: [PATCH] D17217: Bail on compilation as soon as a job fails.

2016-02-24 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261774: Bail on compilation as soon as a job fails. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D17217?vs=47858&id=48976#toc Repository: rL LLVM http://reviews.llvm.org/D1

Re: [PATCH] D17561: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and blockDim to uint3 and dim3.

2016-02-24 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261777: [CUDA] Add conversion operators for threadIdx, blockIdx, gridDim, and… (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D17561?vs=48884&id=48978#toc Repository: rL LLVM

Re: [PATCH] D17056: Mark all CUDA device-side function defs and decls as convergent.

2016-02-24 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D17056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

Re: [PATCH] D17056: Mark all CUDA device-side function defs and decls as convergent.

2016-02-24 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261779: [CUDA] Mark all CUDA device-side function defs, decls, and calls as convergent. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D17056?vs=48261&id=48979#toc Repository:

r261779 - [CUDA] Mark all CUDA device-side function defs, decls, and calls as convergent.

2016-02-24 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Wed Feb 24 15:55:11 2016 New Revision: 261779 URL: http://llvm.org/viewvc/llvm-project?rev=261779&view=rev Log: [CUDA] Mark all CUDA device-side function defs, decls, and calls as convergent. Summary: This is important for e.g. the following case: void sync() { __syncthrea

r261778 - [CUDA] do not allow attribute-based overloading for __global__ functions.

2016-02-24 Thread Artem Belevich via cfe-commits
Author: tra Date: Wed Feb 24 15:54:45 2016 New Revision: 261778 URL: http://llvm.org/viewvc/llvm-project?rev=261778&view=rev Log: [CUDA] do not allow attribute-based overloading for __global__ functions. __global__ functions are present on both host and device side, so providing __host__ or __dev

r261780 - Don't convert a char to a const char *

2016-02-24 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Feb 24 15:55:58 2016 New Revision: 261780 URL: http://llvm.org/viewvc/llvm-project?rev=261780&view=rev Log: Don't convert a char to a const char * This fixes PR26728. Modified: cfe/trunk/lib/Lex/PPDirectives.cpp Modified: cfe/trunk/lib/Lex/PPDirectives.cpp URL: h

Re: [PATCH] D17576: Fix assertion failure on MaybeODRUseExprs.

2016-02-24 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaTemplateInstantiateDecl.cpp:2114 @@ -2113,1 +2113,3 @@ +EnterExpressionEvaluationContext ConstantEvaluated(SemaRef, +

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
On 24/02/16 22:50, Richard Smith wrote: On Wed, Feb 24, 2016 at 8:10 AM, Vassil Vassilev wrote: On 24/02/16 02:05, Richard Smith wrote: Calling getMostRecentDecl seems like a slightly fragile way to avoid iterator invalidation here. Instead... @@ -214,6 +212,19 @@ namespace clang { u

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-02-24 Thread Vassil Vassilev via cfe-commits
ping... On 07/01/16 08:09, Vassil Vassilev via cfe-commits wrote: Hi all, I am attaching a fix for https://llvm.org/bugs/show_bug.cgi?id=26014 To which type should I tie the canonical type of the unknown underlying type? Currently it is tied to its BaseType. Please review. --Vassil ___

Re: [PATCH] D17313: [CUDA] Annotate all calls in CUDA device mode as convergent.

2016-02-24 Thread Justin Lebar via cfe-commits
jlebar abandoned this revision. jlebar added a comment. Subsumed by http://reviews.llvm.org/D17056. http://reviews.llvm.org/D17313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r261781 - PR26237: Fix iterator invalidation bug that occurs if serializing

2016-02-24 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Feb 24 15:59:10 2016 New Revision: 261781 URL: http://llvm.org/viewvc/llvm-project?rev=261781&view=rev Log: PR26237: Fix iterator invalidation bug that occurs if serializing specializations of a template manages to trigger deserialization of more specializations of the sam

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Richard Smith via cfe-commits
On Wed, Feb 24, 2016 at 2:01 PM, Vassil Vassilev wrote: > On 24/02/16 22:50, Richard Smith wrote: >> >> On Wed, Feb 24, 2016 at 8:10 AM, Vassil Vassilev >> wrote: >>> >>> On 24/02/16 02:05, Richard Smith wrote: Calling getMostRecentDecl seems like a slightly fragile way to avoid it

Re: [PATCH][modules][PR26237]

2016-02-24 Thread Vassil Vassilev via cfe-commits
On 24/02/16 23:03, Richard Smith wrote: On Wed, Feb 24, 2016 at 2:01 PM, Vassil Vassilev wrote: On 24/02/16 22:50, Richard Smith wrote: On Wed, Feb 24, 2016 at 8:10 AM, Vassil Vassilev wrote: On 24/02/16 02:05, Richard Smith wrote: Calling getMostRecentDecl seems like a slightly fragile way

Re: r261780 - Don't convert a char to a const char *

2016-02-24 Thread Benjamin Kramer via cfe-commits
Were you able to reproduce this build failure? ltrim has overloads for "char" and "StringRef", the former being very new. From the error message I suspect out of sync LLVM and Clang checkouts. On Wed, Feb 24, 2016 at 10:55 PM, David Majnemer via cfe-commits wrote: > Author: majnemer > Date: Wed F

r261782 - Fix build by using hasFlag instead of hasArg.

2016-02-24 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Feb 24 16:03:06 2016 New Revision: 261782 URL: http://llvm.org/viewvc/llvm-project?rev=261782&view=rev Log: Fix build by using hasFlag instead of hasArg. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/viewvc/llvm-

Re: [PATCH] Canonicalize UnaryTransformType types when they don't have a known underlying type

2016-02-24 Thread Richard Smith via cfe-commits
A UnaryTransformType should itself be a canonical type if its BaseType is dependent -- that is, its CanonicalType should be QualType(this, 0). It should definitely not be treated as being canonically equivalent to its BaseType. On Wed, Feb 24, 2016 at 2:03 PM, Vassil Vassilev wrote: > ping... > >

Re: r261780 - Don't convert a char to a const char *

2016-02-24 Thread David Majnemer via cfe-commits
Ah, good point. I assumed that the report was valid because they aren't showing up in the doxygen: http://llvm.org/docs/doxygen/html/classllvm_1_1StringRef.html I'll go ahead and revert. On Wed, Feb 24, 2016 at 2:06 PM, Benjamin Kramer wrote: > Were you able to reproduce this build failure? lt

r261784 - Revert "Don't convert a char to a const char *"

2016-02-24 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Feb 24 16:07:26 2016 New Revision: 261784 URL: http://llvm.org/viewvc/llvm-project?rev=261784&view=rev Log: Revert "Don't convert a char to a const char *" This reverts commit r261780. It turns out the original code was just fine. An overload for ltrim which takes cha

r261798 - Minor cleanup of Sema::CheckEnableIf. NFC.

2016-02-24 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Wed Feb 24 16:31:14 2016 New Revision: 261798 URL: http://llvm.org/viewvc/llvm-project?rev=261798&view=rev Log: Minor cleanup of Sema::CheckEnableIf. NFC. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp Modified: cfe/trunk/lib/Sema/SemaOverload.cpp URL: http://llvm.org/view

Re: [PATCH] D17576: Fix assertion failure on MaybeODRUseExprs.

2016-02-24 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261803: Fix assertion failure on MaybeODRUseExprs. (authored by mren). Changed prior to commit: http://reviews.llvm.org/D17576?vs=48963&id=48986#toc Repository: rL LLVM http://reviews.llvm.org/D1757

r261803 - Fix assertion failure on MaybeODRUseExprs.

2016-02-24 Thread Manman Ren via cfe-commits
Author: mren Date: Wed Feb 24 17:05:43 2016 New Revision: 261803 URL: http://llvm.org/viewvc/llvm-project?rev=261803&view=rev Log: Fix assertion failure on MaybeODRUseExprs. In VisitNonTypeTemplateParamDecl, before SubstExpr with the default argument, we should create a ConstantEvaluated Expressi

Re: [clang-tools-extra] r261738 - [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Alexander Kornienko via cfe-commits
I have a couple ideas, will try on the buildbot, since I don't have MSVC to try fixes locally. On Wed, Feb 24, 2016 at 10:27 PM, Alexander Kornienko wrote: > Looking into this... > > > On Wed, Feb 24, 2016 at 10:21 PM, Nico Weber wrote: > >> This broke the Windows bot: >> http://lab.llvm.org:80

[clang-tools-extra] r261806 - Trying to fix MSVC build

2016-02-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Feb 24 17:48:24 2016 New Revision: 261806 URL: http://llvm.org/viewvc/llvm-project?rev=261806&view=rev Log: Trying to fix MSVC build Modified: clang-tools-extra/trunk/clang-tidy/modernize/DeprecatedHeadersCheck.cpp Modified: clang-tools-extra/trunk/clang-tidy/modern

  1   2   >