[clang] [llvm] [clang] Add scoped enum support to `StreamingDiagnostic` (PR #138089)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes This patch adds templated `operator<<` for diagnostics that pass scoped enums, saving people from `llvm::to_underlying()` clutter on the side of emitting the diagnostic. This eliminates 80 out of 220 u

[clang] [llvm] [clang] Add scoped enum support to `StreamingDiagnostic` (PR #138089)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/138089 This patch adds templated `operator<<` for diagnostics that pass scoped enums, saving people from `llvm::to_underlying()` clutter on the side of emitting the diagnostic. This eliminates 80 out of 220 usages of

[clang] [CIR] Upstream global initialization for VectorType (PR #137511)

2025-04-30 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/137511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ptrauth] add support for options parameter to __ptrauth (PR #136828)

2025-04-30 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From d32a1bd141a668a2d8e8c6315a38506c7e1be4c7 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][ptrauth] add support for options parameter to __ptrauth T

[clang] [clang][ptrauth] add support for options parameter to __ptrauth (PR #136828)

2025-04-30 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From f5b7cf409e3518f79ac6fce5d01876a51ae6f4e2 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][ptrauth] add support for options parameter to __ptrauth T

[clang] [clang][bytecode] Fix checking for integer overflow (PR #137962)

2025-04-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/8388 Here is the relevant piece

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Khem Raj via cfe-commits
https://github.com/kraj updated https://github.com/llvm/llvm-project/pull/138077 >From e9870d6a848a95cf58f890a7e6d3a93a27e7c061 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Apr 2025 19:51:19 -0700 Subject: [PATCH] libunwind: Do not use __attribute__((target("gcs"))) with non-clang comp

[clang] c51be1b - [clang][bytecode] Fix checking for integer overflow (#137962)

2025-04-30 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-01T07:35:33+02:00 New Revision: c51be1be3ac9c66fc0c598298edd1fd224c1da07 URL: https://github.com/llvm/llvm-project/commit/c51be1be3ac9c66fc0c598298edd1fd224c1da07 DIFF: https://github.com/llvm/llvm-project/commit/c51be1be3ac9c66fc0c598298edd1fd224c1da07.diff L

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Khem Raj via cfe-commits
https://github.com/kraj updated https://github.com/llvm/llvm-project/pull/138077 >From bcc31a9384d2df1c0f27ef140e1f0f9ee493034f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Apr 2025 19:51:19 -0700 Subject: [PATCH] libunwind: Use +gcs instead of gcs target attribute __attribute__((targe

[clang] [clang][ptrauth] add support for options parameter to __ptrauth (PR #136828)

2025-04-30 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From 21dc6e5a5c9762292bc135c62c6b442dc18908b3 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 30 Apr 2025 22:26:59 -0700 Subject: [PATCH] [clang][ptrauth] add support for options parameter to __ptrauth T

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Khem Raj via cfe-commits
https://github.com/kraj updated https://github.com/llvm/llvm-project/pull/138077 >From aabc92ee06f3ccf89bcccf759c50a667d4eada0c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Apr 2025 19:51:19 -0700 Subject: [PATCH] libunwind: Use +gcs instead of gcs target attribute __attribute__((targe

[clang] [clang][bytecode] Fix checking for integer overflow (PR #137962)

2025-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/137962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 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 HEAD~1 HEAD --extensions h,c -- libunwind/src/UnwindLevel1.c libunwind/src/shadow_sta

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Andrew Pinski via cfe-commits
pinskia wrote: Actually GCC 15 does support GCS, the syntax is just `__attribute__((target("+gcs")))` Note the + there. The error message is clear too. https://github.com/llvm/llvm-project/pull/138077 ___ cfe-commits mailing list cfe-commits@lists.ll

[clang] 4acfd83 - [clang][bytecode][NFC] Remove unused Context::getStack() (#138079)

2025-04-30 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-01T07:09:29+02:00 New Revision: 4acfd83ee492ba238c4082a5467a5a8e92d45102 URL: https://github.com/llvm/llvm-project/commit/4acfd83ee492ba238c4082a5467a5a8e92d45102 DIFF: https://github.com/llvm/llvm-project/commit/4acfd83ee492ba238c4082a5467a5a8e92d45102.diff L

[clang] [clang][bytecode] Remove obsolete test file (PR #138080)

2025-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/138080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d0a9727 - [clang][bytecode] Remove obsolete test file (#138080)

2025-04-30 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-01T07:16:47+02:00 New Revision: d0a97271a4ea2b0fe392afe498af20f8499260d2 URL: https://github.com/llvm/llvm-project/commit/d0a97271a4ea2b0fe392afe498af20f8499260d2 DIFF: https://github.com/llvm/llvm-project/commit/d0a97271a4ea2b0fe392afe498af20f8499260d2.diff L

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Khem Raj via cfe-commits
https://github.com/kraj updated https://github.com/llvm/llvm-project/pull/138077 >From 399e475a17022e6806803ddb7e83599403ffb53d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Apr 2025 19:51:19 -0700 Subject: [PATCH] libunwind: Do not use __attribute__((target("gcs"))) with non-clang comp

[clang] e70a8a6 - [clang][NFC] Convert `Sema::NameClassificationKind` to scoped enum

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-05-01T08:13:30+03:00 New Revision: e70a8a6e0e9c3700bcfe7e9cce3c5edee6a51022 URL: https://github.com/llvm/llvm-project/commit/e70a8a6e0e9c3700bcfe7e9cce3c5edee6a51022 DIFF: https://github.com/llvm/llvm-project/commit/e70a8a6e0e9c3700bcfe7e9cce3c5edee6a51022.

[clang] [clang][bytecode][NFC] Remove unused Context::getStack() (PR #138079)

2025-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/138079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5f3e5df - [clang][NFC] Convert `Sema::BuiltinCountedByRefKind` to scoped enum

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-05-01T08:01:03+03:00 New Revision: 5f3e5df48186a7e409d548deec13a68486e3b944 URL: https://github.com/llvm/llvm-project/commit/5f3e5df48186a7e409d548deec13a68486e3b944 DIFF: https://github.com/llvm/llvm-project/commit/5f3e5df48186a7e409d548deec13a68486e3b944.

[clang] [clang][ptrauth] add support for options parameter to __ptrauth (PR #136828)

2025-04-30 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/136828 >From b3de41c15edc527154e461e5b0df61642599b45e Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Wed, 23 Apr 2025 01:43:00 -0700 Subject: [PATCH 1/6] [clang][ptrauth] add support for options parameter to __ptraut

[clang] [clang][bytecode] Only print ptr/reference types via toAPValue() (PR #137965)

2025-04-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot8` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/15357 Here is the relevant piece of the

[clang] [nfc][clang] Rename function (PR #137874)

2025-04-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/21389 Here is the relevant piece of the build lo

[clang] [nfc][clang] Rename function (PR #137874)

2025-04-30 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk closed https://github.com/llvm/llvm-project/pull/137874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 53c175c - [nfc][clang] Rename function (#137874)

2025-04-30 Thread via cfe-commits
Author: Prabhu Rajasekaran Date: 2025-04-30T21:32:19-07:00 New Revision: 53c175ceafc58fcdf13fd51f73506a7d277873bb URL: https://github.com/llvm/llvm-project/commit/53c175ceafc58fcdf13fd51f73506a7d277873bb DIFF: https://github.com/llvm/llvm-project/commit/53c175ceafc58fcdf13fd51f73506a7d277873bb.

[clang] [clang][bytecode] Only print ptr/reference types via toAPValue() (PR #137965)

2025-04-30 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/137965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4258998 - [clang][bytecode] Only print ptr/reference types via toAPValue() (#137965)

2025-04-30 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-01T06:04:59+02:00 New Revision: 4258998654a67fb98da16f2c56cbb5912e990a9c URL: https://github.com/llvm/llvm-project/commit/4258998654a67fb98da16f2c56cbb5912e990a9c DIFF: https://github.com/llvm/llvm-project/commit/4258998654a67fb98da16f2c56cbb5912e990a9c.diff L

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-30 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From b2cbc7730aca7c75679c070292cfd07cf55854af Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/2] Format: add AlignAfterControlStatement Introduce new style op

[clang] c2c0ef5 - [clang][NFC] Convert `Sema::VariadicCallType` to scoped enum

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2025-05-01T07:01:06+03:00 New Revision: c2c0ef50a1a679058fffe445a6e78b6d232dc231 URL: https://github.com/llvm/llvm-project/commit/c2c0ef50a1a679058fffe445a6e78b6d232dc231 DIFF: https://github.com/llvm/llvm-project/commit/c2c0ef50a1a679058fffe445a6e78b6d232dc231.

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
@@ -3466,6 +3479,8 @@ def get_tokens(self, locations=None, extent=None): """ if locations is not None: extent = SourceRange(start=locations[0], end=locations[1]) +if extent is None: +raise TypeError("get_tokens() requires at least

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-04-30 Thread Owen Pan via cfe-commits
owenca wrote: > When I updated, my build target for `FormatTests` stopped working. > > ``` > ninja -C build clang-format FormatTests > ninja: Entering directory `build' > ninja: error: unknown target 'FormatTests' > ``` > > I'm trying to figure out what changed or how to modify my workflow. I t

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
@@ -2955,6 +2962,10 @@ def __getitem__(self, key): raise IndexError return CompletionChunk(self.obj, key) +def __iter__(self): +for i in range(len(self)): +yield self[i] + Endilll wrote: Can we put this under `if TY

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
@@ -2888,8 +2896,7 @@ def string(self): if res: return CompletionString(res) -else: -None +return None Endilll wrote: Can you invert this if statement, so that we do early exit on unhappy code paths? https://g

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/138074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Thank you for working on this! Looks good overall. I left some comments https://github.com/llvm/llvm-project/pull/138074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [clang-format] Correctly annotate user-defined conversion function call (PR #137914)

2025-04-30 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/137914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e6d7f46 - [clang-format] Correctly annotate user-defined conversion function call (#137914)

2025-04-30 Thread via cfe-commits
Author: Owen Pan Date: 2025-04-30T20:08:00-07:00 New Revision: e6d7f46ce9a6ffdfc206802131e0d79afb624b3f URL: https://github.com/llvm/llvm-project/commit/e6d7f46ce9a6ffdfc206802131e0d79afb624b3f DIFF: https://github.com/llvm/llvm-project/commit/e6d7f46ce9a6ffdfc206802131e0d79afb624b3f.diff LOG:

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Khem Raj (kraj) Changes …compilers This attribute is unsupported in GCC, so far it worked because before GCC15 did not define this macros in _CHKFEAT_GCS in arm_acle.h [1] With gcc15 compiler libunwind's check for this macros is succ

[libunwind] libunwind: Do not use __attribute__((target("gcs"))) with non-clang … (PR #138077)

2025-04-30 Thread Khem Raj via cfe-commits
https://github.com/kraj created https://github.com/llvm/llvm-project/pull/138077 …compilers This attribute is unsupported in GCC, so far it worked because before GCC15 did not define this macros in _CHKFEAT_GCS in arm_acle.h [1] With gcc15 compiler libunwind's check for this macros is succeedi

[clang] 8effc8d - Reland [clang-format] Add OneLineFormatOffRegex option (#137577)

2025-04-30 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2025-04-30T19:58:59-07:00 New Revision: 8effc8da292bfacb823a7e3c4134296da481fedc URL: https://github.com/llvm/llvm-project/commit/8effc8da292bfacb823a7e3c4134296da481fedc DIFF: https://github.com/llvm/llvm-project/commit/8effc8da292bfacb823a7e3c4134296da481fedc.diff LOG:

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/138074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
@@ -3466,6 +3479,8 @@ def get_tokens(self, locations=None, extent=None): """ if locations is not None: extent = SourceRange(start=locations[0], end=locations[1]) +if extent is None: +raise TypeError("get_tokens() requires at least

[clang] [clang-format] Add OneLineFormatOffRegex option (PR #137577)

2025-04-30 Thread Owen Pan via cfe-commits
owenca wrote: > > @dyung I don't see anything in this patch could cause a failure in CodGen > > tests. Have you verified it e.g. by running the tests on > > [f175030](https://github.com/llvm/llvm-project/commit/f1750300aad0e49383cd4b206e2354f1300a40a8)? > > It seems several of the listed faili

[clang] [clang-format] Add SpaceAfterOperatorKeyword option (PR #137610)

2025-04-30 Thread Owen Pan via cfe-commits
https://github.com/owenca commented: Please also update the release notes. https://github.com/llvm/llvm-project/pull/137610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add SpaceAfterOperatorKeyword option (PR #137610)

2025-04-30 Thread Owen Pan via cfe-commits
@@ -17630,6 +17630,10 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) { verifyFormat("int x = int (y);", SomeSpace2); verifyFormat("auto lambda = []() { return 0; };", SomeSpace2); + FormatStyle SpaceAfterOperatorKeyword = getLLVMStyle(); + SpaceAfterOperatorKeyword

[clang] [clang-format] Add SpaceAfterOperatorKeyword option (PR #137610)

2025-04-30 Thread Owen Pan via cfe-commits
@@ -4463,6 +4463,14 @@ struct FormatStyle { /// \version 9 bool SpaceAfterLogicalNot; + /// If \c true, a space will be inserted after the ``operator`` keyword. + /// \code + ///true:false: + ///bool operator == (int a) vs.

[clang] [clang-format] Add SpaceAfterOperatorKeyword option (PR #137610)

2025-04-30 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/137610 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
@@ -314,6 +316,8 @@ def is_in_system_header(self): return conf.lib.clang_Location_isInSystemHeader(self) # type: ignore [no-any-return] def __eq__(self, other): +if not isinstance(other, SourceLocation): +return False DeinAlpt

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum deleted https://github.com/llvm/llvm-project/pull/138074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jannick Kremer (DeinAlptraum) Changes This adds a few logical changes that might require some discussion to the libclang/python typing project, as the next step towards #76664 --- Full diff: https://github.com/llvm/llvm-project/pull/1380

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/138074 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Use std::move to avoid copy (PR #138073)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged this code for using copy when we could use std::move. Worth noting that CD.Message is a StringRef but Conflict.Message is std::string. Otherwise I would have used a temporary in pla

[clang] [libclang/python] Add some logical typing changes. (PR #138074)

2025-04-30 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum created https://github.com/llvm/llvm-project/pull/138074 This adds a few logical changes that might require some discussion to the libclang/python typing project, as the next step towards #76664 >From 4c90f65045c1fdabc1f91c746b1ecae04e14dd4e Mon Sep 17 00:00:00

[clang] [Clang][NFC] Use std::move to avoid copy (PR #138073)

2025-04-30 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/138073 Static analysis flagged this code for using copy when we could use std::move. Worth noting that CD.Message is a StringRef but Conflict.Message is std::string. Otherwise I would have used a temporary in place and

[clang-tools-extra] [clang-doc] Track Descriptions and TypeDeclaration for types (PR #138058)

2025-04-30 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#138063** https://app.graphite.dev/github/pr/llvm/llvm-project/138063?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#138062** https://app.graphite.dev/github/pr/llvm/llvm-

[clang] e6a5d73 - [WebKit checkers] Treat std::bit_cast as a pointer conversion (#137476)

2025-04-30 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-04-30T17:59:31-07:00 New Revision: e6a5d73f4d68462c1913fe9ac12217850872ae4e URL: https://github.com/llvm/llvm-project/commit/e6a5d73f4d68462c1913fe9ac12217850872ae4e DIFF: https://github.com/llvm/llvm-project/commit/e6a5d73f4d68462c1913fe9ac12217850872ae4e.diff

[clang] [WebKit checkers] Treat std::bit_cast as a pointer conversion (PR #137476)

2025-04-30 Thread Ryosuke Niwa via cfe-commits
rniwa wrote: Thanks for the review! https://github.com/llvm/llvm-project/pull/137476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Track Descriptions and TypeDeclaration for types (PR #138058)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes Split from #133161. This patch allows Typedefs to now track both their declarations and full descriptions. Subsequent patches will leverage the additional fields in the representation. Co-authored-b

[clang] [webkit.UncountedLambdaCapturesChecker] Treat a copy capture of a CheckedPtr object as safe (PR #138068)

2025-04-30 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/138068 Allow copy capture of a reference to a CheckedPtr capable object since such a capture will copy the said object instead of keeping a dangling reference to the object. Rate limit · GitHub

[clang-tools-extra] [clang-doc] Track Descriptions and TypeDeclaration for types (PR #138058)

2025-04-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi ready_for_review https://github.com/llvm/llvm-project/pull/138058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Track Descriptions and TypeDeclaration for types (PR #138058)

2025-04-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/138058 Split from #133161. This patch allows Typedefs to now track both their declarations and full descriptions. Subsequent patches will leverage the additional fields in the representation. Co-authored-by: Peter Chou

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/8376 Here is the relevant piece

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-30 Thread Iris Shi via cfe-commits
https://github.com/el-ev closed https://github.com/llvm/llvm-project/pull/137501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Treat std::bit_cast as a pointer conversion (PR #137476)

2025-04-30 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/137476 >From c76e86105b5ba03cc2a3c8399670b2b38eb8e6ea Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Sat, 26 Apr 2025 14:03:13 -0700 Subject: [PATCH 1/2] [WebKit checkers] Treat std::bit_cast as a pointer conversion

[clang] [clang] Remove FEM_Indeterminable (PR #137661)

2025-04-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Yeah, clang-15 seems to be the only time we would ever produce -1: https://godbolt.org/z/7M61eff4f https://github.com/llvm/llvm-project/pull/137661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [HLSL][RootSignature] Define and integrate rootsig clang attr and decl (PR #137690)

2025-04-30 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/137690 >From 0ab73ae597164aa039be69534056edbe26e55243 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Mon, 28 Apr 2025 18:42:10 + Subject: [PATCH 01/11] [HLSL][RootSignature] Define and integrate rootsig clang a

[clang] [WebKit checkers] Treat std::bit_cast as a pointer conversion (PR #137476)

2025-04-30 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/137476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 708053c - [CIR] Upstream initial support for union type (#137501)

2025-04-30 Thread via cfe-commits
Author: Iris Shi Date: 2025-05-01T07:56:38+08:00 New Revision: 708053cd7ec576c67fd1c72cd6b836987fbee2ce URL: https://github.com/llvm/llvm-project/commit/708053cd7ec576c67fd1c72cd6b836987fbee2ce DIFF: https://github.com/llvm/llvm-project/commit/708053cd7ec576c67fd1c72cd6b836987fbee2ce.diff LOG:

[clang] [clang] Shard out some small gtest binaries (PR #138021)

2025-04-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/4484 Here is the relevant pie

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/138041 >From ae1fd50a03a0e5f7c0c40463dc6a07f981f79f66 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 30 Apr 2025 11:10:53 -0700 Subject: [PATCH 1/3] [CIR] Upstream pointer arithmetic support This adds suppor

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-04-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/138052 None >From 3e612b30626cfe3963fdbed341c028a8a8f0917e Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:11:55 -0700 Subject: [PATCH] [clang-doc][NFC] Add TODO for future work --- clang-tools-e

[clang-tools-extra] [clang-tidy] Return error code on config parse error (PR #136167)

2025-04-30 Thread Galen Elias via cfe-commits
@@ -46,20 +46,20 @@ TEST(ClangTidyOptionsProvider, InMemoryFileSystems) { FileOptionsProvider FileOpt({}, {}, {}, FileSystem); - ClangTidyOptions File1Options = + llvm::ErrorOr File1Options = FileOpt.getOptions("ProjectRoot/SubDir1/File.cpp"); - ClangTidyOptions F

[clang] [CIR] Upstream initial support for union type (PR #137501)

2025-04-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. Looks good to me. Thanks for the work! https://github.com/llvm/llvm-project/pull/137501 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang-tools-extra] [clang-doc] Add missing comment for Base (PR #138053)

2025-04-30 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#138053** https://app.graphite.dev/github/pr/llvm/llvm-project/138053?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1380

[clang-tools-extra] [clang-doc] Add missing comment for Base (PR #138053)

2025-04-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/138053 None >From 056ab13fceab69a11a9bb1c4c40b5ea901bad7bd Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:22:05 -0700 Subject: [PATCH] [clang-doc] Add missing comment for Base --- clang-tools-ex

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138052.diff 1 Files Affected: - (modified) clang-tools-extra/clang-doc/Representation.h (+1) ``diff diff --git a/clang-tools-e

[clang-tools-extra] [clang-doc][NFC] Add TODO for future work (PR #138052)

2025-04-30 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#138052** https://app.graphite.dev/github/pr/llvm/llvm-project/138052?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1380

[clang-tools-extra] [clang-doc][NFC] Fix missing documentation for EndLineNumber (PR #138051)

2025-04-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/138051.diff 1 Files Affected: - (modified) clang-tools-extra/clang-doc/Representation.h (+2-2) ``diff diff --git a/clang-tools

[clang] [clang] Remove FEM_Indeterminable (PR #137661)

2025-04-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @AaronBallman @zahiraam given we do not support FEM_Indeterminate, and there appears to be no way to actually get clang into the state anyway, I think that the correct thing to do is to remove it and work out had to get this to cooperate with the OPTION macro if we ever do add s

[clang-tools-extra] [clang-doc][NFC] Fix missing documentation for EndLineNumber (PR #138051)

2025-04-30 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#138051** https://app.graphite.dev/github/pr/llvm/llvm-project/138051?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1380

[clang-tools-extra] [clang-doc][NFC] Fix missing documentation for EndLineNumber (PR #138051)

2025-04-30 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/138051 None >From ee27ca7f7275b334e16312fc1cf75d6401249691 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 29 Apr 2025 18:16:45 -0700 Subject: [PATCH] [clang-doc][NFC] Fix missing documentation for EndLineNumber

[clang] afd738c - [clang] Shard out some small gtest binaries (#138021)

2025-04-30 Thread via cfe-commits
Author: Reid Kleckner Date: 2025-04-30T16:40:21-07:00 New Revision: afd738cd9016ddef4e26b309770ba35fd017a178 URL: https://github.com/llvm/llvm-project/commit/afd738cd9016ddef4e26b309770ba35fd017a178 DIFF: https://github.com/llvm/llvm-project/commit/afd738cd9016ddef4e26b309770ba35fd017a178.diff

[clang] [clang] Shard out some small gtest binaries (PR #138021)

2025-04-30 Thread Reid Kleckner via cfe-commits
https://github.com/rnk closed https://github.com/llvm/llvm-project/pull/138021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Convert __builtin_dynamic_object_size into a calculation (PR #80256)

2025-04-30 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/80256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-04-30 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu commented: Thanks for making all the changes. Just a few minor comments. https://github.com/llvm/llvm-project/pull/136098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang] Shard out some small gtest binaries (PR #138021)

2025-04-30 Thread Nico Weber via cfe-commits
https://github.com/nico approved this pull request. Very cool, thanks! Thoughts on https://github.com/llvm/llvm-project/pull/134196#discussion_r2068617059 ? :) https://github.com/llvm/llvm-project/pull/138021 ___ cfe-commits mailing list cfe-commits@

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 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 HEAD~1 HEAD --extensions cpp,h -- clang/test/CIR/CodeGen/pointers.cpp clang/lib/CIR/C

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/138041 >From ae1fd50a03a0e5f7c0c40463dc6a07f981f79f66 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 30 Apr 2025 11:10:53 -0700 Subject: [PATCH 1/2] [CIR] Upstream pointer arithmetic support This adds suppor

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Erich Keane via cfe-commits
@@ -1152,8 +1169,72 @@ getUnwidenedIntegerType(const ASTContext &astContext, const Expr *e) { static mlir::Value emitPointerArithmetic(CIRGenFunction &cgf, const BinOpInfo &op, bool isSubtraction

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Erich Keane via cfe-commits
@@ -1152,8 +1169,72 @@ getUnwidenedIntegerType(const ASTContext &astContext, const Expr *e) { static mlir::Value emitPointerArithmetic(CIRGenFunction &cgf, const BinOpInfo &op, bool isSubtraction

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Once comment + assert are in place, I'm happy. https://github.com/llvm/llvm-project/pull/138041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/138041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Reland: [llvm][clang] Allocate a new stack instead of spawning a new thread to get more stack space (PR #136046)

2025-04-30 Thread Reid Kleckner via cfe-commits
https://github.com/rnk approved this pull request. https://github.com/llvm/llvm-project/pull/136046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][counted_by] Add support for 'counted_by' on struct pointers (PR #137250)

2025-04-30 Thread Bill Wendling via cfe-commits
bwendling wrote: Friendly ping. :-) https://github.com/llvm/llvm-project/pull/137250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add support for lambda-expression in `use-trailing-return-type` check (PR #135383)

2025-04-30 Thread Baranov Victor via cfe-commits
vbvictor wrote: Ping https://github.com/llvm/llvm-project/pull/135383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-04-30 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,39 @@ +! Tests for -fprofile-generate and -fprofile-use flag compatibility. These two +! flags behave similarly to their GCC counterparts: +! +! -fprofile-generate Generates the profile file ./default.profraw +! -fprofile-use=/file Uses the profile file /file

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,73 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s + +// Should generate basic pointer arithmetics. +void foo(int *iptr, char *cptr, unsigned ustride) { + iptr + 2; + // CHECK: %[[#STR

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Andy Kaylor via cfe-commits
@@ -1152,8 +1169,72 @@ getUnwidenedIntegerType(const ASTContext &astContext, const Expr *e) { static mlir::Value emitPointerArithmetic(CIRGenFunction &cgf, const BinOpInfo &op, bool isSubtraction

[clang] [CIR] Upstream pointer arithmetic support (PR #138041)

2025-04-30 Thread Andy Kaylor via cfe-commits
@@ -1152,8 +1169,72 @@ getUnwidenedIntegerType(const ASTContext &astContext, const Expr *e) { static mlir::Value emitPointerArithmetic(CIRGenFunction &cgf, const BinOpInfo &op, bool isSubtraction

  1   2   3   4   5   6   >