[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-18 Thread via cfe-commits
github-actions[bot] wrote: @selimkeles Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

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

[clang-tools-extra] [llvm] [clang-doc] Adds a mustache backend (PR #133161)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: OK. I'll put up a patch set around Tuesday, April 22. https://github.com/llvm/llvm-project/pull/133161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors zyn0217 wrote: > If calling ActOn

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

2025-04-18 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136396 ___ 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 parsing C-style cast lambda (PR #136099)

2025-04-18 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/136099 >From 53033b278f89a508d079614eadd58b103211d5dd Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 17 Apr 2025 00:35:19 -0700 Subject: [PATCH 1/2] [clang-format] Fix a bug in parsing C-style cast lambda Fix #1359

[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16460 Her

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ 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 parsing C-style cast of lambdas (PR #136099)

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

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 deleted https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors zyn0217 wrote: > I think we still

[clang-tools-extra] e006936 - [clang-tidy] Use llvm::less_second (NFC) (#136396)

2025-04-18 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-18T20:34:01-07:00 New Revision: e00693659b9b18647565e380c27da039507673f4 URL: https://github.com/llvm/llvm-project/commit/e00693659b9b18647565e380c27da039507673f4 DIFF: https://github.com/llvm/llvm-project/commit/e00693659b9b18647565e380c27da039507673f4.diff L

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/136400 This macro appears to have been introduced accidentally and isn't used anywhere. >From 3e6564eb6304ded24d7817be08dfb257e4d9c66b Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 19 Apr 2025 11:41:48 +0800

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This macro appears to have been introduced accidentally and isn't used anywhere. --- Full diff: https://github.com/llvm/llvm-project/pull/136400.diff 1 Files Affected: - (modified) clang/lib/AST/ExprConsta

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-shared` running on `bolt-worker` while building `clang,llvm` at step 6 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/151/builds/5452 Here is the rel

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-clang` running on `bolt-worker` while building `clang,llvm` at step 5 "build-clang-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/113/builds/6860 Here is the relevant piece

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 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/include/clang/Interpreter/Interpreter.h clan

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 82a2be2dd0780bd3d57f4a22d61a4b0752696934 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH 1/5] Fix cuda flag with clang-repl --- clang/include/clang/Inte

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: cc @AaronBallman @vgvassilev This fixes this discussion y'all had https://github.com/llvm/llvm-project/pull/107737#discussion_r1806913203 Unfortunately I am on an Apple m1 so I can just justify seeing this on my side ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. https://github.com/llvm/llvm-project/pull/136402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 updated https://github.com/llvm/llvm-project/pull/136404 >From 1b18e96882590825075b8f8e5094fdcb5225d349 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Fri, 18 Apr 2025 18:45:00 +0530 Subject: [PATCH] Fix cuda flag with clang-repl --- clang/include/clang/Interpre

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 edited https://github.com/llvm/llvm-project/pull/136404 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c300033 - Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (#136402)

2025-04-18 Thread via cfe-commits
Author: Vitaly Buka Date: 2025-04-18T22:14:03-07:00 New Revision: c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8 URL: https://github.com/llvm/llvm-project/commit/c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8 DIFF: https://github.com/llvm/llvm-project/commit/c3000333cda22ec7d5ae2597c6aadcdc5d6ea7f8.diff L

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-18 Thread via cfe-commits
rockeet wrote: We used this extension to improve virtual function calling performance, there are simple and small virtual functions which are frequently called and can not be eliminated and it is in a delegation thus compiler can not optimize, so we use pmf to bound the virtual function, like

[clang-tools-extra] [clang-tidy] Use llvm::less_second (NFC) (PR #136396)

2025-04-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/136400 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Remove unused debug macro (PR #136400)

2025-04-18 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Actually it's used :( ```cpp /var/lib/buildkite-agent/builds/linux-56-59b8f5d88-5b8n6-1/llvm-project/github-pull-requests/clang/lib/AST/ExprConstant.cpp:11780:3: error: use of undeclared identifier 'DEBUG_TYPE'   | LLVM_DEBUG(llvm::dbgs() << "The number of elements to initialize:

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/136295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-nfc` running on `bolt-worker` while building `clang,llvm` at step 8 "test-build-bolt-check-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/17438 Here is the releva

[clang] [NFC][Clang] Introduce type aliases to replace use of auto in clang/lib/CodeGen/CGCall.cpp. (PR #135861)

2025-04-18 Thread Shafik Yaghmour via cfe-commits
@@ -712,8 +713,7 @@ CodeGenTypes::arrangeBlockFunctionDeclaration(const FunctionProtoType *proto, const CGFunctionInfo & CodeGenTypes::arrangeBuiltinFunctionCall(QualType resultType, const CallArgList &args) { - // FIXME: Kill copy. --

[clang] [NFC][Clang] Introduce type aliases to replace use of auto in clang/lib/CodeGen/CGCall.cpp. (PR #135861)

2025-04-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/135861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve `BlockEnd` inlayhint presentation (PR #136106)

2025-04-18 Thread via cfe-commits
https://github.com/MythreyaK updated https://github.com/llvm/llvm-project/pull/136106 >From a0e3a33eda624bbebd436d6ac97a18348be39e7c Mon Sep 17 00:00:00 2001 From: daiyousei-qz Date: Tue, 14 Nov 2023 20:42:10 -0800 Subject: [PATCH 1/3] Improve BlockEnd presentation including: 1. Explicitly sta

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/136402 Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. >From cf231b38b4df359ede237a2d06bce5381fa460a2 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 18 Apr 2025 21:25:42 -0700 Subj

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Vitaly Buka (vitalybuka) Changes Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. --- Patch is 93.85 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/136402.diff

[clang] [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #135135)

2025-04-18 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: https://lab.llvm.org/buildbot/#/builders/66/builds/12718 https://lab.llvm.org/buildbot/#/builders/186/builds/8291 https://github.com/llvm/llvm-project/pull/135135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes Reverts llvm/llvm-project#135135 Breaks several bots, details in #135135. --- Patch is 93.85 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/136402.diff 6 Fil

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 created https://github.com/llvm/llvm-project/pull/136404 `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm::sys

[clang] [clan-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anutosh Bhat (anutosh491) Changes `clang-repl --cuda` was previously crashing with a segmentation fault, instead of reporting a clean error ``` (base) anutosh491@Anutoshs-MacBook-Air bin % ./clang-repl --cuda #0 0x000111da4fbc llvm:

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/136402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add support for GCC bound member functions extension (PR #135649)

2025-04-18 Thread via cfe-commits
rockeet wrote: > > > This patch adds support for GCC bound member functions extension: > > > https://gcc.gnu.org/onlinedocs/gcc/Bound-member-functions.html > > > Related issue: #22495 Closes #82727 > > > > > > I think this requires an RFC justifying carrying the extension. It's a > > non-conf

[clang] [clang-format] Fix a bug in parsing C-style cast of lambdas (PR #136099)

2025-04-18 Thread Owen Pan via cfe-commits
@@ -2371,7 +2371,8 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() { if ((Previous && ((Previous->Tok.getIdentifierInfo() && !Previous->isOneOf(tok::kw_return, tok::kw_co_await, tok::kw_co_yield, tok::kw_c

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Petr Hosek via cfe-commits
@@ -352,6 +352,8 @@ static MCAsmInfo *createAArch64MCAsmInfo(const MCRegisterInfo &MRI, MAI = new AArch64MCAsmInfoMicrosoftCOFF(); else if (TheTriple.isOSBinFormatCOFF()) MAI = new AArch64MCAsmInfoGNUCOFF(); + else if (TheTriple.isUEFI()) +MAI = new AArch64MCAsm

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136391 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136393 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

2025-04-18 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/136394 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

2025-04-18 Thread Owen Pan via cfe-commits
owenca wrote: @irymarchyk can you resolve the conflicts? https://github.com/llvm/llvm-project/pull/134337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers" (PR #136402)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/16465 Her

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Tristan Ross via cfe-commits
@@ -352,6 +352,8 @@ static MCAsmInfo *createAArch64MCAsmInfo(const MCRegisterInfo &MRI, MAI = new AArch64MCAsmInfoMicrosoftCOFF(); else if (TheTriple.isOSBinFormatCOFF()) MAI = new AArch64MCAsmInfoGNUCOFF(); + else if (TheTriple.isUEFI()) +MAI = new AArch64MCAsm

[clang] [clang][bytecode] Diagnose failed MemberPtrPtr casts differently (PR #136407)

2025-04-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/136407 Return Invalid() here instead of just false to match the diagnostic output of the current interpreter. >From 1446ab0c9e4c6b32d330777221b2f5ebc63beb02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?

[clang] [clang][bytecode] Diagnose failed MemberPtrPtr casts differently (PR #136407)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Return Invalid() here instead of just false to match the diagnostic output of the current interpreter. --- Full diff: https://github.com/llvm/llvm-project/pull/136407.diff 2 Files Affected: - (modified) c

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:24 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136393). https://github.com/llvm/llvm-project/pull/136393

[clang-tools-extra] 5607a3b - [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (#136393)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:25:39-07:00 New Revision: 5607a3b09c6fb6026adfcfb42710306a63523c57 URL: https://github.com/llvm/llvm-project/commit/5607a3b09c6fb6026adfcfb42710306a63523c57 DIFF: https://github.com/llvm/llvm-project/commit/5607a3b09c6fb6026adfcfb42710306a63523c57.diff LO

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

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

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:33 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136391). https://github.com/llvm/llvm-project/pull/136391

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:32 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136394). https://github.com/llvm/llvm-project/pull/136394

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:33 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136389). https://github.com/llvm/llvm-project/pull/136389

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

2025-04-18 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **Apr 19, 2:32 AM EDT**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/136390). https://github.com/llvm/llvm-project/pull/136390

[clang-tools-extra] [clang-doc][NFC] Use qualified auto (PR #136394)

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

[clang-tools-extra] c274bbe - [clang-doc][NFC] Prefer static functions for internal APIs (#136391)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:57-07:00 New Revision: c274bbed6aa5254ec3b97b25471dd08c67224350 URL: https://github.com/llvm/llvm-project/commit/c274bbed6aa5254ec3b97b25471dd08c67224350 DIFF: https://github.com/llvm/llvm-project/commit/c274bbed6aa5254ec3b97b25471dd08c67224350.diff LO

[clang-tools-extra] c5c2851 - [clang-doc][NFC] Avoid else after return (#136389)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:44-07:00 New Revision: c5c285178ccb1769e6d4dfeeb8df7663ec068a55 URL: https://github.com/llvm/llvm-project/commit/c5c285178ccb1769e6d4dfeeb8df7663ec068a55 DIFF: https://github.com/llvm/llvm-project/commit/c5c285178ccb1769e6d4dfeeb8df7663ec068a55.diff LO

[clang-tools-extra] [clang-doc][NFC] Avoid C-style casts (PR #136390)

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

[clang-tools-extra] 8376edb - [clang-doc][NFC] Avoid C-style casts (#136390)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:32-07:00 New Revision: 8376edb143c4ea0d4d166b81c9667c2341a9533d URL: https://github.com/llvm/llvm-project/commit/8376edb143c4ea0d4d166b81c9667c2341a9533d DIFF: https://github.com/llvm/llvm-project/commit/8376edb143c4ea0d4d166b81c9667c2341a9533d.diff LO

[clang-tools-extra] e27aa12 - [clang-doc][NFC] Use qualified auto (#136394)

2025-04-18 Thread via cfe-commits
Author: Paul Kirth Date: 2025-04-18T23:34:03-07:00 New Revision: e27aa12d47468e4717622a230bb560490b66c3e7 URL: https://github.com/llvm/llvm-project/commit/e27aa12d47468e4717622a230bb560490b66c3e7 DIFF: https://github.com/llvm/llvm-project/commit/e27aa12d47468e4717622a230bb560490b66c3e7.diff LO

[clang-tools-extra] [clang-doc][NFC] Prefer static functions for internal APIs (PR #136391)

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

[clang-tools-extra] [clang-doc][NFC] Avoid else after return (PR #136389)

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

[clang-tools-extra] [clang-doc][NFC] Use LLVM style naming in YAMLGenerator.cpp (PR #136393)

2025-04-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-windows` running on `premerge-windows-1` while building `clang-tools-extra` at step 8 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/

[clang] 9b6fbc0 - [CIR] Infer MLIR context in type builders when possible (#136362)

2025-04-18 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-04-19T08:40:11+02:00 New Revision: 9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c URL: https://github.com/llvm/llvm-project/commit/9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c DIFF: https://github.com/llvm/llvm-project/commit/9b6fbc06ad532e455960bbe6e4bffa5e72eb9e8c.diff

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread via cfe-commits
@@ -2218,27 +2218,20 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) { CalledSignatureHelp = true; return PreferredType; }; + bool KnownInvalidCall = false; cor3ntin wrote: ```suggestion bool ExpressionListIsInvalid = f

[clang] c5d5972 - [clang][bytecode] Reject constexpr-unknown values in CheckStore (#136279)

2025-04-18 Thread via cfe-commits
Author: Timm Baeder Date: 2025-04-18T12:48:16+02:00 New Revision: c5d59723cbf9743f7a0534a6ca87383abb6785a7 URL: https://github.com/llvm/llvm-project/commit/c5d59723cbf9743f7a0534a6ca87383abb6785a7 DIFF: https://github.com/llvm/llvm-project/commit/c5d59723cbf9743f7a0534a6ca87383abb6785a7.diff L

[clang] [CIR] Upstream support for record packing and padding (PR #136036)

2025-04-18 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/136036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Justin Bogner via cfe-commits
bogner wrote: This doesn't seem right. Are we just misusing `DiagnosticInfoUnsupported` here? The `Function` argument for `DiagnosticInfoWithLocationBase` is clearly meant to be part of the location (as evidenced by the "in function XYZ" part of the message). I suspect that we should really be

[clang] [Clang] disallow use of attributes before extern template declarations (PR #136328)

2025-04-18 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/136328 Fixes #79893 --- This PR addresses the issue of _attributes_ being incorrectly allowed on `extern template` declarations ```cpp [[deprecated]] extern template struct S; ``` >From 0729ae4d4a971905aefc

[clang] [Clang] disallow use of attributes before extern template declarations (PR #136328)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #79893 --- This PR addresses the issue of _attributes_ being incorrectly allowed on `extern template` declarations ```cpp [[deprecated]] extern template struct S; ``` --- Full diff: htt

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-18 Thread Valentin Clement バレンタイン クレメン via cfe-commits
https://github.com/clementval approved this pull request. LGTM. I didn't go deep into the clang part since I don't have much knowledge there. There rest looks good. I'll merge https://github.com/llvm/llvm-project/pull/136341 as soon as the pre-commit ci is done. https://github.com/llvm/llvm-

[clang] [Clang] Improve error recovery for invalid calls (PR #136295)

2025-04-18 Thread Matheus Izvekov via cfe-commits
@@ -34,21 +34,22 @@ void test_invalid_call_1(int s) { int some_func2(int a, int b); void test_invalid_call_2() { - // CHECK: -RecoveryExpr {{.*}} 'int' contains-errors + // CHECK: -RecoveryExpr {{.*}} '' contains-errors mizvekov wrote: FWIW I think its

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/136234 >From 562084ce64581b1cffe30024082f9eb84393875c Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Thu, 17 Apr 2025 17:42:34 -0700 Subject: [PATCH 1/3] [DirectX] add Function name to DiagnosticInfoUnsupported Msg

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp updated https://github.com/llvm/llvm-project/pull/100714 From f4c0dc8c6214ea913254362f36935add3414811c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 26 Jul 2024 09:40:42 +0200 Subject: [PATCH] [clang][Driver] Support passing arbitra

[clang] [clang][Driver] Support passing arbitrary args to -cc1as with -Xclangas. (PR #100714)

2025-04-18 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp edited https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (PR #100714)

2025-04-18 Thread Alex Rønne Petersen via cfe-commits
https://github.com/alexrp edited https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Analyzer] Fix error path of builtin overflow (PR #136345)

2025-04-18 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag created https://github.com/llvm/llvm-project/pull/136345 According to https://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins, result of builtin_*_overflow functions will be initialized even in case of overflow. Align analyzer logic to docs a

[clang] [clang][Analyzer] Fix error path of builtin overflow (PR #136345)

2025-04-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 @llvm/pr-subscribers-clang Author: Pavel Skripkin (pskrgag) Changes According to https://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins, result of builtin_*_overflow functions will be initialized even in

[clang] [clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (PR #100714)

2025-04-18 Thread Alex Rønne Petersen via cfe-commits
alexrp wrote: Applied review suggestions, and updated PR/commit descriptions. https://github.com/llvm/llvm-project/pull/100714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang] Handle instantiated members to determine visibility" (PR #136317)

2025-04-18 Thread Jan Patrick Lehr via cfe-commits
https://github.com/jplehr approved this pull request. LGTM Thanks! https://github.com/llvm/llvm-project/pull/136317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ARM][AArch64] Define intrinsics guarded by __has_builtin on all platforms (PR #128222)

2025-04-18 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/128222 >From 86cde46f62fae495077e3e8e00f75307d644e651 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Thu, 17 Apr 2025 12:07:02 -0700 Subject: [PATCH 1/2] [clang][ARM] Define intrinsics guarded by __has_builtin on

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
@@ -2504,23 +2505,37 @@ sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s) NumUninitAnalysisVariables(0), MaxUninitAnalysisVariablesPerFunction(0), NumUninitAnalysisBlockVisits(0), MaxUninitAnalysisBlockVisitsPerFunction(0) { +} + +// We need this he

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-18 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/136234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
@@ -2493,9 +2493,10 @@ class sema::AnalysisBasedWarnings::InterProceduralData { CalledOnceInterProceduralData CalledOnceData; }; -static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { - return (unsigned)!D.isIgnored(diag, SourceLocation()); -} +template +static

[clang] Control analysis-based diagnostics with #pragma (PR #136323)

2025-04-18 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/136323 >From 3beecb29772e13c6a1a41877e5e8cbbfb17a88f2 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Fri, 18 Apr 2025 12:26:36 -0400 Subject: [PATCH 1/5] Control analysis-based diagnostics with #pragma Previo

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/136247 >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 17 Apr 2025 20:06:51 -0700 Subject: [PATCH 1/4] [clang][uefi] add arm, aarch64, x86, loongarch64, ris

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-18 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/136247 >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 17 Apr 2025 20:06:51 -0700 Subject: [PATCH 1/4] [clang][uefi] add arm, aarch64, x86, loongarch64, ris

[clang] 7c51e42 - [CIR] Upstream scalar support for ParenExpr (#136332)

2025-04-18 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-04-18T11:25:41-07:00 New Revision: 7c51e426159a7751b062e9860e1ec71cd8fc7bb7 URL: https://github.com/llvm/llvm-project/commit/7c51e426159a7751b062e9860e1ec71cd8fc7bb7 DIFF: https://github.com/llvm/llvm-project/commit/7c51e426159a7751b062e9860e1ec71cd8fc7bb7.diff L

[clang] [CIR] Upstream scalar support for ParenExpr (PR #136332)

2025-04-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/136332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3191cfd - [CIR] Upstream limited support for nested structures (#136331)

2025-04-18 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-04-18T11:25:01-07:00 New Revision: 3191cfd824771d75949b1ebf5e5fe9073b7fe746 URL: https://github.com/llvm/llvm-project/commit/3191cfd824771d75949b1ebf5e5fe9073b7fe746 DIFF: https://github.com/llvm/llvm-project/commit/3191cfd824771d75949b1ebf5e5fe9073b7fe746.diff L

[clang] [CIR] Upstream limited support for nested structures (PR #136331)

2025-04-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/136331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for typedef and type aliases (PR #136335)

2025-04-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/136335 >From 10d4b413f0fcc1eb9ea4901b575d853d3838b761 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Tue, 15 Apr 2025 16:07:31 -0700 Subject: [PATCH] [CIR] Upstream support for typedef and type aliases Nothing is

[clang] [clang][Dependency Scanning] Adding an API to Diagnose Invalid Negative Stat Cache Entries (PR #135703)

2025-04-18 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/135703 >From d4b1210c16b4fccc6faa9445bee457a1e330a025 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 14 Apr 2025 16:49:07 -0700 Subject: [PATCH 1/4] Initial commit. --- .../DependencyScanningFilesystem.h

<    1   2   3   4   5   6   >