@@ -3153,6 +3153,12 @@ def err_invalid_branch_protection_spec : Error<
"invalid or misplaced branch protection specification '%0'">;
def warn_unsupported_branch_protection_spec : Warning<
"unsupported branch protection specification '%0'">,
InGroup;
+def
@@ -5910,6 +5910,51 @@ static void handleBuiltinAliasAttr(Sema , Decl *D,
D->addAttr(::new (S.Context) BuiltinAliasAttr(S.Context, AL, Ident));
}
+static void handlePreferredTypeAttr(Sema , Decl *D, const ParsedAttr ) {
+ if (!AL.hasParsedType()) {
+S.Diag(AL.getLoc(),
@@ -3153,6 +3153,12 @@ def err_invalid_branch_protection_spec : Error<
"invalid or misplaced branch protection specification '%0'">;
def warn_unsupported_branch_protection_spec : Warning<
"unsupported branch protection specification '%0'">,
InGroup;
+def
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69104
>From 976aa5c8f3d936a15e7123069a49d97ad3bf7a05 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sun, 15 Oct 2023 13:14:55 +0300
Subject: [PATCH 1/9] [clang] Add clang::debug_info_type attribute
---
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69104
>From 976aa5c8f3d936a15e7123069a49d97ad3bf7a05 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sun, 15 Oct 2023 13:14:55 +0300
Subject: [PATCH 01/11] [clang] Add clang::debug_info_type attribute
---
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69104
>From 976aa5c8f3d936a15e7123069a49d97ad3bf7a05 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sun, 15 Oct 2023 13:14:55 +0300
Subject: [PATCH 01/12] [clang] Add clang::debug_info_type attribute
---
@@ -5910,6 +5910,51 @@ static void handleBuiltinAliasAttr(Sema , Decl *D,
D->addAttr(::new (S.Context) BuiltinAliasAttr(S.Context, AL, Ident));
}
+static void handlePreferredTypeAttr(Sema , Decl *D, const ParsedAttr ) {
+ if (!AL.hasParsedType()) {
+S.Diag(AL.getLoc(),
Endilll wrote:
> but I also see "you got what you asked for!" as being a reasonable defense to
> that.
That's my thinking indeed, and the reason why I opposed to Aaron's proposal to
implicitly mark 1-bit bit-fields as `preferred_type(bool)`.
https://github.com/llvm/llvm-project/pull/69104
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69104
>From 976aa5c8f3d936a15e7123069a49d97ad3bf7a05 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sun, 15 Oct 2023 13:14:55 +0300
Subject: [PATCH 01/10] [clang] Add clang::debug_info_type attribute
---
Endilll wrote:
> There's some danger here. _BitInt is a C23 feature as are enumerations with a
> fixed underlying type. Enumerations with a fixed underlying type explicitly
> disallow using a bit-precise integer type as the underlying type. See C23
> 6.7.2.2p4, which says in part, "For all
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/67213
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1488,6 +1491,8 @@ markup::Document HoverInfo::present() const {
llvm::formatv(" (+{0} padding)", formatSize(*Padding)).str());
}
}
+ if (Align)
+Output.addParagraph().appendText("Align: " + formatSize(*Align));
Endilll wrote:
My
https://github.com/Endilll approved this pull request.
LGTM, but you should wait for other reviewers before merging.
https://github.com/llvm/llvm-project/pull/67213
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Endilll wrote:
On the topic of ABI, Itanium and Microsoft type layouts are not compatible,
even for standard-layout (POD) types. For
[example](https://godbolt.org/z/zxfvMa9nE), bit-fields are
[allowed](http://eel.is/c++draft/class.prop#3) in standard-layout types, but
only Microsoft ABI
@@ -1488,6 +1491,8 @@ markup::Document HoverInfo::present() const {
llvm::formatv(" (+{0} padding)", formatSize(*Padding)).str());
}
}
+ if (Align)
+Output.addParagraph().appendText("Align: " + formatSize(*Align));
Endilll wrote:
That
https://github.com/Endilll closed
https://github.com/llvm/llvm-project/pull/67213
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll created
https://github.com/llvm/llvm-project/pull/69916
Refactor `uintptr_t` inside of `clang::Selector` that holds a pointer to
`IdentifierInfo` or `MultiKeywordSelector` and `IdentifierInfoFlag` enum into
`PointerIntPair`. This is a part of `PointerIntPair`
@@ -5910,6 +5910,30 @@ static void handleBuiltinAliasAttr(Sema , Decl *D,
D->addAttr(::new (S.Context) BuiltinAliasAttr(S.Context, AL, Ident));
}
+static void handleDebugInfoTypeAttr(Sema , Decl *D, const ParsedAttr ) {
+ if (!AL.hasParsedType()) {
+S.Diag(AL.getLoc(),
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69104
>From 976aa5c8f3d936a15e7123069a49d97ad3bf7a05 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sun, 15 Oct 2023 13:14:55 +0300
Subject: [PATCH 01/14] [clang] Add clang::debug_info_type attribute
---
@@ -7219,6 +7219,31 @@ its underlying representation to be a WebAssembly
``funcref``.
}];
}
+def PreferredTypeDocumentation : Documentation {
+ let Category = DocCatField;
+ let Content = [{
+This attribute allows adjusting the type of a bit-field in debug information.
Endilll wrote:
Thank you @AaronBallman for writing even more documentation!
https://github.com/llvm/llvm-project/pull/69104
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -7219,6 +7219,31 @@ its underlying representation to be a WebAssembly
``funcref``.
}];
}
+def PreferredTypeDocumentation : Documentation {
+ let Category = DocCatField;
+ let Content = [{
+This attribute allows adjusting the type of a bit-field in debug information.
Endilll wrote:
> Does this issue not apply to other platforms?
As far as I understand, MS ABI forces compilers to insert padding between
bitfields more often than Itanium. Probably because of that GCC and Clang are
able to merge separate loads of bitfields into single load on Linux.
> I'd
https://github.com/Endilll created
https://github.com/llvm/llvm-project/pull/69185
This patch replaces usages of `TypeAlignment` with `alignof(T)`, where `T` is
type that will be created in allocated storage with placement-new. This is now
possible, because `alignof` reports the correct
@@ -809,43 +927,42 @@ class Selector {
enum IdentifierInfoFlag {
// Empty selector = 0. Note that these enumeration values must
// correspond to the enumeration values of DeclarationName::StoredNameKind
-ZeroArg = 0x01,
-OneArg = 0x02,
+ZeroArg = 0x01,
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69916
>From 58ebdda4e44b3fa2547d85a6cc9d5b0aa913b22a Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Mon, 23 Oct 2023 13:55:46 +0300
Subject: [PATCH 1/2] [clang][NFC] Refactor `Selector` to use
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/69916
>From 58ebdda4e44b3fa2547d85a6cc9d5b0aa913b22a Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Mon, 23 Oct 2023 13:55:46 +0300
Subject: [PATCH 1/3] [clang][NFC] Refactor `Selector` to use
Endilll wrote:
Tagging @llvm/pr-subscribers-compiler-rt-sanitizer for visibility again, since
this PR is abandoned.
https://github.com/llvm/llvm-project/pull/67673
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/Endilll created
https://github.com/llvm/llvm-project/pull/71709
This patch refactors how values are stored inside
`IdentifierInfo::ObjcOrBuiltinID` bit-field, and annotates it with
`preferred_type`. In order to make the value easier to interpret by debuggers,
a new
Endilll wrote:
@ChuanqiXu9 Can I use some of your help? This PR breaks two module tests:
```
Clang :: Modules/cxx20-hu-04.cpp
Clang :: Modules/cxx20-module-file-info-macros.cpp
```
Apparently I somehow break import or export of header unit macros.
In `cxx20-module-file-info-macros.cpp`, the
Endilll wrote:
> Oh, I didn't look into the identifier's system before. I took a while to look
> at the patch but I failed to understand it and I failed to find the
> relationships between this patch and header units...
Yeah, the part this PR touches in not the most straightforward one. Thank
@@ -86,19 +87,26 @@ enum { IdentifierInfoAlignment = 8 };
static constexpr int ObjCOrBuiltinIDBits = 16;
/// The "layout" of ObjCOrBuiltinID is:
-/// - The first value (0) represents "not a special identifier".
-/// - The next (NUM_OBJC_KEYWORDS - 1) values represent
Author: Vlad Serebrennikov
Date: 2023-11-08T15:44:46+03:00
New Revision: 5e09c4e6a865707ed26f9a893dbef8b499591459
URL:
https://github.com/llvm/llvm-project/commit/5e09c4e6a865707ed26f9a893dbef8b499591459
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-06T12:39:19+03:00
New Revision: 6d971cb840dbb3f05689469bf11e49046ce2fae1
URL:
https://github.com/llvm/llvm-project/commit/6d971cb840dbb3f05689469bf11e49046ce2fae1
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-08T21:57:07+03:00
New Revision: 90d4cbb87ce297d93159d39528767f5f46aa4da4
URL:
https://github.com/llvm/llvm-project/commit/90d4cbb87ce297d93159d39528767f5f46aa4da4
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-06T12:42:35+03:00
New Revision: 7e31d0723dbf8ab9355cb58cfc6309be51be3e25
URL:
https://github.com/llvm/llvm-project/commit/7e31d0723dbf8ab9355cb58cfc6309be51be3e25
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-06T12:27:22+03:00
New Revision: 5b22c5129c11f5c762c5092d7c52e1ac3d536903
URL:
https://github.com/llvm/llvm-project/commit/5b22c5129c11f5c762c5092d7c52e1ac3d536903
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-06T12:35:21+03:00
New Revision: 80bae9aacc1452d18bfb1fe7437f5dcd160614d3
URL:
https://github.com/llvm/llvm-project/commit/80bae9aacc1452d18bfb1fe7437f5dcd160614d3
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-01T17:23:26+03:00
New Revision: 3f950ad58919309882a29bcb4bf6f8db62ffc384
URL:
https://github.com/llvm/llvm-project/commit/3f950ad58919309882a29bcb4bf6f8db62ffc384
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-02T11:52:19+03:00
New Revision: eba4efcb056ccea1804a5c578b0ddc736100ebcc
URL:
https://github.com/llvm/llvm-project/commit/eba4efcb056ccea1804a5c578b0ddc736100ebcc
DIFF:
Author: Vlad Serebrennikov
Date: 2022-12-01T21:10:28+03:00
New Revision: f5993fc7757e37a9076c5cd22de8f275e5c6097e
URL:
https://github.com/llvm/llvm-project/commit/f5993fc7757e37a9076c5cd22de8f275e5c6097e
DIFF:
Author: Vlad Serebrennikov
Date: 2023-01-26T14:31:24+03:00
New Revision: 55c9ad99d12d18ee91a4c3e3609a0aacbaa5174e
URL:
https://github.com/llvm/llvm-project/commit/55c9ad99d12d18ee91a4c3e3609a0aacbaa5174e
DIFF:
Author: Vlad Serebrennikov
Date: 2023-01-26T14:40:47+03:00
New Revision: 839eae38a4e4064568e1b3b0ee9538958ead8a40
URL:
https://github.com/llvm/llvm-project/commit/839eae38a4e4064568e1b3b0ee9538958ead8a40
DIFF:
Author: Vlad Serebrennikov
Date: 2023-03-24T17:35:35+03:00
New Revision: 467ed2798772344e2a3b4a8d368575f1f9d1a8c6
URL:
https://github.com/llvm/llvm-project/commit/467ed2798772344e2a3b4a8d368575f1f9d1a8c6
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-12T20:46:05+03:00
New Revision: d945b6496ec6604f692804d501fc96583069d432
URL:
https://github.com/llvm/llvm-project/commit/d945b6496ec6604f692804d501fc96583069d432
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-15T13:15:45+03:00
New Revision: 19ef8e8446df10b6bebf6301c1a3e9e8000f842c
URL:
https://github.com/llvm/llvm-project/commit/19ef8e8446df10b6bebf6301c1a3e9e8000f842c
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-15T18:25:08+03:00
New Revision: b9d84b57f680cb294da906a6eeca2d0598c11568
URL:
https://github.com/llvm/llvm-project/commit/b9d84b57f680cb294da906a6eeca2d0598c11568
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-24T11:53:04+03:00
New Revision: 0a113c4c50f65a7d26d20be84bfb56562154753f
URL:
https://github.com/llvm/llvm-project/commit/0a113c4c50f65a7d26d20be84bfb56562154753f
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-25T09:03:46+03:00
New Revision: 5cda0d165a752c8041e8da4d39632c001463fa30
URL:
https://github.com/llvm/llvm-project/commit/5cda0d165a752c8041e8da4d39632c001463fa30
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-10T13:18:19+03:00
New Revision: 6737a1520900a506a884db6677a03fa729c2f197
URL:
https://github.com/llvm/llvm-project/commit/6737a1520900a506a884db6677a03fa729c2f197
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-11T11:08:22+03:00
New Revision: 86946ebb796c4ccde85b34aa52964e9aadabc692
URL:
https://github.com/llvm/llvm-project/commit/86946ebb796c4ccde85b34aa52964e9aadabc692
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-11T22:13:43+03:00
New Revision: a4beecef8f40ad0d42f61e7c495acb2d2d819b10
URL:
https://github.com/llvm/llvm-project/commit/a4beecef8f40ad0d42f61e7c495acb2d2d819b10
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-11T22:15:11+03:00
New Revision: aa7aedd8ea3f75ddfb3004b81f09c5f653bc8fec
URL:
https://github.com/llvm/llvm-project/commit/aa7aedd8ea3f75ddfb3004b81f09c5f653bc8fec
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-11T22:04:02+03:00
New Revision: feb93d28b02c41ca6b069ec1f9e62fdfbb4c8b6c
URL:
https://github.com/llvm/llvm-project/commit/feb93d28b02c41ca6b069ec1f9e62fdfbb4c8b6c
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-07T17:54:38+04:00
New Revision: 653a82e95257a7cd3f22c24e40d54459a6608429
URL:
https://github.com/llvm/llvm-project/commit/653a82e95257a7cd3f22c24e40d54459a6608429
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-07T18:33:56+04:00
New Revision: 154825bdf6fb5ec5b4cd7d53cf93d68b185ca55d
URL:
https://github.com/llvm/llvm-project/commit/154825bdf6fb5ec5b4cd7d53cf93d68b185ca55d
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-07T18:33:33+04:00
New Revision: 33e84315e7d674cf6327d23f035aa4a2f28ac8ee
URL:
https://github.com/llvm/llvm-project/commit/33e84315e7d674cf6327d23f035aa4a2f28ac8ee
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-07T18:40:35+04:00
New Revision: 4b03869402558d6aa24ce08766825eef34d6aff6
URL:
https://github.com/llvm/llvm-project/commit/4b03869402558d6aa24ce08766825eef34d6aff6
DIFF:
Author: Vlad Serebrennikov
Date: 2023-04-14T10:15:21+03:00
New Revision: 576c752410e71229f271ec7defb22f3596338c00
URL:
https://github.com/llvm/llvm-project/commit/576c752410e71229f271ec7defb22f3596338c00
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-11T09:46:18+03:00
New Revision: d0e24f0c97ecf4f4e72604adcae5cd4c6b02cb48
URL:
https://github.com/llvm/llvm-project/commit/d0e24f0c97ecf4f4e72604adcae5cd4c6b02cb48
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-11T09:48:40+03:00
New Revision: 5eaaf8f18093740200ffed76b32884ad9cfec12e
URL:
https://github.com/llvm/llvm-project/commit/5eaaf8f18093740200ffed76b32884ad9cfec12e
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-11T09:50:25+03:00
New Revision: 89ba737bcf3444a6afe2f4ed75ce957029380267
URL:
https://github.com/llvm/llvm-project/commit/89ba737bcf3444a6afe2f4ed75ce957029380267
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-11T10:53:08+03:00
New Revision: 5fc73b7502fbbb46faa57a558c8661822b2b5215
URL:
https://github.com/llvm/llvm-project/commit/5fc73b7502fbbb46faa57a558c8661822b2b5215
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-11T10:25:59+03:00
New Revision: 22fb66eb94b643c858c2beecbcfac438a7fa29ed
URL:
https://github.com/llvm/llvm-project/commit/22fb66eb94b643c858c2beecbcfac438a7fa29ed
DIFF:
Author: Vlad Serebrennikov
Date: 2023-02-13T21:53:00+03:00
New Revision: 51a07fc24cb909011e0b16793800aab4b93031ed
URL:
https://github.com/llvm/llvm-project/commit/51a07fc24cb909011e0b16793800aab4b93031ed
DIFF:
Author: Vlad Serebrennikov
Date: 2023-07-11T16:24:39+03:00
New Revision: 1bbaabb90dd72f78ea290b71dfe3bf2689ad7403
URL:
https://github.com/llvm/llvm-project/commit/1bbaabb90dd72f78ea290b71dfe3bf2689ad7403
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-30T12:09:02+03:00
New Revision: 9c561e8f3c2e8292bce9d7b36657144ba26a1c91
URL:
https://github.com/llvm/llvm-project/commit/9c561e8f3c2e8292bce9d7b36657144ba26a1c91
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-31T10:17:27+03:00
New Revision: 238f15820e71080b0bbc7d6ee95303fdb430d6fa
URL:
https://github.com/llvm/llvm-project/commit/238f15820e71080b0bbc7d6ee95303fdb430d6fa
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-23T15:29:14+03:00
New Revision: 70688e82e2fd6b486931669b981c18f3830385b5
URL:
https://github.com/llvm/llvm-project/commit/70688e82e2fd6b486931669b981c18f3830385b5
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-23T12:50:42+03:00
New Revision: 85452b5f9b5aba5bdf0259b7f0d7400362f95535
URL:
https://github.com/llvm/llvm-project/commit/85452b5f9b5aba5bdf0259b7f0d7400362f95535
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-23T12:44:24+03:00
New Revision: 71bc3dd42e2939a25e4394dbebf6239e3e6403a9
URL:
https://github.com/llvm/llvm-project/commit/71bc3dd42e2939a25e4394dbebf6239e3e6403a9
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-23T21:04:23+03:00
New Revision: 1c5a749754a1c352a7efa0e8be26c1d4132fe9c7
URL:
https://github.com/llvm/llvm-project/commit/1c5a749754a1c352a7efa0e8be26c1d4132fe9c7
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-28T15:58:52+03:00
New Revision: 5b4fed66efe245bb0cc246755a669ab3a17de9ed
URL:
https://github.com/llvm/llvm-project/commit/5b4fed66efe245bb0cc246755a669ab3a17de9ed
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-20T11:17:44+03:00
New Revision: 14f245d01a1ee489a13e843e9c77cecf5c7183a9
URL:
https://github.com/llvm/llvm-project/commit/14f245d01a1ee489a13e843e9c77cecf5c7183a9
DIFF:
Author: Vlad Serebrennikov
Date: 2023-05-20T12:56:52+03:00
New Revision: abbb22cc0c9c33dedb8d53c2bd3e703f92baace7
URL:
https://github.com/llvm/llvm-project/commit/abbb22cc0c9c33dedb8d53c2bd3e703f92baace7
DIFF:
Endilll wrote:
@frederick-vs-ja PR description is going to be used as a commit message. You
can edit it. Let me know when it's ready.
https://github.com/llvm/llvm-project/pull/68846
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Endilll wrote:
> I have reviewed the tests for libclang and it appears that there are already
> tests for the rewriter, which are more extensive than the ones I wrote.
> Therefore, I have decided to mirror the tests from libclang in the Python
> binding. Please let me know if this approach is
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/77269
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/78793
>From f6a599d6e662121f19529f59ffa44cc6177c0835 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sat, 20 Jan 2024 00:58:06 +0300
Subject: [PATCH] [clang] Remove `CXXNewInitializationStyle::Implicit`
This
Endilll wrote:
@linux4life798 Can you review the last update?
https://github.com/llvm/llvm-project/pull/77269
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll approved this pull request.
LGTM
PR description is going to become a commit message after merging. Let me know
when it's ready.
https://github.com/llvm/llvm-project/pull/77269
___
cfe-commits mailing list
Endilll wrote:
I decided to not include tests, because our testing infrastructure is not ready
to test that Clang doesn't crash without overspecifying the tests using
`-verify` mode.
https://github.com/llvm/llvm-project/pull/78898
___
cfe-commits
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/78793
>From f6a599d6e662121f19529f59ffa44cc6177c0835 Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Sat, 20 Jan 2024 00:58:06 +0300
Subject: [PATCH] [clang] Remove `CXXNewInitializationStyle::Implicit`
This
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/78338
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll created
https://github.com/llvm/llvm-project/pull/78898
Fixes #10518
Fixes #67914
Fixes #78388
Also addresses the second example in #49103
This patch is based on suggestion from @cor3ntin in
https://github.com/llvm/llvm-project/issues/67914#issuecomment-1896011898
https://github.com/Endilll closed
https://github.com/llvm/llvm-project/pull/78793
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Endilll wrote:
I find `llvm::Bitfield` API with all its explicit setters with explicit storage
parameter clunky compared to language bit-fields. But that's minor. My major
issue with this patch is that `uint64_t Storage;` is as opaque for debuggers as
it gets. It would take so much work to
Endilll wrote:
> gentle ping. Please check the mergeability of this PR.
Friendly reminder of one ping per week policy.
https://github.com/llvm/llvm-project/pull/78338
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label
-Wno-c++1y-extensions -verify %s
-// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label
-Wno-c++1y-extensions -verify -std=gnu++11 %s
+// RUN: %clang_cc1 -fsyntax-only
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label
-Wno-c++1y-extensions -verify %s
-// RUN: %clang_cc1 -fsyntax-only -Wunused-variable -Wunused-label
-Wno-c++1y-extensions -verify -std=gnu++11 %s
+// RUN: %clang_cc1 -fsyntax-only
@@ -17242,6 +17242,23 @@ Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind
TUK, SourceLocation KWLoc,
return true;
}
+ if (TUK == TUK_Friend && Kind == TagTypeKind::Enum) {
+// C++23 [dcl.type.elab]p4:
+// If an elaborated-type-specifier appears with
https://github.com/Endilll approved this pull request.
https://github.com/llvm/llvm-project/pull/80171
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/80171
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll edited
https://github.com/llvm/llvm-project/pull/80823
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Endilll created
https://github.com/llvm/llvm-project/pull/80823
This patch covers CWG issues
[201](https://cplusplus.github.io/CWG/issues/201.html),
[210](https://cplusplus.github.io/CWG/issues/210.html),
[292](https://cplusplus.github.io/CWG/issues/292.html).
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm
-disable-llvm-passes -O0 -o - -fexceptions -fcxx-exceptions -pedantic-errors |
llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
+// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu
@@ -0,0 +1,38 @@
+// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm
-disable-llvm-passes -O0 -o - -fexceptions -fcxx-exceptions -pedantic-errors |
llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
+// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm
-disable-llvm-passes -O0 -o - -fexceptions -fcxx-exceptions -pedantic-errors |
llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
+// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu
@@ -0,0 +1,43 @@
+// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm
-disable-llvm-passes -O0 -o - -fexceptions -fcxx-exceptions -pedantic-errors |
llvm-cxxfilt -n | FileCheck %s --check-prefixes CHECK
+// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu
https://github.com/Endilll updated
https://github.com/llvm/llvm-project/pull/80823
>From 560713b5d45236956198654a10e0795eb56cad7b Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Tue, 6 Feb 2024 13:23:36 +0300
Subject: [PATCH 1/2] [Clang] Add some CodeGen tests for CWG 2xx issues
This
201 - 300 of 1427 matches
Mail list logo