AndreyG wrote:
Done. I've added tests for `short` and `int` and the same for C++. Also I
noticed that in `trunk` there is the same issue in C++ for `short` (but not for
`char`):
https://github.com/llvm/llvm-project/issues/139467#issuecomment-3068027828. In
m
@@ -332,19 +376,42 @@ void UseEmplaceCheck::check(const
MatchFinder::MatchResult &Result) {
}();
assert(Call && "No call matched");
- assert((CtorCall || MakeCall) && "No push_back parameter matched");
+ assert((CtorCall || MakeCall || AggInitCall) &&
+ "No push
@@ -332,19 +376,42 @@ void UseEmplaceCheck::check(const
MatchFinder::MatchResult &Result) {
}();
assert(Call && "No call matched");
- assert((CtorCall || MakeCall) && "No push_back parameter matched");
+ assert((CtorCall || MakeCall || AggInitCall) &&
+ "No push
@@ -332,19 +376,42 @@ void UseEmplaceCheck::check(const
MatchFinder::MatchResult &Result) {
}();
assert(Call && "No call matched");
- assert((CtorCall || MakeCall) && "No push_back parameter matched");
+ assert((CtorCall || MakeCall || AggInitCall) &&
+ "No push
@@ -1434,3 +1436,33 @@ void testWithPointerTypes() {
// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: unnecessary temporary object
created while calling emplace
// CHECK-FIXES: sp->emplace();
}
+
+namespace GH1225740 {
+
+void CXX20testBracedInitTemporaries(){
+
--
@@ -1434,3 +1436,33 @@ void testWithPointerTypes() {
// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: unnecessary temporary object
created while calling emplace
// CHECK-FIXES: sp->emplace();
}
+
+namespace GH1225740 {
+
+void CXX20testBracedInitTemporaries(){
@@ -1434,3 +1436,33 @@ void testWithPointerTypes() {
// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: unnecessary temporary object
created while calling emplace
// CHECK-FIXES: sp->emplace();
}
+
+namespace GH1225740 {
+
+void CXX20testBracedInitTemporaries(){
+
+ std::vector
@@ -1434,3 +1436,33 @@ void testWithPointerTypes() {
// CHECK-MESSAGES: :[[@LINE-1]]:15: warning: unnecessary temporary object
created while calling emplace
// CHECK-FIXES: sp->emplace();
}
+
+namespace GH1225740 {
vbvictor wrote:
nit: After N years this
@@ -1,4 +1,12 @@
-// RUN: %check_clang_tidy %s modernize-use-emplace %t -- \
+// RUN: %check_clang_tidy %s -std=c++11 modernize-use-emplace %t -- \
vbvictor wrote:
```suggestion
// RUN: %check_clang_tidy %s -std=c++11,c++14,c++17 modernize-use-emplace %t --
\
``
@@ -1,4 +1,12 @@
-// RUN: %check_clang_tidy %s modernize-use-emplace %t -- \
+// RUN: %check_clang_tidy %s -std=c++11 modernize-use-emplace %t -- \
+// RUN: -config="{CheckOptions: \
+// RUN: {modernize-use-emplace.ContainersWithPushBack: \
+// RUN:':
@@ -332,19 +376,42 @@ void UseEmplaceCheck::check(const
MatchFinder::MatchResult &Result) {
}();
assert(Call && "No call matched");
- assert((CtorCall || MakeCall) && "No push_back parameter matched");
+ assert((CtorCall || MakeCall || AggInitCall) &&
+ "No push
https://github.com/AndreyG updated
https://github.com/llvm/llvm-project/pull/139474
>From b4814ba942266c5d4f4f070cbdef7b721738f33e Mon Sep 17 00:00:00 2001
From: Andrey Davydov
Date: Sun, 11 May 2025 22:23:38 +0200
Subject: [PATCH] [clang-tidy] false positive narrowing conversion
Let's conside
https://github.com/zyn0217 closed
https://github.com/llvm/llvm-project/pull/147675
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Younan Zhang
Date: 2025-07-14T14:45:23+08:00
New Revision: 040e7ad8281dcb52507070fbeec59421af78c5ca
URL:
https://github.com/llvm/llvm-project/commit/040e7ad8281dcb52507070fbeec59421af78c5ca
DIFF:
https://github.com/llvm/llvm-project/commit/040e7ad8281dcb52507070fbeec59421af78c5ca.diff
https://github.com/cor3ntin approved this pull request.
https://github.com/llvm/llvm-project/pull/147675
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1061,15 +1061,36 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef,
SmallVector DeduceResults(
F->getTemplateParameters()->size());
+ // We don't have to deduce against the alias template specialization,
+ // if the source template is a synthesized alias deduction
https://github.com/zyn0217 updated
https://github.com/llvm/llvm-project/pull/147675
>From f8b1894ad39560edb5bb0c14194a3a2d54a911ff Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Wed, 9 Jul 2025 16:29:45 +0800
Subject: [PATCH 1/4] [Clang] Consider default template arguments when
synthesizing
https://github.com/tgross35 edited
https://github.com/llvm/llvm-project/pull/76558
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/inbelic closed
https://github.com/llvm/llvm-project/pull/147832
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Finn Plummer
Date: 2025-07-13T22:22:46-07:00
New Revision: a6494a3bbf0620ec472d44db4e79c4c508618a61
URL:
https://github.com/llvm/llvm-project/commit/a6494a3bbf0620ec472d44db4e79c4c508618a61
DIFF:
https://github.com/llvm/llvm-project/commit/a6494a3bbf0620ec472d44db4e79c4c508618a61.diff
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff HEAD~1 HEAD --extensions c,cpp --
clang/test/Driver/print-supported-extensions-riscv.
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Jim Lin (tclin914)
Changes
The spec can be found at:
https://github.com/andestech/andes-v5-isa/releases/tag/ast-v5_4_0-release.
The extension includes only two instructions: one for converting from f32 to
f16, and another for converting f
https://github.com/tclin914 created
https://github.com/llvm/llvm-project/pull/148563
The spec can be found at:
https://github.com/andestech/andes-v5-isa/releases/tag/ast-v5_4_0-release.
The extension includes only two instructions: one for converting from f32 to
f16, and another for converting
Author: Jim Lin
Date: 2025-07-14T13:08:40+08:00
New Revision: 03c540e360ee5b9ca3e8df95e4a4b17c2bdb7e6f
URL:
https://github.com/llvm/llvm-project/commit/03c540e360ee5b9ca3e8df95e4a4b17c2bdb7e6f
DIFF:
https://github.com/llvm/llvm-project/commit/03c540e360ee5b9ca3e8df95e4a4b17c2bdb7e6f.diff
LOG:
owenca wrote:
IIRC, we had so many issues with ``AlignArrayOfStructures`` that at one point
we were discussing whether to disable it. Even after @mydeveloperday had
reduced its functionality to only handling rectangular arrays, we still had to
fix quite a few bugs including crashes before it w
https://github.com/inbelic updated
https://github.com/llvm/llvm-project/pull/147832
>From 02e7ad8a92e01b19d85f9bedf831aac161439ccb Mon Sep 17 00:00:00 2001
From: Finn Plummer
Date: Wed, 9 Jul 2025 21:21:53 +
Subject: [PATCH 1/3] [HLSL][RootSignature] Implement multiple diagnostics in
`Root
Author: Owen Pan
Date: 2025-07-13T20:35:45-07:00
New Revision: b79c763e91ac5e0991eea004b2c4117c8c766718
URL:
https://github.com/llvm/llvm-project/commit/b79c763e91ac5e0991eea004b2c4117c8c766718
DIFF:
https://github.com/llvm/llvm-project/commit/b79c763e91ac5e0991eea004b2c4117c8c766718.diff
LOG:
https://github.com/owenca closed
https://github.com/llvm/llvm-project/pull/148324
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -927,14 +927,12 @@ BreakableLineCommentSection::BreakableLineCommentSection(
}
if (Lines[i].size() != IndentPrefix.size()) {
-PrefixSpaceChange[i] = FirstLineSpaceChange;
+assert(Lines[i].size() > IndentPrefix.size());
-if (SpacesInPref
@@ -2341,8 +2341,15 @@ llvm::Value *CodeGenFunction::EmitDynamicCast(Address
ThisAddr,
} else if (IsExact) {
// If the destination type is effectively final, this pointer points to the
// right type if and only if its vptr has the right value.
-Value = CGM.getCXX
halbi2 wrote:
@Sirraide can you please examine and tell if this is what you meant? It is not
a template but it is moved into the base class `Expr` now.
https://github.com/llvm/llvm-project/pull/142541
___
cfe-commits mailing list
cfe-commits@lists.llv
https://github.com/halbi2 updated
https://github.com/llvm/llvm-project/pull/142541
>From c683b2aa84cba1b7057592e50c542cd5645adde5 Mon Sep 17 00:00:00 2001
From: halbi2
Date: Mon, 26 May 2025 15:35:13 -0400
Subject: [PATCH 1/5] [clang] [test] More coverage of [[nodiscard]]
---
clang/test/SemaC
MaskRay wrote:
This PR actually enables `-fasynchronous-unwind-tables` instead of
`-funwind-tables`.
`-fasynchronous-unwind-tables` and `-funwind-tables` control different boolean
values. When both are enabled, `-fasynchronous-unwind-tables` takes precedence.
https://github.com/llvm/llvm-pro
https://github.com/efriedma-quic closed
https://github.com/llvm/llvm-project/pull/148030
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Eli Friedman
Date: 2025-07-13T16:02:52-07:00
New Revision: cffe7cb745a1d18508b620c5e6d339fe51b8f9bf
URL:
https://github.com/llvm/llvm-project/commit/cffe7cb745a1d18508b620c5e6d339fe51b8f9bf
DIFF:
https://github.com/llvm/llvm-project/commit/cffe7cb745a1d18508b620c5e6d339fe51b8f9bf.diff
https://github.com/efriedma-quic updated
https://github.com/llvm/llvm-project/pull/148030
>From 5c279209bff277e008866e5d5e5192cf99cdcf8d Mon Sep 17 00:00:00 2001
From: Eli Friedman
Date: Thu, 10 Jul 2025 11:37:50 -0700
Subject: [PATCH 1/2] [clang] Fix isConstantInitializer handling of transpare
https://github.com/anoopkg6 updated
https://github.com/llvm/llvm-project/pull/139764
>From e0b15d83e04aebc8f7198af085c6fbe35f5ca7d4 Mon Sep 17 00:00:00 2001
From: anoopkg6
Date: Tue, 13 May 2025 18:33:15 +0200
Subject: [PATCH] Make -funwind-tables the default for SystemZ.
---
clang/lib/Driver
vbvictor wrote:
IMO, we should implicitly use `multiprocessing.cpu_count()` in `run-clang-tidy`
and `clang-tidy-diff` and use that number if user didn't specify `-j`
explicitly.
P.S. running lint over all clang-tidy is not so fast now:)
```bash
$ time run-clang-tidy -p build/ clang-tools-extra
vbvictor wrote:
> Clang-Tidy pull requests are usually small, so is `-j` really necessary?
I may say why not to use all cores when we can.
If PR only touches 1 file, `clang-tidy-diff` will not load other cores.
If PR touches multiple files, the user can have N times faster linting time,
which i
https://github.com/carlosgalvezp approved this pull request.
LGTM, thank you!
https://github.com/llvm/llvm-project/pull/148547
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vbvictor approved this pull request.
LGTM
As I understand now, `IgnoreImplicitAsWritten` does not skip `CXXConstructExpr`
and other similar nodes but `IgnoreUnlessSpelledInSource` does. To drill down
to the `StringLiteral` we need to use `IgnoreUnlessSpelledInSource`.
https:/
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Corentin Jabot (cor3ntin)
Changes
Fix a false positve warning which was introduced by #146234.
---
Full diff: https://github.com/llvm/llvm-project/pull/148552.diff
2 Files Affected:
- (modified) clang/lib/Sema/SemaDeclAttr.cpp (+1-1)
-
cor3ntin wrote:
I opened #148552
https://github.com/llvm/llvm-project/pull/146234
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/cor3ntin created
https://github.com/llvm/llvm-project/pull/148552
Fix a false positve warning which was introduced by #146234.
>From 97211f696179361a2d64d533aa727e3ec1d00b53 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Mon, 14 Jul 2025 00:13:52 +0200
Subject: [PATCH]
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Aaron Puchert (aaronpuchert)
Changes
The typical case for literals is an array of mutexes, where we want to
distinguish `mutex[0]` from `mutex[1]` and so on. Currently they're treated as
the same expression, in fact all literals are treat
llvmbot wrote:
@llvm/pr-subscribers-clang-analysis
Author: Aaron Puchert (aaronpuchert)
Changes
The typical case for literals is an array of mutexes, where we want to
distinguish `mutex[0]` from `mutex[1]` and so on. Currently they're treated as
the same expression, in fact all literals
https://github.com/aaronpuchert created
https://github.com/llvm/llvm-project/pull/148551
The typical case for literals is an array of mutexes, where we want to
distinguish `mutex[0]` from `mutex[1]` and so on. Currently they're treated as
the same expression, in fact all literals are treated a
Author: Aaron Puchert
Date: 2025-07-14T00:10:15+02:00
New Revision: bfb686bb5ba503e9386dc899e1ebbe2488e6a0a8
URL:
https://github.com/llvm/llvm-project/commit/bfb686bb5ba503e9386dc899e1ebbe2488e6a0a8
DIFF:
https://github.com/llvm/llvm-project/commit/bfb686bb5ba503e9386dc899e1ebbe2488e6a0a8.diff
EugeneZelenko wrote:
Clang-Tidy pull requests are usually small, so is `-j` really necessary?
https://github.com/llvm/llvm-project/pull/148547
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c
horenmar wrote:
It is not just templates. I just got warning on this code
```cpp
namespace {
[[noreturn]]
void this_throws() {
throw std::runtime_error("Some msg");
}
void this_doesnt_throw() {}
}
```
```
[92/468] Building CXX object
tests/ExtraTests/CMakeFiles/Prefixe
cor3ntin wrote:
This fails for templates https://compiler-explorer.com/z/x6a8G13Ms
Presumably because of #37650
@snarang181 @erichkeane
https://github.com/llvm/llvm-project/pull/146234
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https:/
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
@llvm/pr-subscribers-clang-tools-extra
Author: Baranov Victor (vbvictor)
Changes
Set `performance-move-const-arg.CheckTriviallyCopyableMove` option to `false`
because "trivially copyable" is too strict and give warning for e.g. `MixData`
cla
https://github.com/vbvictor created
https://github.com/llvm/llvm-project/pull/148549
Set `performance-move-const-arg.CheckTriviallyCopyableMove` option to `false`
because "trivially copyable" is too strict and give warning for e.g. `MixData`
class:
https://github.com/llvm/llvm-project/blob/1f
https://github.com/owenca closed
https://github.com/llvm/llvm-project/pull/148345
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Owen Pan
Date: 2025-07-13T14:29:51-07:00
New Revision: c384ec431dd7f771c9dd7c462cec5301ac0f32bb
URL:
https://github.com/llvm/llvm-project/commit/c384ec431dd7f771c9dd7c462cec5301ac0f32bb
DIFF:
https://github.com/llvm/llvm-project/commit/c384ec431dd7f771c9dd7c462cec5301ac0f32bb.diff
LOG:
aaronpuchert wrote:
> My software currently contains a nasty global recursive lock that we hope to
> (over a long period of time, likely years) convert to non-recursive.
>
> In the meantime, and during the refactor, it's helpful to be able to mark
> some functions as `EXCLUSIVE_LOCKS_REQUIRED(
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList
&DriverArgs,
addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include");
addExternCSystemInclude(DriverArgs, CC1Args, SysRoot +
"/usr/include/w32api");
}
+
+static bool getStaticPIE(con
https://github.com/vbvictor edited
https://github.com/llvm/llvm-project/pull/148547
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
aaronpuchert wrote:
> > On a related note, do we emit `-Wthread-safety-negative` for reentrant
> > locks? I don't remember that we carved out an exception for that, and we
> > probably should.
>
> We do - and it's deliberate on my part as I've been trying to indicate that
> there might be val
@@ -1504,6 +1506,7 @@ void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args,
switch (Type) {
case ToolChain::CST_Libcxx:
CmdArgs.push_back("-lc++");
+CmdArgs.push_back("-lc++abi");
mstorsjo wrote:
libc++abi and libc++ have circular dependencies -
https://github.com/vbvictor closed
https://github.com/llvm/llvm-project/pull/147142
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Baranov Victor
Date: 2025-07-13T23:44:30+03:00
New Revision: b56aebaf82f250ac35d18bcb4d4bf6806af91f49
URL:
https://github.com/llvm/llvm-project/commit/b56aebaf82f250ac35d18bcb4d4bf6806af91f49
DIFF:
https://github.com/llvm/llvm-project/commit/b56aebaf82f250ac35d18bcb4d4bf6806af91f49.diff
llvmbot wrote:
@llvm/pr-subscribers-clang-tools-extra
Author: Baranov Victor (vbvictor)
Changes
Follow up to https://github.com/llvm/llvm-project/pull/147793.
Originally suggested in
https://github.com/llvm/llvm-project/pull/147793#issuecomment-3059021433
---
Full diff: https://github.c
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
Author: Baranov Victor (vbvictor)
Changes
Follow up to https://github.com/llvm/llvm-project/pull/147793.
Originally suggested in
https://github.com/llvm/llvm-project/pull/147793#issuecomment-3059021433
---
Full diff: https://github.com/llvm
https://github.com/vbvictor created
https://github.com/llvm/llvm-project/pull/148547
Follow up to https://github.com/llvm/llvm-project/pull/147793.
Originally suggested in
https://github.com/llvm/llvm-project/pull/147793#issuecomment-3059021433
>From 9ee0621a78423ee97d2dcafb6b8de35783222b4e M
@@ -286,51 +291,76 @@ static bool checkRecordTypeForScopedCapability(Sema &S,
QualType Ty) {
return checkRecordDeclForAttr(RT->getDecl());
}
-static bool checkTypedefTypeForCapability(QualType Ty) {
+static std::optional checkTypedefTypeForCapability(QualType Ty) {
const
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/148531
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Kazu Hirata
Date: 2025-07-13T13:12:31-07:00
New Revision: 047552600bd9fac5a6ae63d6e4d44cc174cc3da6
URL:
https://github.com/llvm/llvm-project/commit/047552600bd9fac5a6ae63d6e4d44cc174cc3da6
DIFF:
https://github.com/llvm/llvm-project/commit/047552600bd9fac5a6ae63d6e4d44cc174cc3da6.diff
L
@@ -239,3 +239,51 @@ void set_volatile(V* v) {
// OGCG: [[TMP3:%.*]] = and i64 [[TMP2]], -1095216660481
// OGCG: [[TMP4:%.*]] = or i64 [[TMP3]], 12884901888
// OGCG: store volatile i64 [[TMP4]], ptr [[TMP1]], align 4
+
+void unOp(S* s) {
+ s->d++;
+}
+
+// CIR: cir.func
https://github.com/HazardyKnusperkeks approved this pull request.
https://github.com/llvm/llvm-project/pull/148324
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -927,14 +927,12 @@ BreakableLineCommentSection::BreakableLineCommentSection(
}
if (Lines[i].size() != IndentPrefix.size()) {
-PrefixSpaceChange[i] = FirstLineSpaceChange;
+assert(Lines[i].size() > IndentPrefix.size());
-if (SpacesInPref
https://github.com/HazardyKnusperkeks approved this pull request.
https://github.com/llvm/llvm-project/pull/148345
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/owenca edited
https://github.com/llvm/llvm-project/pull/148345
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/owenca updated
https://github.com/llvm/llvm-project/pull/148345
>From 3affefb96efe2d2955be66c247276b81d5d1d3a1 Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Sat, 12 Jul 2025 00:09:49 -0700
Subject: [PATCH 1/2] [clang-format] Add FunctionLikeMacros option
This allows RemovePa
llvmbot wrote:
@llvm/pr-subscribers-clangir
Author: Amr Hesham (AmrDeveloper)
Changes
Upstream, the basic structure of the LoweringPrepare pass as a prerequisite for
other ComplexType PR's
https://github.com/llvm/llvm-project/issues/141365
---
Full diff: https://github.com/llvm/llvm-pro
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Amr Hesham (AmrDeveloper)
Changes
Upstream, the basic structure of the LoweringPrepare pass as a prerequisite for
other ComplexType PR's
https://github.com/llvm/llvm-project/issues/141365
---
Full diff: https://github.com/llvm/llvm-proje
https://github.com/AmrDeveloper created
https://github.com/llvm/llvm-project/pull/148545
Upstream, the basic structure of the LoweringPrepare pass as a prerequisite for
other ComplexType PR's
https://github.com/llvm/llvm-project/issues/141365
>From 46579b053f7f0a95d11a06406b25e04a5ba3806f Mon
@@ -1775,6 +1775,44 @@ OpFoldResult cir::ComplexCreateOp::fold(FoldAdaptor
adaptor) {
return cir::ConstComplexAttr::get(realAttr, imagAttr);
}
+//===--===//
AmrDeveloper wrote:
I am not su
@@ -2786,6 +2786,11 @@ struct FormatStyle {
/// \version 3.7
std::vector ForEachMacros;
+ /// A vector of function-like macros whose invocations should be skipped by
+ /// ``RemoveParentheses``.
+ /// \version 21
+ std::vector FunctionLikeMacros;
Hazar
https://github.com/cor3ntin approved this pull request.
https://github.com/llvm/llvm-project/pull/148531
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -121,3 +121,100 @@ int AllComparisons() {
return 0;
}
+
+namespace PR127471 {
+int getSignedValue();
+unsigned int getUnsignedValue();
+
+void callExprTest() {
+
+if (getSignedValue() < getUnsignedValue())
+return;
+// CHECK-MESSAGES: :[[
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
@llvm/pr-subscribers-clang
Author: Owen Anderson (resistor)
Changes
This fixes an issue reported in
https://github.com/llvm/llvm-project/issues/148536 where
writes to flexible array members would sometimes be lost if the struct happened
t
https://github.com/resistor created
https://github.com/llvm/llvm-project/pull/148541
This fixes an issue reported in
https://github.com/llvm/llvm-project/issues/148536 where
writes to flexible array members would sometimes be lost if the struct happened
to hit
one of the cases where it would b
https://github.com/inbelic updated
https://github.com/llvm/llvm-project/pull/147832
>From 02e7ad8a92e01b19d85f9bedf831aac161439ccb Mon Sep 17 00:00:00 2001
From: Finn Plummer
Date: Wed, 9 Jul 2025 21:21:53 +
Subject: [PATCH 1/3] [HLSL][RootSignature] Implement multiple diagnostics in
`Root
https://github.com/inbelic closed
https://github.com/llvm/llvm-project/pull/145795
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Finn Plummer
Date: 2025-07-13T10:23:38-07:00
New Revision: 7ccdc595f8ecca0bc477c3e17683c52dca440845
URL:
https://github.com/llvm/llvm-project/commit/7ccdc595f8ecca0bc477c3e17683c52dca440845
DIFF:
https://github.com/llvm/llvm-project/commit/7ccdc595f8ecca0bc477c3e17683c52dca440845.diff
https://github.com/bv2k4 updated
https://github.com/llvm/llvm-project/pull/148537
>From 5da384406e5e5b0c435bba81ae3d93059560fb69 Mon Sep 17 00:00:00 2001
From: Bogdan Vetrenko
Date: Sun, 13 Jul 2025 19:37:43 +0300
Subject: [PATCH] [clang][NFC] Add header comment for OSLog.cpp
Signed-off-by: Bo
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Bogdan Vetrenko (bv2k4)
Changes
---
Full diff: https://github.com/llvm/llvm-project/pull/148537.diff
1 Files Affected:
- (modified) clang/lib/AST/OSLog.cpp (+15-3)
``diff
diff --git a/clang/lib/AST/OSLog.cpp b/clang/lib/AST/
https://github.com/bv2k4 created
https://github.com/llvm/llvm-project/pull/148537
None
>From f2b29fa668d3d07bb52f45590c833eeaa13f928b Mon Sep 17 00:00:00 2001
From: Bogdan Vetrenko
Date: Sun, 13 Jul 2025 19:37:43 +0300
Subject: [PATCH] [clang][NFC] Add header comment for OSLog.cpp
Signed-off-
vbvictor wrote:
Buildbot failure seems unrelated
https://github.com/llvm/llvm-project/pull/146830
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -927,14 +927,12 @@ BreakableLineCommentSection::BreakableLineCommentSection(
}
if (Lines[i].size() != IndentPrefix.size()) {
-PrefixSpaceChange[i] = FirstLineSpaceChange;
+assert(Lines[i].size() > IndentPrefix.size());
-if (SpacesInPref
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux`
running on `premerge-linux-1` while building `clang-tools-extra` at step 7
"test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/153/builds/379
github-actions[bot] wrote:
@localspook Congratulations on having your first Pull Request (PR) merged into
the LLVM Project!
Your changes will be combined with recent changes from other authors, then
tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a
problem with a bui
https://github.com/vbvictor closed
https://github.com/llvm/llvm-project/pull/146830
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Victor Chernyakin
Date: 2025-07-13T19:23:27+03:00
New Revision: 59b39c0031eded7c46e554b161382187cb2d0ca5
URL:
https://github.com/llvm/llvm-project/commit/59b39c0031eded7c46e554b161382187cb2d0ca5
DIFF:
https://github.com/llvm/llvm-project/commit/59b39c0031eded7c46e554b161382187cb2d0ca5.d
vbvictor wrote:
Analysis reviewers, could you please take a look at this
https://github.com/llvm/llvm-project/pull/144313#discussion_r2188585118. Your
opinion is highly appreciated!
https://github.com/llvm/llvm-project/pull/144313
___
cfe-commits mai
@@ -985,6 +985,20 @@ auto buildTransferMatchSwitch() {
isOptionalMemberCallWithNameMatcher(hasName("isNull")),
transferOptionalIsNullCall)
+ // NullableValue::makeValue, NullableValue::makeValueInplace
+ // Only NullableValue has these methods, bu
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Kazu Hirata (kazutakahirata)
Changes
Dtor is already of CXXDestructorDecl *.
---
Full diff: https://github.com/llvm/llvm-project/pull/148531.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaExprCXX.cpp (+1-2)
``diff
di
https://github.com/kazutakahirata created
https://github.com/llvm/llvm-project/pull/148531
Dtor is already of CXXDestructorDecl *.
>From eb40382c6e61acfb95afcf72a968dea1f4629b2a Mon Sep 17 00:00:00 2001
From: Kazu Hirata
Date: Sat, 12 Jul 2025 16:05:38 -0700
Subject: [PATCH] [Sema] Remove an
@@ -4433,8 +4433,12 @@ Sema::InstantiateClassMembers(SourceLocation
PointOfInstantiation,
// No need to instantiate in-class initializers during explicit
// instantiation.
if (Field->hasInClassInitializer() && TSK == TSK_ImplicitInstantiation) {
+// H
1 - 100 of 117 matches
Mail list logo