https://github.com/imdj ready_for_review
https://github.com/llvm/llvm-project/pull/132919
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/imdj updated https://github.com/llvm/llvm-project/pull/132919
>From 7905577616743f5158560a4b337148ef9cd25f1e Mon Sep 17 00:00:00 2001
From: Imad Aldij
Date: Tue, 25 Mar 2025 14:50:55 +0200
Subject: [PATCH 1/5] [Clang] Implement CWG2517 Useless restriction on use of
parameter
@@ -0,0 +1,58 @@
+//===--- MisleadingSetterOfReferenceCheck.cpp -
clang-tidy-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
https://github.com/Sirraide commented:
Just a minor comment
https://github.com/llvm/llvm-project/pull/132849
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -32,6 +32,26 @@ enum E2 : S::I { e };
#endif
} // namespace cwg2516
+namespace cwg2517 { // cwg2517: 23
+#if __cplusplus >= 202302L
+template
+concept LargeArray = requires (ArrayType my_array) {
+ requires my_array.size() > 5;
+};
cor3ntin wrote:
Do we h
@@ -37,13 +37,6 @@ namespace std_example {
static_assert(D);
template struct D_check {}; // expected-note{{because 'short' does not
satisfy 'D'}}
using dc1 = D_check; // expected-error{{constraints not satisfied for
class template 'D_check' [with T = short]}}
-
- templ
@@ -98,13 +98,6 @@ namespace std_example {
using c1c2 = C_check; // expected-error{{constraints not satisfied
for class template 'C_check' [with T = int *]}}
}
-// typeid() of an expression becomes potentially evaluated if the expression is
-// of a polymorphic type.
-class
@@ -32,6 +32,26 @@ enum E2 : S::I { e };
#endif
} // namespace cwg2516
+namespace cwg2517 { // cwg2517: 23
cor3ntin wrote:
Surely you mean 21?
https://github.com/llvm/llvm-project/pull/132919
___
cfe-commits mailin
https://github.com/cor3ntin edited
https://github.com/llvm/llvm-project/pull/132919
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -5229,10 +5229,23 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType,
S.CompareReferenceRelationship(DeclLoc, T1, T2, &RefConv);
auto SetAsReferenceBinding = [&](bool BindsDirectly) {
+// C++2c [over.ics.ref] p1:
offsetof wrote:
Right -
https://github.com/offsetof updated
https://github.com/llvm/llvm-project/pull/132778
>From 0aa1e7b83888bde7112327fba7db9bdcb71c43d9 Mon Sep 17 00:00:00 2001
From: offsetof
Date: Mon, 24 Mar 2025 16:28:28 +
Subject: [PATCH 1/2] [clang] Implement CWG2815
CWG2815 "Overload resolution for refe
https://github.com/dfukalov closed
https://github.com/llvm/llvm-project/pull/106810
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/imdj updated https://github.com/llvm/llvm-project/pull/132919
>From 7905577616743f5158560a4b337148ef9cd25f1e Mon Sep 17 00:00:00 2001
From: Imad Aldij
Date: Tue, 25 Mar 2025 14:50:55 +0200
Subject: [PATCH 1/5] [Clang] Implement CWG2517 Useless restriction on use of
parameter
https://github.com/mrkajetanp updated
https://github.com/llvm/llvm-project/pull/132801
>From d9b2a86d01688b69b8f116f6b52caeec8cd6e756 Mon Sep 17 00:00:00 2001
From: Kajetan Puchalski
Date: Mon, 24 Mar 2025 17:28:03 +
Subject: [PATCH 1/4] [flang] Add -f[no-]slp-vectorize flags
Add -f[no-]sl
@@ -1,10 +1,15 @@
! RUN: %flang -### -S -fslp-vectorize %s 2>&1 | FileCheck
-check-prefix=CHECK-SLP-VECTORIZE %s
! RUN: %flang -### -S -fno-slp-vectorize %s 2>&1 | FileCheck
-check-prefix=CHECK-NO-SLP-VECTORIZE %s
+! RUN: %flang -### -S -O0 %s 2>&1 | FileCheck
-check-prefix=C
https://github.com/Endilll commented:
CWG2273 says that its resolution fixed
[CWG2277](https://cplusplus.github.io/CWG/issues/2277.html). Can you look into
that, too? Maybe we can claim conformance with one more Core issue for free.
https://github.com/llvm/llvm-project/pull/132830
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/132830
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -450,6 +453,116 @@ class StmtComparer {
};
} // namespace
+static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
+ const Attr *Attr1, const Attr *Attr2) {
+ // Two attributes are structurally equivalent if they are
@@ -37,13 +37,6 @@ namespace std_example {
static_assert(D);
template struct D_check {}; // expected-note{{because 'short' does not
satisfy 'D'}}
using dc1 = D_check; // expected-error{{constraints not satisfied for
class template 'D_check' [with T = short]}}
-
- templ
@@ -98,13 +98,6 @@ namespace std_example {
using c1c2 = C_check; // expected-error{{constraints not satisfied
for class template 'C_check' [with T = int *]}}
}
-// typeid() of an expression becomes potentially evaluated if the expression is
-// of a polymorphic type.
-class
https://github.com/mmha edited https://github.com/llvm/llvm-project/pull/132420
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1905,54 +2073,84 @@ static bool
IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
// Compare the definitions of these two enums. If either or both are
// incomplete (i.e. forward declared), we assume that they are equivalent.
+ // In C23, the order of t
Author: Owen Pan
Date: 2025-03-25T08:19:43-07:00
New Revision: 2497945a95bd6e66120476892816c90e42a592fc
URL:
https://github.com/llvm/llvm-project/commit/2497945a95bd6e66120476892816c90e42a592fc
DIFF:
https://github.com/llvm/llvm-project/commit/2497945a95bd6e66120476892816c90e42a592fc.diff
LOG:
https://github.com/owenca approved this pull request.
https://github.com/llvm/llvm-project/pull/132042
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Vlad Serebrennikov
Date: 2025-03-25T19:21:09+04:00
New Revision: 5159911a7c1476ff182363068d2a1169286bfb06
URL:
https://github.com/llvm/llvm-project/commit/5159911a7c1476ff182363068d2a1169286bfb06
DIFF:
https://github.com/llvm/llvm-project/commit/5159911a7c1476ff182363068d2a1169286bfb06.
@@ -0,0 +1,456 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c23 -pedantic -Wall -Wno-comment
-verify=both,c23 %s
+// RUN: %clang_cc1 -fsyntax-only -std=c17 -pedantic -Wall -Wno-comment
-Wno-c23-extensions -verify=both,c17 %s
+
+/* WG14 N3037:
+ * Improved tag compatibility
+ *
+ *
@@ -169,6 +169,20 @@ B b;
// since-cxx11-error@-1 {{call to implicitly-deleted default constructor of
'B'}}
// since-cxx11-note@#cwg2273-B {{default constructor of 'B' is implicitly
deleted because base class 'A' has a deleted default constructor}}
// since-cxx11-note@#cw
@@ -19213,6 +19213,29 @@ void Sema::ActOnFields(Scope *S, SourceLocation
RecLoc, Decl *EnclosingDecl,
if (Record && FD->getType().isVolatileQualified())
Record->setHasVolatileMember(true);
+auto IsNonDependentBitField = [](const FieldDecl *FD) {
+ if (!FD->
@@ -6418,6 +6418,12 @@ def warn_signed_bitfield_enum_conversion : Warning<
InGroup, DefaultIgnore;
def note_change_bitfield_sign : Note<
"consider making the bitfield type %select{unsigned|signed}0">;
+def warn_ms_bitfield_mismatched_storage_packing : Warning<
+ "bit-field
@@ -169,6 +169,20 @@ B b;
// since-cxx11-error@-1 {{call to implicitly-deleted default constructor of
'B'}}
// since-cxx11-note@#cwg2273-B {{default constructor of 'B' is implicitly
deleted because base class 'A' has a deleted default constructor}}
// since-cxx11-note@#cw
@@ -12182,10 +12182,14 @@ QualType Sema::BuildStdInitializerList(QualType
Element, SourceLocation Loc) {
Args.addArgument(TemplateArgumentLoc(TemplateArgument(Element),
Context.getTrivialTypeSourceInfo(Element,
@@ -519,6 +517,9 @@ struct RVVIntrinsicRecord {
// e.g. vadd
const char *OverloadedName;
+ // Required target features for this intrinsic.
+ uint32_t RequiredExtensions[(RVV_REQ_NUM + 31) / 32];
topperc wrote:
FeatureBits is very large and will waste a
carlosgalvezp wrote:
So I looked into the problem, and it seems that issue is that the
`ParentMapContext` class does not correctly find all the parents due to the
reduced AST traversal. One quick & dirty solution that makes the CERT test pass
(and keeps all the remaining tests passing) is as f
https://github.com/labrinea edited
https://github.com/llvm/llvm-project/pull/132273
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/wenju-he created
https://github.com/llvm/llvm-project/pull/132338
Currently link_bc command depends on the bitcode file that is associated with
custom target builtins.link.clc-arch_suffix.
On windows we randomly see following error:
`
Generating builtins.link.clc-${ARCH}--.
https://github.com/jhuber6 approved this pull request.
https://github.com/llvm/llvm-project/pull/132814
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,534 @@
+#!/usr/bin/env python3
+
+"""generate_unsupported_in_drivermode.py
+
+This script generates Lit regression test files that validate that options are
only exposed to intended driver modes.
+
+The options and driver modes are parsed from Options.td, whose path sh
@@ -1518,6 +1518,50 @@ static void verifyDiagnosticWording(const Record &Diag) {
// runs into odd situations like [[clang::warn_unused_result]],
// #pragma clang, or --unwindlib=libgcc.
}
+
+/// ClangDiagsCompatIDsEmitter - Emit a set of 'compatibility diagnostic ids'
+///
Author: Timm Baeder
Date: 2025-03-25T08:05:04+01:00
New Revision: 9b060d1e6aea15fb486a94798fedd88188269c92
URL:
https://github.com/llvm/llvm-project/commit/9b060d1e6aea15fb486a94798fedd88188269c92
DIFF:
https://github.com/llvm/llvm-project/commit/9b060d1e6aea15fb486a94798fedd88188269c92.diff
L
https://github.com/sumitsays updated
https://github.com/llvm/llvm-project/pull/131237
>From 6d5c4053c90975d64e378e52779dab9c3ffb64cd Mon Sep 17 00:00:00 2001
From: Sumit Agarwal
Date: Thu, 13 Mar 2025 16:02:32 -0700
Subject: [PATCH 1/8] dot2add working for dxil without sema check
---
clang/in
https://github.com/offsetof created
https://github.com/llvm/llvm-project/pull/132285
Fix access and ambiguity checks not being performed when converting to an
rvalue reference to a base class type with `static_cast`.
Fixes #121429
>From ac82e33db6879a8657706129fb28f3565e1899ba Mon Sep 17 00:0
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick`
running on `linaro-clang-aarch64-quick` while building `clang,llvm` at step 5
"ninja check 1".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/65/builds/14362
Here is the relevan
Author: Ricardo Jesus
Date: 2025-03-25T08:09:04Z
New Revision: 847e46ca013fa1d296669bd341c4c48b74797cb6
URL:
https://github.com/llvm/llvm-project/commit/847e46ca013fa1d296669bd341c4c48b74797cb6
DIFF:
https://github.com/llvm/llvm-project/commit/847e46ca013fa1d296669bd341c4c48b74797cb6.diff
LOG:
https://github.com/ayushpareek2003 created
https://github.com/llvm/llvm-project/pull/132638
-Optimized addModuleFiles functions for both CompilerInvocation and
CowCompilerInvocation to reduce redundant function calls and improve efficiency
-Introduced memory preallocation using reserve() when
@@ -94,8 +94,6 @@ Improvements to clang-tidy
- :program:`clang-tidy` no longer processes declarations from system headers
by default, greatly improving performance. This behavior is disabled if the
`SystemHeaders` option is enabled.
- Note: this may lead to false negatives
https://github.com/zyn0217 approved this pull request.
https://github.com/llvm/llvm-project/pull/132559
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
Changes
Instead of going though Decl.
---
Full diff: https://github.com/llvm/llvm-project/pull/132914.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Compiler.cpp (+2-2)
``diff
diff --git a/c
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/132849
>From b5b5275093f6942238536834c6508551f7ceffd8 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Sun, 16 Mar 2025 23:34:19 +0100
Subject: [PATCH 1/2] [Clang] Improve subsumption.
The main goal of this patch
https://github.com/frasercrmck closed
https://github.com/llvm/llvm-project/pull/132788
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Timm Bäder
Date: 2025-03-25T07:15:30+01:00
New Revision: 1e2ad6793ac205607e7c809283cf69e1cc36a69a
URL:
https://github.com/llvm/llvm-project/commit/1e2ad6793ac205607e7c809283cf69e1cc36a69a
DIFF:
https://github.com/llvm/llvm-project/commit/1e2ad6793ac205607e7c809283cf69e1cc36a69a.diff
LO
alexfh wrote:
We're also seeing Clang crashes after the original commit, which are not fixed
here.
https://github.com/llvm/llvm-project/pull/132317
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo
rorth wrote:
Thanks for the reversal. I've meanwhile determined in a local
`sparcv9-sun-solaris2.11` all-targets build that the test still `FAIL`ed even
with the `X86` target configured.
https://github.com/llvm/llvm-project/pull/132723
___
cfe-commi
serge-sans-paille wrote:
Hey @anutosh491 can you add some testing?
https://github.com/llvm/llvm-project/pull/132670
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -148,6 +158,32 @@ class AnnotatingParser {
}
}
+ const FormatStyle::FunctionDeclarationWithKeywords *
+ findFunctionWithKeywordedParameters() const {
+const FormatToken *TokBeforeFirstLParent{};
+for (const FormatToken *T = Line.First; T != Line.Last; T = T-
https://github.com/stmuench created
https://github.com/llvm/llvm-project/pull/132924
So far, the clang-tidy check `modernize-avoid-c-arrays` also diagnosed array
types for type template parameters even though no actual array type got written
there but it got deduced to one. In such case, there
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/132849
>From b5b5275093f6942238536834c6508551f7ceffd8 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Sun, 16 Mar 2025 23:34:19 +0100
Subject: [PATCH 1/7] [Clang] Improve subsumption.
The main goal of this patch
https://github.com/DanielCChen updated
https://github.com/llvm/llvm-project/pull/131041
>From 179c9e995a7c7e32de095f1919fad1f415419f3d Mon Sep 17 00:00:00 2001
From: Daniel Chen
Date: Wed, 12 Mar 2025 18:23:14 -0400
Subject: [PATCH 01/12] [flang-rt] Pass the whole path of libflang_rt.runtime.a
github-actions[bot] wrote:
Thank you for submitting a Pull Request (PR) to the LLVM Project!
This PR will be automatically labeled and the relevant teams will be notified.
If you wish to, you can add reviewers by using the "Reviewers" section on this
page.
If this is not working for you, it
https://github.com/DanielCChen updated
https://github.com/llvm/llvm-project/pull/131822
>From 050913081eced8c43eb46ec6ff65aeecda60e3fb Mon Sep 17 00:00:00 2001
From: Daniel Chen
Date: Tue, 18 Mar 2025 11:09:41 -0400
Subject: [PATCH] [Driver] Add linker options to support statical linking to
sh
stmuench wrote:
> Example:
>
> ```
> #include
>
> template > void f(T &&value) {}
>
> void test() {
> int t[10];
> f(t);
> }
> ```
>
> ```
> /root/1.cpp:3:50: warning: do not declare C-style arrays, use 'std::array'
> instead
> [cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,mod
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mallikarjuna Gouda (mgoudar)
Changes
PR #130587 defined same SubTargetFeature for CPUs i6400 and i6500 which
resulted into following warning when -mcpu=i6500 was used:
+i6500' is not a recognized feature for this target (ignoring feature)
ZhongUncle wrote:
I just have submitted a GSoC proposal, can you give me some advices?
https://github.com/llvm/llvm-project/pull/132510
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,194 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 %s
+
+namespace A {
+template
+concept C = true;
+
+template
+requires C && C
+void f() {}
+
+template
+requires C && true
+void f() {}
+
+template <>
+void f();
+}
+
+namespace B {
+template
+concept A = t
https://github.com/cor3ntin updated
https://github.com/llvm/llvm-project/pull/132849
>From b5b5275093f6942238536834c6508551f7ceffd8 Mon Sep 17 00:00:00 2001
From: Corentin Jabot
Date: Sun, 16 Mar 2025 23:34:19 +0100
Subject: [PATCH 1/8] [Clang] Improve subsumption.
The main goal of this patch
https://github.com/jhuber6 edited
https://github.com/llvm/llvm-project/pull/129347
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/cor3ntin edited
https://github.com/llvm/llvm-project/pull/132849
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
501 - 566 of 566 matches
Mail list logo