https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/67147
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -31,6 +31,33 @@ static_assert(b, "");
constexpr int one = true;
static_assert(one == 1, "");
+constexpr bool b2 = bool();
+static_assert(!b2, "");
+
+namespace ScalarTypes {
+ constexpr int ScalarInitInt = int();
+ static_assert(ScalarInitInt == 0, "");
+ constexpr
https://github.com/shafik approved this pull request.
https://github.com/llvm/llvm-project/pull/67147
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/67931
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
shafik wrote:
Thank you for improving the description. The description is usually what ends
up in the git log and so it is important for that summary there to be as
helpful and descriptive as possible.
https://github.com/llvm/llvm-project/pull/67751
https://github.com/shafik commented:
Why not wrap this into `-Wconversion` on clang as well?
https://github.com/llvm/llvm-project/pull/68276
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -3605,8 +3605,11 @@ static QualType
GetDeclSpecTypeForDeclarator(TypeProcessingState ,
Info = ();
} else {
// In C++14, generic lambdas allow 'auto' in their parameters.
-if (!SemaRef.getLangOpts().CPlusPlus14 || !Auto ||
-
shafik wrote:
> FWIW, I spoke offline with the original author of the PR and he said that
> he's fine with me picking up the changes and carrying the review forward.
>
> Because I don't know of any better way to commandeer a patch in GitHub, I'll
> probably grab the changes, get them into my
@@ -5536,10 +5538,24 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType,
const CGCallee
break;
}
}
+
+if (const auto *MD =
+dyn_cast_if_present(OCE->getCalleeDecl());
+MD && MD->isStatic())
+ StaticOperator = true;
}
-
@@ -7806,7 +7806,8 @@ class ExprEvaluatorBase
// Overloaded operator calls to member functions are represented as
normal
// calls with '*this' as the first argument.
const CXXMethodDecl *MD = dyn_cast(FD);
- if (MD &&
@@ -5536,10 +5538,24 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType,
const CGCallee
break;
}
}
+
+if (const auto *MD =
+dyn_cast_if_present(OCE->getCalleeDecl());
+MD && MD->isStatic())
+ StaticOperator = true;
}
-
https://github.com/shafik approved this pull request.
LGTM, just fill out the description with some more details so folks reading git
log will have more context,
https://github.com/llvm/llvm-project/pull/67147
___
cfe-commits mailing list
@@ -1629,6 +1629,8 @@ def IFunc : Attr, TargetSpecificAttr {
def Restrict : InheritableAttr {
let Spellings = [Declspec<"restrict">, GCC<"malloc">];
+ let Args = [IdentifierArgument<"Deallocator", /*opt*/ 1>,
+ ParamIdxArgument<"DeallocatorPtrArgIndex",
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/68059
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik commented:
Just a nit
https://github.com/llvm/llvm-project/pull/68059
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1629,6 +1629,8 @@ def IFunc : Attr, TargetSpecificAttr {
def Restrict : InheritableAttr {
let Spellings = [Declspec<"restrict">, GCC<"malloc">];
+ let Args = [IdentifierArgument<"Deallocator", /*opt*/ 1>,
+ ParamIdxArgument<"DeallocatorPtrArgIndex",
@@ -15090,8 +15093,9 @@ static void CheckImplicitConversion(Sema , Expr *E,
QualType T,
if (SourceBT && TargetBT && SourceBT->isIntegerType() &&
TargetBT->isFloatingType() && !IsListInit) {
// Determine the number of precision bits in the source integer type.
-
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/66222
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik approved this pull request.
LGTM after fixing nits.
https://github.com/llvm/llvm-project/pull/66222
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -14143,8 +14145,9 @@ static void AnalyzeComparison(Sema , BinaryOperator
*E) {
}
// Otherwise, calculate the effective range of the signed operand.
- IntRange signedRange = GetExprRange(
- S.Context, signedOperand, S.isConstantEvaluated(), /*Approximate*/ true);
https://github.com/shafik approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/68090
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
shafik wrote:
I think you should also add `[ASTMatcher]` to the subject after `[Clang]` at
least that is what past PRs seem to do.
https://github.com/llvm/llvm-project/pull/67939
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
shafik wrote:
I would hate to lose the non-diagram part of this documentation. Do the
criticism mainly apply to the diagrams and the text documentation is ok for
most?
https://github.com/llvm/llvm-project/pull/66436
___
cfe-commits mailing list
Author: Shafik Yaghmour
Date: 2023-08-25T13:54:50-07:00
New Revision: 33b6b674620d77e615d569f504b306aac528bab7
URL:
https://github.com/llvm/llvm-project/commit/33b6b674620d77e615d569f504b306aac528bab7
DIFF:
Author: Shafik Yaghmour
Date: 2022-04-21T14:58:50-07:00
New Revision: 5ff992bca208a0e37ca6338fc735aec6aa848b72
URL:
https://github.com/llvm/llvm-project/commit/5ff992bca208a0e37ca6338fc735aec6aa848b72
DIFF:
Author: Shafik Yaghmour
Date: 2022-07-25T16:01:01-07:00
New Revision: aea82d4551139ded0290afab739f0b367d055628
URL:
https://github.com/llvm/llvm-project/commit/aea82d4551139ded0290afab739f0b367d055628
DIFF:
Author: Shafik Yaghmour
Date: 2022-07-14T16:09:52-07:00
New Revision: 80dec2ecfffe30f86ecfeec8f553b16bb992c48b
URL:
https://github.com/llvm/llvm-project/commit/80dec2ecfffe30f86ecfeec8f553b16bb992c48b
DIFF:
Author: Shafik Yaghmour
Date: 2022-07-29T19:17:42-07:00
New Revision: a0d61051628825e2f394240dc442ad5d81fa78bc
URL:
https://github.com/llvm/llvm-project/commit/a0d61051628825e2f394240dc442ad5d81fa78bc
DIFF:
Author: Shafik Yaghmour
Date: 2022-07-27T15:31:41-07:00
New Revision: 28cd7f86ed0e94ea3ae56a49ba85f0ccb7b51dd4
URL:
https://github.com/llvm/llvm-project/commit/28cd7f86ed0e94ea3ae56a49ba85f0ccb7b51dd4
DIFF:
Author: Shafik Yaghmour
Date: 2022-07-27T14:59:35-07:00
New Revision: a3710589f285de0bb22ff92b1fc24df9411e986f
URL:
https://github.com/llvm/llvm-project/commit/a3710589f285de0bb22ff92b1fc24df9411e986f
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-26T09:40:43-07:00
New Revision: 21dfe482e13e3b64801372f8b3db75eeb85b3135
URL:
https://github.com/llvm/llvm-project/commit/21dfe482e13e3b64801372f8b3db75eeb85b3135
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-30T18:08:44-07:00
New Revision: b9f767884669db0b5a56d87b0e8733614d8f884d
URL:
https://github.com/llvm/llvm-project/commit/b9f767884669db0b5a56d87b0e8733614d8f884d
DIFF:
Author: Shafik Yaghmour
Date: 2022-09-02T18:59:15-07:00
New Revision: 9f6b3199d33c146937f29feb62e123f34138f770
URL:
https://github.com/llvm/llvm-project/commit/9f6b3199d33c146937f29feb62e123f34138f770
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-27T15:18:36-07:00
New Revision: aa7ce60536a642e825d26d89b4a4347a36b63360
URL:
https://github.com/llvm/llvm-project/commit/aa7ce60536a642e825d26d89b4a4347a36b63360
DIFF:
Author: Shafik Yaghmour
Date: 2022-09-18T11:54:32-07:00
New Revision: f8a37a6ce67470f9f6b3a4dacb65c637c2958b8d
URL:
https://github.com/llvm/llvm-project/commit/f8a37a6ce67470f9f6b3a4dacb65c637c2958b8d
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-10T11:12:01-07:00
New Revision: 4e458765aaef7988e687e190d865f331727825c0
URL:
https://github.com/llvm/llvm-project/commit/4e458765aaef7988e687e190d865f331727825c0
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-11T13:44:26-07:00
New Revision: 2608f553b8fd02bfd5a81d9e45406cee0c2dfe26
URL:
https://github.com/llvm/llvm-project/commit/2608f553b8fd02bfd5a81d9e45406cee0c2dfe26
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-11T15:34:58-07:00
New Revision: 106774515b77d55edeab6e80555c410efc1f586a
URL:
https://github.com/llvm/llvm-project/commit/106774515b77d55edeab6e80555c410efc1f586a
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-17T14:14:00-07:00
New Revision: 8de51375f12d91675a18d17f262276e65f43fbe0
URL:
https://github.com/llvm/llvm-project/commit/8de51375f12d91675a18d17f262276e65f43fbe0
DIFF:
Author: Shafik Yaghmour
Date: 2022-08-08T16:23:07-07:00
New Revision: cc104113ddecbdcec2cca848adbb6afa1214e9de
URL:
https://github.com/llvm/llvm-project/commit/cc104113ddecbdcec2cca848adbb6afa1214e9de
DIFF:
Author: Shafik Yaghmour
Date: 2023-01-12T08:04:04-08:00
New Revision: a0138390dd2ac2130c9f76e6778d6e45e4dc5526
URL:
https://github.com/llvm/llvm-project/commit/a0138390dd2ac2130c9f76e6778d6e45e4dc5526
DIFF:
Author: Shafik Yaghmour
Date: 2022-12-21T10:50:05-08:00
New Revision: 475cc44a2cba45c5449a323c6b331ddc593bd8de
URL:
https://github.com/llvm/llvm-project/commit/475cc44a2cba45c5449a323c6b331ddc593bd8de
DIFF:
Author: Shafik Yaghmour
Date: 2022-11-29T10:39:21-08:00
New Revision: 54be300f7e0bc4edaf54e9289b2380bd210a37bc
URL:
https://github.com/llvm/llvm-project/commit/54be300f7e0bc4edaf54e9289b2380bd210a37bc
DIFF:
Author: Shafik Yaghmour
Date: 2022-11-15T12:07:03-08:00
New Revision: 9332ddfba69c38f9ceef4175b042fba0bb8e67bb
URL:
https://github.com/llvm/llvm-project/commit/9332ddfba69c38f9ceef4175b042fba0bb8e67bb
DIFF:
Author: Shafik Yaghmour
Date: 2022-12-01T09:40:18-08:00
New Revision: ef10f81985f665c553c818e1c5962aebb8f36f0c
URL:
https://github.com/llvm/llvm-project/commit/ef10f81985f665c553c818e1c5962aebb8f36f0c
DIFF:
Author: Shafik Yaghmour
Date: 2023-01-25T10:49:04-08:00
New Revision: 6ec446ddcee33777a8420c227374f7b422a7df1b
URL:
https://github.com/llvm/llvm-project/commit/6ec446ddcee33777a8420c227374f7b422a7df1b
DIFF:
Author: Shafik Yaghmour
Date: 2023-01-30T13:28:29-08:00
New Revision: 2bd8aeea7e7d885fbf6c70c0e181b1e8e6b808a5
URL:
https://github.com/llvm/llvm-project/commit/2bd8aeea7e7d885fbf6c70c0e181b1e8e6b808a5
DIFF:
Author: Shafik Yaghmour
Date: 2023-01-31T09:35:12-08:00
New Revision: 67ee18cc7a308ae8418689c4f03a1be73b8b874a
URL:
https://github.com/llvm/llvm-project/commit/67ee18cc7a308ae8418689c4f03a1be73b8b874a
DIFF:
Author: Shafik Yaghmour
Date: 2023-03-14T16:37:58-07:00
New Revision: c41be8fc741dec82e6c628d0cad742285be293f6
URL:
https://github.com/llvm/llvm-project/commit/c41be8fc741dec82e6c628d0cad742285be293f6
DIFF:
Author: Shafik Yaghmour
Date: 2023-02-17T14:57:32-08:00
New Revision: d6d59e660bc75d14f423fb3817834f832bbf4543
URL:
https://github.com/llvm/llvm-project/commit/d6d59e660bc75d14f423fb3817834f832bbf4543
DIFF:
Author: Shafik Yaghmour
Date: 2023-04-14T15:01:00-07:00
New Revision: 6d0fab467efbc7ce92bd890d9618259c4995ddcc
URL:
https://github.com/llvm/llvm-project/commit/6d0fab467efbc7ce92bd890d9618259c4995ddcc
DIFF:
Author: Shafik Yaghmour
Date: 2023-03-30T13:37:21-07:00
New Revision: 20a3fb9740ddadc61fbc8bc76836935d1a408d83
URL:
https://github.com/llvm/llvm-project/commit/20a3fb9740ddadc61fbc8bc76836935d1a408d83
DIFF:
Author: Shafik Yaghmour
Date: 2023-04-07T08:58:39-07:00
New Revision: d89c6530fdb57da31f4750bf941a0e4a090c4474
URL:
https://github.com/llvm/llvm-project/commit/d89c6530fdb57da31f4750bf941a0e4a090c4474
DIFF:
Author: Shafik Yaghmour
Date: 2023-04-07T09:18:15-07:00
New Revision: f9b854bc8f0bfe2a38b00fab401bb1982eb8e61e
URL:
https://github.com/llvm/llvm-project/commit/f9b854bc8f0bfe2a38b00fab401bb1982eb8e61e
DIFF:
Author: Shafik Yaghmour
Date: 2023-04-06T14:40:39-07:00
New Revision: b206cde3504c0078469f02bd74aeb5eb5ab875f5
URL:
https://github.com/llvm/llvm-project/commit/b206cde3504c0078469f02bd74aeb5eb5ab875f5
DIFF:
Author: Shafik Yaghmour
Date: 2023-07-14T15:57:51-07:00
New Revision: c9ef33e1d8a8aeb68a18f24af6d9fc9ab4ecf257
URL:
https://github.com/llvm/llvm-project/commit/c9ef33e1d8a8aeb68a18f24af6d9fc9ab4ecf257
DIFF:
Author: Shafik Yaghmour
Date: 2023-05-25T09:50:56-07:00
New Revision: 2a23de01e51545d01055229baea4d4a296b65058
URL:
https://github.com/llvm/llvm-project/commit/2a23de01e51545d01055229baea4d4a296b65058
DIFF:
Author: Shafik Yaghmour
Date: 2023-06-08T13:53:33-07:00
New Revision: 086183c6c65fc8106b8cae99af95c4974b975f51
URL:
https://github.com/llvm/llvm-project/commit/086183c6c65fc8106b8cae99af95c4974b975f51
DIFF:
Author: Shafik Yaghmour
Date: 2023-07-28T15:21:57-07:00
New Revision: cc1b6668c57170cd440d321037ced89d6a61a9cb
URL:
https://github.com/llvm/llvm-project/commit/cc1b6668c57170cd440d321037ced89d6a61a9cb
DIFF:
Author: Shafik Yaghmour
Date: 2023-06-29T15:42:18-07:00
New Revision: d1fcce97a6af872e64b365d80d5b85eb94487dc8
URL:
https://github.com/llvm/llvm-project/commit/d1fcce97a6af872e64b365d80d5b85eb94487dc8
DIFF:
Author: Shafik Yaghmour
Date: 2023-05-08T11:14:33-07:00
New Revision: 96bc78631f16fe5ce2e7e6000b74d790b32f7a16
URL:
https://github.com/llvm/llvm-project/commit/96bc78631f16fe5ce2e7e6000b74d790b32f7a16
DIFF:
Author: Shafik Yaghmour
Date: 2023-05-04T11:07:16-07:00
New Revision: b4692f29263006c7ea519c7b11c9082384f0af53
URL:
https://github.com/llvm/llvm-project/commit/b4692f29263006c7ea519c7b11c9082384f0af53
DIFF:
Author: Shafik Yaghmour
Date: 2023-05-04T11:33:58-07:00
New Revision: 7887af027ee5eff27bbc953074726ab8d9d9f592
URL:
https://github.com/llvm/llvm-project/commit/7887af027ee5eff27bbc953074726ab8d9d9f592
DIFF:
@@ -11321,9 +11321,20 @@ Decl
*Sema::ActOnConversionDeclarator(CXXConversionDecl *Conversion) {
<< ClassType << ConvType;
}
- if (FunctionTemplateDecl *ConversionTemplate
-= Conversion->getDescribedFunctionTemplate())
+ if
@@ -39,7 +39,43 @@ namespace addressof {
struct U { int n : 5; } u;
int *pbf = __builtin_addressof(u.n); // expected-error {{address of
bit-field requested}}
- S *ptmp = __builtin_addressof(S{}); // expected-error {{taking the address
of a temporary}} expected-warning
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/78060
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik commented:
Just a quick question
https://github.com/llvm/llvm-project/pull/78060
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1600,12 +1600,25 @@ Sema::BuildCXXTypeConstructExpr(TypeSourceInfo *TInfo,
return ExprError(Diag(TyBeginLoc, diag::err_init_for_function_type)
<< Ty << FullRange);
- // C++17 [expr.type.conv]p2:
- // If the type is cv void and the
https://github.com/shafik commented:
Nit
https://github.com/llvm/llvm-project/pull/75937
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/75937
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -183,7 +184,7 @@ class ResultBuilder {
/// Overloaded C++ member functions found by SemaLookup.
/// Used to determine when one overload is dominated by another.
- llvm::DenseMap, ShadowMapEntry>
+ llvm::DenseMap, ShadowMapEntry>
shafik wrote:
https://github.com/shafik commented:
LGTM
https://github.com/llvm/llvm-project/pull/81658
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik created
https://github.com/llvm/llvm-project/pull/82407
In 765d8a192180f8f33618087b15c022fe758044af we impelemented a fix for incorrect
deletion of default constructors in unions. This fix missed a case and so this
PR will extend the fix to cover the additional case.
@@ -9442,9 +9442,21 @@ bool
SpecialMemberDeletionInfo::shouldDeleteForSubobjectCall(
int DiagKind = -1;
- if (SMOR.getKind() == Sema::SpecialMemberOverloadResult::NoMemberOrDeleted)
-DiagKind = !Decl ? 0 : 1;
- else if (SMOR.getKind() ==
https://github.com/shafik updated
https://github.com/llvm/llvm-project/pull/82407
>From 5fcaeaddccc0f7e370bf7bebce113d8d52e1b1bd Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour
Date: Tue, 20 Feb 2024 11:22:39 -0800
Subject: [PATCH] [Clang][Sema] Fix incorrect rejection default construction of
https://github.com/shafik approved this pull request.
LGTM
https://github.com/llvm/llvm-project/pull/82234
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shafik approved this pull request.
LGTM, thanks for submitting a fix.
https://github.com/llvm/llvm-project/pull/82251
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -2343,17 +2349,9 @@ static bool CheckConstexprFunctionBody(Sema ,
const FunctionDecl *Dcl,
// - if the class is a union having variant members, exactly one of them
// shall be initialized;
shafik wrote:
We need add a reference to
@@ -2471,6 +2480,23 @@ static bool CheckConstexprFunctionBody(Sema ,
const FunctionDecl *Dcl,
return true;
}
+static bool
+checkUnionConstructorIntializer(Sema , const FunctionDecl *Dcl,
+const CXXConstructorDecl *Constructor,
+
@@ -2471,6 +2480,23 @@ static bool CheckConstexprFunctionBody(Sema ,
const FunctionDecl *Dcl,
return true;
}
+static bool
+checkUnionConstructorIntializer(Sema , const FunctionDecl *Dcl,
shafik wrote:
I really don't like this name, I don't feel like it
@@ -2471,6 +2480,23 @@ static bool CheckConstexprFunctionBody(Sema ,
const FunctionDecl *Dcl,
return true;
}
+static bool
+checkUnionConstructorIntializer(Sema , const FunctionDecl *Dcl,
+const CXXConstructorDecl *Constructor,
+
@@ -2393,6 +2391,17 @@ static bool CheckConstexprFunctionBody(Sema ,
const FunctionDecl *Dcl,
Kind))
return false;
}
+} else if (!Constructor->isDelegatingConstructor()) {
shafik wrote:
Can
https://github.com/shafik updated
https://github.com/llvm/llvm-project/pull/82407
>From 5fcaeaddccc0f7e370bf7bebce113d8d52e1b1bd Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour
Date: Tue, 20 Feb 2024 11:22:39 -0800
Subject: [PATCH] [Clang][Sema] Fix incorrect rejection default construction of
https://github.com/shafik updated
https://github.com/llvm/llvm-project/pull/82407
>From 5fcaeaddccc0f7e370bf7bebce113d8d52e1b1bd Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour
Date: Tue, 20 Feb 2024 11:22:39 -0800
Subject: [PATCH] [Clang][Sema] Fix incorrect rejection default construction of
https://github.com/shafik updated
https://github.com/llvm/llvm-project/pull/82407
>From 5fcaeaddccc0f7e370bf7bebce113d8d52e1b1bd Mon Sep 17 00:00:00 2001
From: Shafik Yaghmour
Date: Tue, 20 Feb 2024 11:22:39 -0800
Subject: [PATCH] [Clang][Sema] Fix incorrect rejection default construction of
@@ -1760,6 +1760,21 @@ class BuiltinTemplateDecl : public TemplateDecl {
BuiltinTemplateKind getBuiltinTemplateKind() const { return BTK; }
};
+/// Provides information about an explicit instantiation of a variable or class
+/// template.
+struct ExplicitInstantiationInfo {
@@ -1760,6 +1760,21 @@ class BuiltinTemplateDecl : public TemplateDecl {
BuiltinTemplateKind getBuiltinTemplateKind() const { return BTK; }
};
+/// Provides information about an explicit instantiation of a variable or class
+/// template.
+struct ExplicitInstantiationInfo {
https://github.com/shafik commented:
Thank you the PR.
Your summary is blank but should describe the problem you are trying to solve,
how the PR solves it and should at the end link to any llvm issues this relates
to.
Having solid summaries is critical since this is normally what one sees
https://github.com/shafik commented:
I think this makes sense but I would like @cor3ntin to approve.
https://github.com/llvm/llvm-project/pull/80656
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/80656
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -168,3 +168,30 @@ auto lambda4 = [] requires(sizeof(char) == 1){}; //
expected-error {{expected bo
#if __cplusplus <= 202002L
// expected-warning@-2{{lambda without a parameter clause is a C++23
extension}}
#endif
+
+namespace GH78524 {
+
+template T Foo;
+
+template
@@ -1385,6 +1385,11 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
Diag(RAngleLoc,
diag::err_lambda_template_parameter_list_empty);
} else {
+ // We increase the template depth before recursing into a
requires-clause.
+ // The
shafik wrote:
@AaronBallman since this involves compound literals a C-ism, I would like you
to review this as well.
https://github.com/llvm/llvm-project/pull/80519
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -std=c++14 -verify -fcxx-exceptions
-Werror=c++14-extensions -Werror=c++20-extensions %s
+
+template struct C {
+union {
+ int i;
+};
+constexpr C() {} // expected-error {{constexpr union constructor that does
not
@@ -224,6 +224,9 @@ struct TemplateInit {
};
// FIXME: This is ill-formed (no diagnostic required). We should diagnose it.
constexpr TemplateInit() {} // desired-error {{must initialize all members}}
+#ifndef CXX2A
shafik wrote:
We normally do this
shafik wrote:
Can we please have a more detailed summary for this PR? We rely on more
detailed summaries in git logs.
https://github.com/llvm/llvm-project/pull/75590
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
shafik wrote:
Can we please add more detailed summaries, we want the git log to be sufficient
for triaging various issues without having to dig into each commit individually.
https://github.com/llvm/llvm-project/pull/75569
___
cfe-commits mailing
@@ -2061,13 +2070,13 @@ DeclResult Sema::CheckClassTemplate(
if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
CheckTemplateParameterList(
TemplateParams,
- PrevClassTemplate
- ?
@@ -283,6 +283,28 @@ bool ByteCodeExprGen::VisitCastExpr(const
CastExpr *CE) {
case CK_ToVoid:
return discard(SubExpr);
+ case CK_IntegralRealToComplex:
+ case CK_FloatingRealToComplex: {
+// We're creating a complex value here, so we need to
+// allocate
shafik wrote:
Can you please update your summary to explain the problem and how the fix
addresses the problem.
This is usually what goes into the git log and we want those to be as
descriptive as possible but also it help code reviewers to understand what they
are reviewing quicker.
201 - 300 of 625 matches
Mail list logo