@@ -832,10 +832,13 @@ StmtResult Parser::ParseCaseStatement(ParsedStmtContext
StmtCtx,
<< "'case'" << tok::colon
<< FixItHint::CreateReplacement(ColonLoc, ":");
} else {
- SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
+
@@ -832,10 +832,13 @@ StmtResult Parser::ParseCaseStatement(ParsedStmtContext
StmtCtx,
<< "'case'" << tok::colon
<< FixItHint::CreateReplacement(ColonLoc, ":");
} else {
- SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
+
rkirsling wrote:
(This seems to be an intermittent existing failure.)
https://github.com/llvm/llvm-project/pull/144069
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/rkirsling created
https://github.com/llvm/llvm-project/pull/144247
Adjustment to #143265; `because it not` should be `because it is not`.
>From 9bd2d17ddcbcdfaf4236ce4e4eadf0f5724a478e Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Sat, 14 Jun 2025 21:42:47 -0700
Subject
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144069
>From be121c500684e971ad696be8d53db732665d851c Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Fri, 13 Jun 2025 21:51:25 +0900
Subject: [PATCH 1/3] [Clang] Fix fix-it hint regression from #143460
`:` began
rkirsling wrote:
@AaronBallman Looks like this is the PR we're going with after all—could I have
you merge it for me? Thanks! :bow:
https://github.com/llvm/llvm-project/pull/144069
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.
rkirsling wrote:
Ohh, you beat me by a minute. 😆 I can close #144069 then.
https://github.com/llvm/llvm-project/pull/144068
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -832,10 +832,13 @@ StmtResult Parser::ParseCaseStatement(ParsedStmtContext
StmtCtx,
<< "'case'" << tok::colon
<< FixItHint::CreateReplacement(ColonLoc, ":");
} else {
- SourceLocation ExpectedLoc = PP.getLocForEndOfToken(PrevTokLocation);
+
https://github.com/rkirsling created
https://github.com/llvm/llvm-project/pull/144069
Following #143460, `:` began displaying as `colon` in the fix-it hint for a
`case` with a missing colon, as is visible in the description of (the separate
bug) #144052.
This PR simply reverts a line that did
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144069
>From be121c500684e971ad696be8d53db732665d851c Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Fri, 13 Jun 2025 21:51:25 +0900
Subject: [PATCH 1/2] [Clang] Fix fix-it hint regression from #143460
`:` began
rkirsling wrote:
I believe I'd need somebody to hit the merge button for me regardless, so I
think we can just merge whichever one and close the other. 😅 The two approaches
are mostly the same, I just figured that the surrounding code was consistent in
using a literal `":"`, while there doesn'
rkirsling wrote:
Oh oops! Thanks for the correction.
https://github.com/llvm/llvm-project/pull/144068
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -99,6 +127,14 @@ static_assert(std::is_trivially_copyable_v);
// expected-note@-1 {{'int &' is not trivially copyable}} \
// expected-note@-1 {{because it is a reference type}}
+static_assert(std::is_assignable::value);
+
+static_assert(std::is_assignable::value);
+// expec
https://github.com/rkirsling edited
https://github.com/llvm/llvm-project/pull/144836
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
rkirsling wrote:
@ojhunt Thanks! Could you hit the green button for me as well?
https://github.com/llvm/llvm-project/pull/144247
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
rkirsling wrote:
Seems like I don't have the ability to add reviewers yet; pinging @cor3ntin and
@AaronBallman for visibility.
https://github.com/llvm/llvm-project/pull/144836
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.
@@ -1767,7 +1767,8 @@ def note_unsatisfied_trait
: Note<"%0 is not %enum_select{"
"%TriviallyRelocatable{trivially relocatable}|"
"%Replaceable{replaceable}|"
- "%TriviallyCopyable{trivially copyable}"
+ "%TriviallyCopyable{triviall
https://github.com/rkirsling created
https://github.com/llvm/llvm-project/pull/144836
Part of the work for #141911.
Checking `is_assignable` boils down to checking the well-formedness of
`declval() = declval()`; this PR recycles logic from
EvaluateBinaryTypeTrait in order to produce the relev
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144836
>From 580750339643b627552a1c726909dd5d12f3c9af Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Wed, 18 Jun 2025 21:54:35 -0700
Subject: [PATCH] [Clang] Diagnose unsatisfied `std::is_assignable`.
Part of th
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144836
>From 580750339643b627552a1c726909dd5d12f3c9af Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Wed, 18 Jun 2025 21:54:35 -0700
Subject: [PATCH 1/3] [Clang] Diagnose unsatisfied `std::is_assignable`.
Part o
https://github.com/rkirsling updated
https://github.com/llvm/llvm-project/pull/144836
>From 580750339643b627552a1c726909dd5d12f3c9af Mon Sep 17 00:00:00 2001
From: Ross Kirsling
Date: Wed, 18 Jun 2025 21:54:35 -0700
Subject: [PATCH 1/2] [Clang] Diagnose unsatisfied `std::is_assignable`.
Part o
@@ -1725,14 +1725,15 @@ static bool EvaluateBinaryTypeTrait(Sema &Self,
TypeTrait BTT,
// Build expressions that emulate the effect of declval() and
// declval().
-if (LhsT->isObjectType() || LhsT->isFunctionType())
- LhsT = Self.Context.getRValueReferenceTyp
@@ -2285,6 +2286,31 @@ static void DiagnoseNonTriviallyCopyableReason(Sema
&SemaRef,
SemaRef.Diag(D->getLocation(), diag::note_defined_here) << D;
}
+static void DiagnoseNonAssignableReason(Sema &SemaRef, SourceLocation Loc,
+QualType
23 matches
Mail list logo