[clang] [clang][Interp] Fix compiling undefined templated functions (PR #67232)

2023-09-23 Thread via cfe-commits
https://github.com/phyBrackets edited https://github.com/llvm/llvm-project/pull/67232 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix compiling undefined templated functions (PR #67232)

2023-09-23 Thread via cfe-commits
https://github.com/phyBrackets commented: Tested locally, LGTM! https://github.com/llvm/llvm-project/pull/67232 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-23 Thread via cfe-commits
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 e057d8973cc6a9d0bcc5cc385f318a607d117693 c5779c1142936db45c1d0e2046ee5015a7d02fe9 --

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-23 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-23 Thread Brad Smith via cfe-commits
@@ -10,8 +10,10 @@ link_flags = [] if @LIBUNWIND_ENABLE_CET@: compile_flags.append('-fcf-protection=full') -if '@CMAKE_SYSTEM_NAME@' == 'Linux': -link_flags.append('-Wl,--export-dynamic') +# Add -Wl,--export-dynamic if supported by the linker (this CMake variable will

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-23 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67222 >From 3ae9d2d3d6e0683764c3bcbbe158b968aab4ace5 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 23 Sep 2023 03:22:18 -0400 Subject: [PATCH] [Driver] Hook up Haiku ARM support --- clang/lib/Basic/Targets.cpp

[clang] [ORC] Implement basic reoptimization. (PR #67050)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,83 @@ +//===- IRPartitionLayer.h - Partition IR module on lookup ---*- C++ -*-===// +// +// 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:

[clang] [Driver] Some adjustments for reloctable linking on OpenBSD (PR #67254)

2023-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The entry point symbol handling matches our GCC link spec.. ```%{!shared:%{!nostdlib:%{!r:%{!e*:-e __start``` Came up in discussion here https://github.com/llvm/llvm-project/pull/65644 --- Full diff:

[clang] [Driver] Some adjustments for reloctable linking on OpenBSD (PR #67254)

2023-09-23 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/67254 The entry point symbol handling matches our GCC link spec.. ```%{!shared:%{!nostdlib:%{!r:%{!e*:-e __start``` Came up in discussion here https://github.com/llvm/llvm-project/pull/65644 >From

[clang] Karikari (PR #67253)

2023-09-23 Thread via cfe-commits
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 186a4b3b657878ae2aea23caf684b6e103901162 4e3adab12b509610d81502bb640accbaea39b9f9 --

[clang] Karikari (PR #67253)

2023-09-23 Thread Sunho Kim via cfe-commits
https://github.com/sunho closed https://github.com/llvm/llvm-project/pull/67253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Karikari (PR #67253)

2023-09-23 Thread Sunho Kim via cfe-commits
sunho wrote: Oh mistake https://github.com/llvm/llvm-project/pull/67253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][nfc] avoid prototype warning (PR #67250)

2023-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Changes Avoid following prototype related warning. Unwind-sjlj.c:85:75: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] --- Full diff:

[clang] [clang] Add -mlarge-data-threshold for x86_64 medium code model (PR #66839)

2023-09-23 Thread Arthur Eubanks via cfe-commits
aeubanks wrote: > Ok. We should change the default to a non zero value to match gcc, too, but > that can be a follow-up. Yes, I was planning on sending out an RFC for this https://github.com/llvm/llvm-project/pull/66839 ___ cfe-commits mailing list

[libunwind] [libunwind][nfc] avoid prototype warning (PR #67250)

2023-09-23 Thread Kazushi Marukawa via cfe-commits
https://github.com/kaz7 created https://github.com/llvm/llvm-project/pull/67250 Avoid following prototype related warning. Unwind-sjlj.c:85:75: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] >From

[PATCH] D150083: [clang-format] ObjCPropertyAttributeOrder to sort ObjC property attributes

2023-09-23 Thread Jared Grubb via Phabricator via cfe-commits
jaredgrubb added a comment. @MyDeveloperDay addressed your comments. Thanks! Would love to get this in before Phabricator closes. Anything else I can do to help? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150083/new/ https://reviews.llvm.org/D150083

[PATCH] D150083: [clang-format] ObjCPropertyAttributeOrder to sort ObjC property attributes

2023-09-23 Thread Jared Grubb via Phabricator via cfe-commits
jaredgrubb updated this revision to Diff 557275. jaredgrubb added a comment. Rebased and adjusted docs to reflect that this patch would appear in clang-format 18 (not 17 now). Removed extraneous comment change (will do NFC later for that) Removed other build-system changes (as requested).

[PATCH] D145262: [clang-format] Treat AttributeMacros more like attribute macros

2023-09-23 Thread Jared Grubb via Phabricator via cfe-commits
jaredgrubb marked an inline comment as done. jaredgrubb added inline comments. Comment at: clang/unittests/Format/FormatTestObjC.cpp:1619 + // Reflow after first macro. + // FIXME: these should indent but don't. + verifyFormat("- (id)init ATTRIBUTE_MACRO(X)\n"

[PATCH] D145262: [clang-format] Treat AttributeMacros more like attribute macros

2023-09-23 Thread Jared Grubb via Phabricator via cfe-commits
jaredgrubb updated this revision to Diff 557274. jaredgrubb added a comment. Hopefully this will satisfy and we can merge! I didn't notice the Phabricator timeline and I'm hoping we can finish this before Oct 1. Rebased. Removed extraneous doc comment not related to patch (as requested).

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-23 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. LGTM, but please wait for @mydeveloperday. https://github.com/llvm/llvm-project/pull/66755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-23 Thread Owen Pan via cfe-commits
https://github.com/owenca resolved https://github.com/llvm/llvm-project/pull/66755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-23 Thread Owen Pan via cfe-commits
https://github.com/owenca resolved https://github.com/llvm/llvm-project/pull/66755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-23 Thread Owen Pan via cfe-commits
https://github.com/owenca resolved https://github.com/llvm/llvm-project/pull/66755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f435f55 - [Lex] Use llvm::byteswap instead of sys::getSwappedBytes (NFC)

2023-09-23 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2023-09-23T13:30:16-07:00 New Revision: f435f55d58542ecde0e66460555ccbcbca355cc5 URL: https://github.com/llvm/llvm-project/commit/f435f55d58542ecde0e66460555ccbcbca355cc5 DIFF: https://github.com/llvm/llvm-project/commit/f435f55d58542ecde0e66460555ccbcbca355cc5.diff

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
https://github.com/huixie90 edited https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
https://github.com/huixie90 edited https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
https://github.com/huixie90 edited https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
@@ -0,0 +1,145 @@ +//===--===// +// +// 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:

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-09-23 Thread via cfe-commits
https://github.com/huixie90 edited https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-23 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: 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

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-23 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: https://github.com/shafik commented: Thank you for the additions, almost there :-) https://github.com/llvm/llvm-project/pull/67147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-23 Thread Shafik Yaghmour via cfe-commits
Timm =?utf-8?q?B=C3=A4der?= Message-ID: In-Reply-To: @@ -31,6 +31,28 @@ static_assert(b, ""); constexpr int one = true; static_assert(one == 1, ""); +constexpr bool b2 = bool(); +static_assert(!b2, ""); + +namespace ScalarTypes { + constexpr int ScalarInitInt = int(); +

[clang] [clang] Add -mlarge-data-threshold for x86_64 medium code model (PR #66839)

2023-09-23 Thread James Y Knight via cfe-commits
https://github.com/jyknight approved this pull request. Ok. We should change the default to a non zero value to match gcc, too, but that can be a follow-up. https://github.com/llvm/llvm-project/pull/66839 ___ cfe-commits mailing list

[PATCH] D149458: [Driver] Pass --target2= to linker from baremetal toolchain

2023-09-23 Thread Null Yang via Phabricator via cfe-commits
AlexYzhov added a comment. Add command without backend wrapper destroys the compatibility to different linkers. Some people will use gcc driver instead of ld/lld itself as linker, a "-Wl," prefix is needed in this situation. i've met familiar issue that corrupts the link step:

[clang] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader` (PR #65744)

2023-09-23 Thread via cfe-commits
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 b8b4ee6b450766796b162b4811a6b3f723d07268 d07486764071679c8cbcd5e7c4905eb41b4770b3 --

[clang] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader` (PR #65744)

2023-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-llvm Changes I think this is very helpful for reading generated `.inc` files. --- Patch is 31.85 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/65744.diff 22 Files Affected: - (modified)

[clang] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader` (PR #65744)

2023-09-23 Thread Shao-Ce SUN via cfe-commits
https://github.com/sunshaoce updated https://github.com/llvm/llvm-project/pull/65744 >From 23d0b738bf40ea44e159f4f8d7355d4d6bc0688d Mon Sep 17 00:00:00 2001 From: Shao-Ce SUN Date: Sat, 23 Sep 2023 11:38:33 +0800 Subject: [PATCH 1/2] [llvm][tblgen] Add `SourcePath` for `emitSourceFileHeader`

[PATCH] D134475: [clang-cl] Add support for [[msvc::constexpr]] C++11 attribute

2023-09-23 Thread Richard Dzenis via Phabricator via cfe-commits
RIscRIpt updated this revision to Diff 557270. RIscRIpt added a comment. Rebase onto main. Run lit clang/test. Bump. Any chance we continue the review? I know it looked stale for a while I couldn't address review comments, but now I have time to work at this patch. Repository: rG LLVM

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67018)

2023-09-23 Thread Yueh-Ting Chen via cfe-commits
eopXD wrote: > Does this mean the backend register allocation will pick a large LMUL > register the same size as the whole tuple and force the register to be overly > aligned? For example an lmul=1 seg2 tuple can use v0+v1, or v1+v2, or v2+v3, > etc. But lmul=2 can only use v0+v1, v2+v3,

[clang] f1128f3 - [clang][Interp][NFC] Enable more existing SemaCXX tests

2023-09-23 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-09-23T16:11:57+02:00 New Revision: f1128f3782363ca26e0bdf9323a0d16570dcfba0 URL: https://github.com/llvm/llvm-project/commit/f1128f3782363ca26e0bdf9323a0d16570dcfba0 DIFF: https://github.com/llvm/llvm-project/commit/f1128f3782363ca26e0bdf9323a0d16570dcfba0.diff

[PATCH] D157890: Propagate the volatile qualifier of exp to store /load operations .

2023-09-23 Thread Kishan Parmar via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG2641d9b2807d: Propagate the volatile qualifier of exp to store /load operations . (authored by umesh.kalappa0, committed by long5hot). Herald

[clang] 2641d9b - Propagate the volatile qualifier of exp to store /load operations .

2023-09-23 Thread Kishan Parmar via cfe-commits
Author: Umesh Kalappa Date: 2023-09-23T19:40:24+05:30 New Revision: 2641d9b2807ded4b712f4dca809d63c138c91361 URL: https://github.com/llvm/llvm-project/commit/2641d9b2807ded4b712f4dca809d63c138c91361 DIFF: https://github.com/llvm/llvm-project/commit/2641d9b2807ded4b712f4dca809d63c138c91361.diff

[clang] d437e68 - [clang][Interp][NFC] Enable constexpr-single-element-array test

2023-09-23 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-09-23T14:15:40+02:00 New Revision: d437e68b5b5a1f0291a0eaa72a07712e7aaccd10 URL: https://github.com/llvm/llvm-project/commit/d437e68b5b5a1f0291a0eaa72a07712e7aaccd10 DIFF: https://github.com/llvm/llvm-project/commit/d437e68b5b5a1f0291a0eaa72a07712e7aaccd10.diff

[clang] [clang][Interp] Fix compiling undefined templated functions (PR #67232)

2023-09-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67232 None >From ed30d89a3c8f0ec5296561e128b2af8b05ade5ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 22 Sep 2023 21:26:51 +0200 Subject: [PATCH] [clang][Interp] Fix compiling undefined

[clang] [clang][Interp] Handle CXXScalarValueInitExprs (PR #67147)

2023-09-23 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/67147 >From 9c0cc7fde8473c9b02733720149343c4b2dcddae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 23 Sep 2023 11:41:52 +0200 Subject:

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
sr-tream wrote: > I'm not an expert on ABI I too. I use exists function `ASTContext::getTypeAlign` - it must work correctly, if other functions like `ASTContext::getTypeSizeInCharsIfKnown` return correct results, because `ASTContext::getTypeSizeInCharsIfKnown` returns size with paddings for

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
@@ -1001,6 +1001,8 @@ void addLayoutInfo(const NamedDecl , HoverInfo ) { if (auto *RD = llvm::dyn_cast()) { if (auto Size = Ctx.getTypeSizeInCharsIfKnown(RD->getTypeForDecl())) HI.Size = Size->getQuantity() * 8; +if (!RD->isInvalidDecl() &&

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
https://github.com/sr-tream updated https://github.com/llvm/llvm-project/pull/67213 >From df0b44379ab2a4ba50458db0979bddff67c3e4b5 Mon Sep 17 00:00:00 2001 From: SR_team Date: Sat, 23 Sep 2023 03:49:23 +0300 Subject: [PATCH] [clangd] Show alignment for records and fields decls ---

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
https://github.com/zyn0217 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

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
https://github.com/zyn0217 commented: Thanks! This looks nice, but I think it's better to have more opinions from others. Moreover, I have a question regarding the test: It seems the alignment for a field depends on the ABI spec, i.e., it could be different across MS ABI and Itanium ABI. Is

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
@@ -1001,6 +1001,8 @@ void addLayoutInfo(const NamedDecl , HoverInfo ) { if (auto *RD = llvm::dyn_cast()) { if (auto Size = Ctx.getTypeSizeInCharsIfKnown(RD->getTypeForDecl())) HI.Size = Size->getQuantity() * 8; +if (!RD->isInvalidDecl() &&

[clang-tools-extra] [clangd] Show alignment for records and fields decls (PR #67213)

2023-09-23 Thread via cfe-commits
https://github.com/zyn0217 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

[clang] [clang][Interp] Fix returning nullptr from functions (PR #67229)

2023-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes isLive() is false for null pointers, so we need to special-case this here. --- Full diff: https://github.com/llvm/llvm-project/pull/67229.diff 2 Files Affected: - (modified) clang/lib/AST/Interp/Interp.h (+1-1) - (modified)

[clang] [clang][Interp] Fix returning nullptr from functions (PR #67229)

2023-09-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67229 isLive() is false for null pointers, so we need to special-case this here. >From 60a6eade88991e9f80627cb52eb55c1aecbbc1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 23 Sep 2023

[clang] 658b655 - [clang][Interp][NFC] Refactor ByteCodeEmitter a bit

2023-09-23 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-09-23T11:45:30+02:00 New Revision: 658b655191e997258ac0e5f3308c59e51c2a1ee3 URL: https://github.com/llvm/llvm-project/commit/658b655191e997258ac0e5f3308c59e51c2a1ee3 DIFF: https://github.com/llvm/llvm-project/commit/658b655191e997258ac0e5f3308c59e51c2a1ee3.diff

[clang-tools-extra] [include-cleaner] don't consider the associated header unused (PR #67228)

2023-09-23 Thread Sam McCall via cfe-commits
https://github.com/sam-mccall created https://github.com/llvm/llvm-project/pull/67228 Loosely, the "associated header" of `foo.cpp` is `foo.h`. It should be included, many styles include it first. So far we haven't special cased it in any way, and require this include to be justified. e.g. if

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-23 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/67222 None >From e12c178d95d2a12d76c292b3af757b1b293af83b Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 23 Sep 2023 03:22:18 -0400 Subject: [PATCH] [Driver] Hook up Haiku ARM support ---

[clang] Introduce paged vector (PR #66430)

2023-09-23 Thread Vassil Vassilev via cfe-commits
@@ -0,0 +1,307 @@ +//===- llvm/ADT/PagedVector.h - 'Lazyly allocated' vectors *- C++ +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[PATCH] D150226: [Clang] Remove ability to downgrade warning on the diagnostic for setting a non fixed enum to a value outside the range of the enumeration values

2023-09-23 Thread Carlos Galvez via Phabricator via cfe-commits
carlosgalvezp added a comment. @shafik @aaron.ballman @dblaikie Hello! Just wanted to check if there's any blockers for merging this patch? We are now on Clang 18, i.e. 2 releases after the warning was introduced, so IMO I believe it's a good time to turn it into a hard error and test it in

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #67170)

2023-09-23 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thanks @shafik , I wasn't aware! I will then close this PR and continue the discussion on Phab. https://github.com/llvm/llvm-project/pull/67170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Turn -Wenum-constexpr-conversion into a hard error (PR #67170)

2023-09-23 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/67170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes Fixes #67116. --- Full diff: https://github.com/llvm/llvm-project/pull/67221.diff 2 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+1-1) - (modified) clang/unittests/Format/FormatTestComments.cpp (+6)

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-23 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/67221 Fixes #67116. >From 9fa6ed9430896ee9164260227f0791986c750f0f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 22 Sep 2023 23:47:23 -0700 Subject: [PATCH] [clang-format] Fix a bug in aligning trailing comments

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-23 Thread Fangrui Song via cfe-commits
@@ -10,8 +10,10 @@ link_flags = [] if @LIBUNWIND_ENABLE_CET@: compile_flags.append('-fcf-protection=full') -if '@CMAKE_SYSTEM_NAME@' == 'Linux': -link_flags.append('-Wl,--export-dynamic') +# Add -Wl,--export-dynamic if supported by the linker (this CMake variable will

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-23 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/67205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-23 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/67205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)

2023-09-23 Thread Fangrui Song via cfe-commits
MaskRay wrote: > the missing -Wl,--export dynamic flag typo: missing `-` https://github.com/llvm/llvm-project/pull/67205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits