[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-06-08 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Apologies for not having had a chance to circle back to this sooner. I read over the discussion of the [original patch](https://github.com/llvm/llvm-project/pull/67749) that added support for the `QuotedHeaders` and `AngledHeaders` config keys, and it turns out the "reso

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-08 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/142483 >From 741dce551684ee5818262ba3f4618ffcfa70a0d6 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Mon, 2 Jun 2025 12:53:36 -0700 Subject: [PATCH 1/7] [clang-doc] add a JSON generator --- clang-tools-extra/clang-

[clang] [Sema] Implement fix as suggested by FIXME (PR #143142)

2025-06-08 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 -- clang/lib/Sema/SemaOverload.cpp `` View

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

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

[clang] e47abec - [DirectoryWatcher] Use llvm::find (NFC) (#143337)

2025-06-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-06-08T22:37:44-07:00 New Revision: e47abec51353848d7ee2e50e8fc3f7b275a11463 URL: https://github.com/llvm/llvm-project/commit/e47abec51353848d7ee2e50e8fc3f7b275a11463 DIFF: https://github.com/llvm/llvm-project/commit/e47abec51353848d7ee2e50e8fc3f7b275a11463.diff L

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-06-08 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. thanks Do we also want to add some tests? https://github.com/llvm/llvm-project/pull/143345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang Author: Nathan Ridge (HighCommander4) Changes HeuristicResolver houses the unified implementation. Fixes https://github.com/llvm/llvm-project/issues/143240 --- Full diff: https://github.com/llvm/llvm-project

[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)

2025-06-08 Thread Nathan Ridge via cfe-commits
@@ -368,6 +368,14 @@ static FunctionProtoTypeLoc getPrototypeLoc(Expr *Fn) { } if (auto F = Target.getAs()) { +// In some edge cases the AST can contain a "trivial" FunctionProtoTypeLoc HighCommander4 wrote: Posted https://github.com/llvm/llvm-project

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-06-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 created https://github.com/llvm/llvm-project/pull/143345 HeuristicResolver houses the unified implementation. Fixes https://github.com/llvm/llvm-project/issues/143240 >From 4c65b2a50e8ea0592459c11a775723b5759ef31e Mon Sep 17 00:00:00 2001 From: Nathan Ridge D

[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)

2025-06-08 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/143087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 392bd57 - [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (#143087)

2025-06-08 Thread via cfe-commits
Author: Nathan Ridge Date: 2025-06-09T00:33:20-04:00 New Revision: 392bd577e37d795224da6fefc4b621a3f117105e URL: https://github.com/llvm/llvm-project/commit/392bd577e37d795224da6fefc4b621a3f117105e DIFF: https://github.com/llvm/llvm-project/commit/392bd577e37d795224da6fefc4b621a3f117105e.diff

[clang] [llvm] [LoongArch][BF16] Add support for the __bf16 type (PR #142548)

2025-06-08 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-no-asserts` running on `doug-worker-6` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/202/builds

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

2025-06-08 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/143337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143337.diff 1 Files Affected: - (modified) clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp (+3-5) ``diff diff --git a/cl

[clang] [DirectoryWatcher] Use llvm::find (NFC) (PR #143337)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143337 None >From 7db65a4b3ea588766a8cb693dda281f835ed9151 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Jun 2025 17:41:54 -0700 Subject: [PATCH] [DirectoryWatcher] Use llvm::find (NFC) --- clang/un

[clang] [llvm] [CoroSplit] Rise lifetime.end to get smaller frame size (PR #143333)

2025-06-08 Thread Weibo He via cfe-commits
https://github.com/NewSigma updated https://github.com/llvm/llvm-project/pull/14 >From 771ff1c9cc7d4b7f95d78d4219288d5c7ca0b83e Mon Sep 17 00:00:00 2001 From: NewSigma Date: Thu, 5 Jun 2025 21:51:06 +0800 Subject: [PATCH 1/2] Rise lifetime.end to get smaller frame size --- clang/test/Code

[clang] [llvm] [LoongArch][BF16] Add support for the __bf16 type (PR #142548)

2025-06-08 Thread via cfe-commits
https://github.com/Ami-zhang closed https://github.com/llvm/llvm-project/pull/142548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0ed5d9a - [LoongArch][BF16] Add support for the __bf16 type (#142548)

2025-06-08 Thread via cfe-commits
Author: Ami-zhang Date: 2025-06-09T11:15:41+08:00 New Revision: 0ed5d9aff6e72bdaf3f12bc71dbf83a5c116e8fd URL: https://github.com/llvm/llvm-project/commit/0ed5d9aff6e72bdaf3f12bc71dbf83a5c116e8fd DIFF: https://github.com/llvm/llvm-project/commit/0ed5d9aff6e72bdaf3f12bc71dbf83a5c116e8fd.diff LOG

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/143275 >From c18c91f7f8f4332696dd309a5164c568f32c137b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 7 Jun 2025 12:21:17 -0400 Subject: [PATCH 1/2] Replace loop with llvm:any_of --- clang/include/clang/A

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
@@ -177,13 +177,10 @@ class StoredDeclsList { if (ND->isFromASTFile()) return true; // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replace the local declaration if the external declaration has -//

[clang] [llvm][RISCV] Handle required features of intrinsic correctly (PR #143062)

2025-06-08 Thread Jim Lin via cfe-commits
@@ -768,35 +768,13 @@ void RVVEmitter::createRVVIntrinsics( Log2LMULMask |= 1 << (Log2LMUL + 3); SR.Log2LMULMask = Log2LMULMask; - -for (auto RequiredFeature : RequiredFeatures) { - unsigned RequireExt = - StringSwitch(RequiredFeature) -

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Chuanqi Xu via cfe-commits
@@ -176,14 +176,10 @@ class StoredDeclsList { DeclListNode::Decls *Tail = erase_if([Decls](NamedDecl *ND) { if (ND->isFromASTFile()) return true; - // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replac

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/143275 >From c18c91f7f8f4332696dd309a5164c568f32c137b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 7 Jun 2025 12:21:17 -0400 Subject: [PATCH 1/2] Replace loop with llvm:any_of --- clang/include/clang/A

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/143275 >From c18c91f7f8f4332696dd309a5164c568f32c137b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 7 Jun 2025 12:21:17 -0400 Subject: [PATCH 1/2] Replace loop with llvm:any_of --- clang/include/clang/A

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/143275 >From c18c91f7f8f4332696dd309a5164c568f32c137b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 7 Jun 2025 12:21:17 -0400 Subject: [PATCH 1/2] Replace loop with llvm:any_of --- clang/include/clang/A

[clang] [llvm] [CoroSplit] Rise lifetime.end to get smaller frame size (PR #143333)

2025-06-08 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 -- clang/test/CodeGenCoroutines/pr56919.cpp llvm/lib/Tr

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
@@ -177,13 +177,10 @@ class StoredDeclsList { if (ND->isFromASTFile()) return true; // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replace the local declaration if the external declaration has -//

[clang] [llvm] [CoroSplit] Rise lifetime.end to get smaller frame size (PR #143333)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Weibo He (NewSigma) Changes Lifetime markers determine whether we place alloca on the frame or on the stack. We can move `lifetime.end` to an optimized position to reduce the coroutine frame size. I propose finding the suspend point that

[clang] [llvm] [CoroSplit] Rise lifetime.end to get smaller frame size (PR #143333)

2025-06-08 Thread Weibo He via cfe-commits
https://github.com/NewSigma created https://github.com/llvm/llvm-project/pull/14 Lifetime markers determine whether we place alloca on the frame or on the stack. We can move `lifetime.end` to an optimized position to reduce the coroutine frame size. I propose finding the suspend point that

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Chuanqi Xu via cfe-commits
@@ -177,13 +177,10 @@ class StoredDeclsList { if (ND->isFromASTFile()) return true; // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replace the local declaration if the external declaration has -//

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
snarang181 wrote: > IIUC the `FIXME` comment means that the time complexity of this part of code > is not good enough and we can make it faster. OK. In any case, the usage of `llvm_any_of` seemed better than using an explicit `for-loop`. https://github.com/llvm/llvm-project/pull/143275 _

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
@@ -176,14 +176,10 @@ class StoredDeclsList { DeclListNode::Decls *Tail = erase_if([Decls](NamedDecl *ND) { if (ND->isFromASTFile()) return true; - // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replac

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/143275 >From c18c91f7f8f4332696dd309a5164c568f32c137b Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 7 Jun 2025 12:21:17 -0400 Subject: [PATCH 1/2] Replace loop with llvm:any_of --- clang/include/clang/A

[clang] [clang][NFC] Refactor replaceExternalDecls to use llvm::any_of (PR #143275)

2025-06-08 Thread Chuanqi Xu via cfe-commits
@@ -176,14 +176,10 @@ class StoredDeclsList { DeclListNode::Decls *Tail = erase_if([Decls](NamedDecl *ND) { if (ND->isFromASTFile()) return true; - // FIXME: Can we get rid of this loop completely? - for (NamedDecl *D : Decls) -// Only replac

[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)

2025-06-08 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/143168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add a JSON generator (PR #142483)

2025-06-08 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/142483 >From 741dce551684ee5818262ba3f4618ffcfa70a0d6 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Mon, 2 Jun 2025 12:53:36 -0700 Subject: [PATCH 1/7] [clang-doc] add a JSON generator --- clang-tools-extra/clang-

[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)

2025-06-08 Thread Matheus Izvekov via cfe-commits
@@ -6781,7 +6781,7 @@ static bool HandleConstructorCall(const Expr *E, const LValue &This, // and make sure we've initialized every step along it. auto IndirectFieldChain = IFD->chain(); for (auto *C : IndirectFieldChain) { -FD = cast(C); +FD

[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)

2025-06-08 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/143168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix false compilation error with constexpr (PR #143168)

2025-06-08 Thread Chuanqi Xu via cfe-commits
@@ -6781,7 +6781,7 @@ static bool HandleConstructorCall(const Expr *E, const LValue &This, // and make sure we've initialized every step along it. auto IndirectFieldChain = IFD->chain(); for (auto *C : IndirectFieldChain) { -FD = cast(C); +FD

[clang] [NVPTX] Enable OpenCL 3d_image_writes support (PR #143331)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Wenju He (wenju-he) Changes NV supports opencl_3d_image_writes according https://developer.nvidia.com/blog/nvidia-is-now-opencl-3-0-conformant/ This PR allows removing explicit enabling of image extensions via -cl-ext command line option,

[clang] [NVPTX] Enable OpenCL 3d_image_writes support (PR #143331)

2025-06-08 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/143331 NV supports opencl_3d_image_writes according https://developer.nvidia.com/blog/nvidia-is-now-opencl-3-0-conformant/ This PR allows removing explicit enabling of image extensions via -cl-ext command line option

[clang] [Clang] Add check for -mstack-alignment (PR #143124)

2025-06-08 Thread Feng Zou via cfe-commits
https://github.com/fzou1 edited https://github.com/llvm/llvm-project/pull/143124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add check for -mstack-alignment (PR #143124)

2025-06-08 Thread Feng Zou via cfe-commits
https://github.com/fzou1 edited https://github.com/llvm/llvm-project/pull/143124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Add support for -mlong-calls code generation (PR #142982)

2025-06-08 Thread dong jianqiang via cfe-commits
dongjianqiang2 wrote: > -mlong-calls is an old-fashioned compiler option. I think it was added before > linkers knew range extension thunks (aka stubs, veneers, etc). > > Can you use -fno-plt instead? It works with both SelectionDAG and GlobalISel. > You will get GOT-generating code sequence t

[clang] [CIR] Add initial support for bitfields in structs (PR #142041)

2025-06-08 Thread via cfe-commits
@@ -223,21 +272,114 @@ void CIRRecordLowering::fillOutputFields() { fieldTypes.size() - 1; // A field without storage must be a bitfield. assert(!cir::MissingFeatures::bitfields()); + if (!member.data) +setBitFieldInfo(member.fieldDecl, memb

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

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

[compiler-rt] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (#138571) (PR #143230)

2025-06-08 Thread Oliver Hunt via cfe-commits
ojhunt wrote: unused variable errors are likely fallout from refactoring and workaround removals I did as part of the prep, will do some cleanup/diagnostics work later this week. I mostly wanted to get this available to others to see whether they were ok adopting this rather than rolling thei

[clang-tools-extra] 240ff85 - [clangd] Use llvm::find (NFC) (#143317)

2025-06-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-06-08T16:18:16-07:00 New Revision: 240ff854adae4278a6f5fb232bf5f76dd9b81c69 URL: https://github.com/llvm/llvm-project/commit/240ff854adae4278a6f5fb232bf5f76dd9b81c69 DIFF: https://github.com/llvm/llvm-project/commit/240ff854adae4278a6f5fb232bf5f76dd9b81c69.diff L

[clang-tools-extra] [clang-tidy][NFC] run clang-format over clang-tidy checks and tool code. (PR #143324)

2025-06-08 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: You're right -- it's already being run, but only on the changed lines, not the entire file. Either way, it should cover future diffs minus rare weird edge cases. https://github.com/llvm/llvm-project/pull/143324 ___ cfe-commits mailing

[clang-tools-extra] [clang-tidy][NFC] run clang-format over clang-tidy checks and tool code. (PR #143324)

2025-06-08 Thread Baranov Victor via cfe-commits
vbvictor wrote: PRs are already checked by git-clang-format but sometimes it needs manual start by a member. We shouldn't forget about this behavior. https://github.com/llvm/llvm-project/pull/143324 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang-tools-extra] [clang-tidy][NFC] run clang-format over clang-tidy checks and tool code. (PR #143324)

2025-06-08 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank approved this pull request. LGTM! Can confirm that all `.cpp` and `.h` files in `clang-tools-extra/clang-tidy` pass under `clang-format` head. Maybe this can be added to some formatter CI? I'm not familiar with the CI setup. https://github.com/llvm/llvm-project/pull

[clang] [clang-format] Parse JSON outermost l_brace as braced list brace (PR #143327)

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

[clang] [clang-format] Parse JSON outermost l_brace as braced list brace (PR #143327)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix github.com/llvm/llvm-project/issues/65400#issuecomment-2922181979 --- Full diff: https://github.com/llvm/llvm-project/pull/143327.diff 4 Files Affected: - (modified) clang/lib/Format/ContinuationInde

[clang] [clang-format] Parse JSON outermost l_brace as braced list brace (PR #143327)

2025-06-08 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/143327 Fix github.com/llvm/llvm-project/issues/65400#issuecomment-2922181979 >From ab36d65d7c0f677b196ac3aa0cf976fb483fad98 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 1 Jun 2025 22:35:14 -0700 Subject: [PATCH]

[clang-tools-extra] [clang-tidy][NFC] run clang-format over clang-tidy checks and tool code. (PR #143324)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clang-tidy Author: Baranov Victor (vbvictor) Changes Last commit, with this merged `clang-tidy` should be 100% `clang-format` compliant. Time to check formatting in new PRs:) --- Patch is 54.53 KiB, truncated to

[clang] [llvm] [CodeGen][COFF] Always emit CodeView compiler info on Windows targets (PR #142970)

2025-06-08 Thread Jacek Caban via cfe-commits
cjacek wrote: The new version avoids creating unnecessary labels (and most of `DebugHandlerBase`) by setting `Asm` to null. I also added handling for unknown architecture types in `mapArchToCVCPUType`, which is triggered when running some of the Generic tests on Windows. Additionally, I tweake

[clang-tools-extra] [clang-tidy][NFC] run clang-format over clang-tidy checks and tool code. (PR #143324)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/143324 Last commit, with this merged `clang-tidy` should be 100% `clang-format` compliant. Time to check formatting in new PRs:) >From 287a34835e91240ddd786d62e70e9549ccb88d79 Mon Sep 17 00:00:00 2001 From: Victor Ba

[clang] [llvm] [CodeGen][COFF] Always emit CodeView compiler info on Windows targets (PR #142970)

2025-06-08 Thread Jacek Caban via cfe-commits
https://github.com/cjacek updated https://github.com/llvm/llvm-project/pull/142970 >From 0e2aaa573e4de05c127c67f8c17ca3715d7b04c2 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 4 Jun 2025 15:58:59 +0200 Subject: [PATCH] [CodeGen][COFF] Always emit CodeView compiler info on Windows targe

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/143260 >From 14ffd458c4896bd4d5fb73f97c5745db70c8360e Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 7 Jun 2025 14:43:16 +0200 Subject: [PATCH 1/3] [CIR] Implement folder for VecShuffleOp --- clang/inclu

[libunwind] [libunwind] Remove checks for -nostdlib++ (PR #143162)

2025-06-08 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/143162 >From a5c4dbe693af9b1f2dd6ef45aa803453c5fbfe28 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 6 Jun 2025 17:31:23 +0200 Subject: [PATCH] [libunwind] Remove checks for -nostdlib++ --- libunwind/cm

[clang] [clang-format] Fix an off-by-1 bug with -length option (PR #143302)

2025-06-08 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/143302 >From 68f668608d800c1411fd259be569bd3db36d1b12 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 8 Jun 2025 00:36:08 -0700 Subject: [PATCH] [clang-format] Fix an off-by-1 bug with -length option Also validate t

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'cert', 'cppcore', 'fuchsia',… (PR #143316)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/143316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 68070f9 - [clang-tidy][NFC] run clang-format over 'cert', 'cppcore', 'fuchsia',… (#143316)

2025-06-08 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-08T23:22:55+03:00 New Revision: 68070f908bb7ac5f0b5fa9722caa504ecf723f6b URL: https://github.com/llvm/llvm-project/commit/68070f908bb7ac5f0b5fa9722caa504ecf723f6b DIFF: https://github.com/llvm/llvm-project/commit/68070f908bb7ac5f0b5fa9722caa504ecf723f6b.diff

[clang-tools-extra] [clang-tidy][NFC] run clang-format over `abseil` and `altera` checks. (PR #143314)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/143314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (PR #143315)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/143315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] ce46adb - [clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (#143315)

2025-06-08 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-08T23:22:05+03:00 New Revision: ce46adb8b7ce645353eccaedf31ed9765dab77bb URL: https://github.com/llvm/llvm-project/commit/ce46adb8b7ce645353eccaedf31ed9765dab77bb DIFF: https://github.com/llvm/llvm-project/commit/ce46adb8b7ce645353eccaedf31ed9765dab77bb.diff

[clang-tools-extra] 65d6662 - [clang-tidy][NFC] run clang-format over `abseil` and `altera` checks. (#143314)

2025-06-08 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-08T23:21:35+03:00 New Revision: 65d66625b3e2b8322ed99d82edabecbafcd0885b URL: https://github.com/llvm/llvm-project/commit/65d66625b3e2b8322ed99d82edabecbafcd0885b DIFF: https://github.com/llvm/llvm-project/commit/65d66625b3e2b8322ed99d82edabecbafcd0885b.diff

[clang-tools-extra] [clang-tidy][NFC] run clang-format over `abseil` and `altera` checks. (PR #143314)

2025-06-08 Thread Baranov Victor via cfe-commits
vbvictor wrote: It appeared relatively easy to review, I'll make next slightly bigger https://github.com/llvm/llvm-project/pull/143314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] AST: fix dependency calculation for TypedefTypes (PR #143291)

2025-06-08 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/143291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 366f488 - [clang] AST: fix dependency calculation for TypedefTypes (#143291)

2025-06-08 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-06-08T17:07:36-03:00 New Revision: 366f48890d643e15e1317ada300f2cc1be437721 URL: https://github.com/llvm/llvm-project/commit/366f48890d643e15e1317ada300f2cc1be437721 DIFF: https://github.com/llvm/llvm-project/commit/366f48890d643e15e1317ada300f2cc1be437721.dif

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-08 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/143262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Extend VecShuffleOp verifier to catch invalid index (PR #143262)

2025-06-08 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/143262 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFS] Add test cases for VecShuffle with -1 index (PR #143304)

2025-06-08 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/143304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFS] Add test cases for VecShuffle with -1 index (PR #143304)

2025-06-08 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/143304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement folder for VecShuffleOp (PR #143260)

2025-06-08 Thread Henrich Lauko via cfe-commits
@@ -1580,9 +1580,49 @@ OpFoldResult cir::VecExtractOp::fold(FoldAdaptor adaptor) { } //===--===// -// VecShuffle +// VecShuffleOp //===--

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change adds a folder for the VecCmpOp Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://github.com/llvm/llvm-project/pull/143322.diff 4 Files Affected: - (modified)

[clang] [CIR] Implement folder for VecCmpOp (PR #143322)

2025-06-08 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/143322 This change adds a folder for the VecCmpOp Issue https://github.com/llvm/llvm-project/issues/136487 >From e45e40fe353af82a05b3225fdebbcdc402bd5567 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 8

[clang] [clang] AST: fix dependency calculation for TypedefTypes (PR #143291)

2025-06-08 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/143291 >From d623054729e75adc5299ecd426b19863962cafbc Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Sat, 7 Jun 2025 21:33:07 -0300 Subject: [PATCH] [clang] AST: fix dependency calculation for TypedefTypes The

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'cert', 'cppcore', 'fuchsia',… (PR #143316)

2025-06-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (PR #143315)

2025-06-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143315 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] run clang-format over `abseil` and `altera` checks. (PR #143314)

2025-06-08 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp approved this pull request. LGTM. Personally I think it would have been fine to do it all in one patch, less commits to add to the git-blame-ignore later. But it's ok! https://github.com/llvm/llvm-project/pull/143314 _

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/143317 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Cygwin] wint_t is unsigned int (PR #143117)

2025-06-08 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/143117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Cygwin] wint_t is unsigned int (PR #143117)

2025-06-08 Thread via cfe-commits
https://github.com/jeremyd2019 approved this pull request. LGTM. @mstorsjo ? https://github.com/llvm/llvm-project/pull/143117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable WPD without lto (PR #141777)

2025-06-08 Thread Hassnaa Hamdi via cfe-commits
hassnaaHamdi wrote: Hi @teresajohnson what do you think? For the case of PGO, I think we may disable it. I think The speculative devirtualization is useful for cases where we don't have enough information. https://github.com/llvm/llvm-project/pull/141777 __

[clang] 6baaa0a - [ARM] Handle roundeven for MVE. (#142557)

2025-06-08 Thread via cfe-commits
Author: David Green Date: 2025-06-08T18:23:50+01:00 New Revision: 6baaa0afc3214263b89e5ccfc1eebc63ab82bb68 URL: https://github.com/llvm/llvm-project/commit/6baaa0afc3214263b89e5ccfc1eebc63ab82bb68 DIFF: https://github.com/llvm/llvm-project/commit/6baaa0afc3214263b89e5ccfc1eebc63ab82bb68.diff L

[clang] [llvm] [ARM] Handle roundeven for MVE. (PR #142557)

2025-06-08 Thread David Green via cfe-commits
https://github.com/davemgreen closed https://github.com/llvm/llvm-project/pull/142557 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-08 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM, with one minor comment. https://github.com/llvm/llvm-project/pull/143115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-08 Thread Martin Storsjö via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm < %s | FileCheck %s +// RUN: %clang_cc1 -triple x86_64-pc-cygwin -emit-llvm < %s | FileCheck %s + +// copy ms_abi block only from ../ms_abi.c mstorsjo wrote: Not sure how relevant the comm

[clang] [Cygwin] va_list must be treated like normal Windows (PR #143115)

2025-06-08 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo edited https://github.com/llvm/llvm-project/pull/143115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143317.diff 1 Files Affected: - (modified) clang-tools-extra/clangd/unittests/PrerequisiteModulesTest.cpp (+5-7) ``diff diff --g

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/143317.diff 1 Files Affected: - (modified) clang-tools-extra/clangd/unittests/PrerequisiteModulesTest.cpp (+5-7) ``di

[clang-tools-extra] [clangd] Use llvm::find (NFC) (PR #143317)

2025-06-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143317 None >From ea049e4ebb830c789ccc1e7d50cea84884922155 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Jun 2025 09:00:26 -0700 Subject: [PATCH] [clangd] Use llvm::find (NFC) --- .../clangd/unittes

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'cert', 'cppcore', 'fuchsia',… (PR #143316)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Baranov Victor (vbvictor) Changes … 'google' checks --- Patch is 23.03 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/143316.diff 22 Files Affected: - (modified) clang-tools-extra/clang

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'cert', 'cppcore', 'fuchsia',… (PR #143316)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/143316 … 'google' checks >From 50485a9c1c14325f7bf019827b461bcefe053d3c Mon Sep 17 00:00:00 2001 From: Baranov Victor Date: Sun, 8 Jun 2025 19:39:49 +0300 Subject: [PATCH] [clang-tidy][NFC] run clang-format over 'cer

[clang] [clang][analyzer] Correct SMT Layer for _BitInt cases refutations (PR #143310)

2025-06-08 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/143310 >From 4b86a568caa5e18b66e3e76825d4db6db195dfd5 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Sun, 8 Jun 2025 15:48:04 +0200 Subject: [PATCH 1/2] [clang][analyzer] Correct SMT Layer for _BitInt cases re

[clang] [clang][analyzer] Correct SMT Layer for _BitInt cases refutations (PR #143310)

2025-06-08 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/143310 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (PR #143315)

2025-06-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes --- Patch is 29.29 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/143315.diff 28 Files Affected: - (modified) c

[clang-tools-extra] [clang-tidy][NFC] run clang-format over 'android', 'boost' and 'bugprone' checks (PR #143315)

2025-06-08 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/143315 None >From 52b8b3edae64a301646b63f15dfa46cc9af250b3 Mon Sep 17 00:00:00 2001 From: Baranov Victor Date: Sun, 8 Jun 2025 19:23:38 +0300 Subject: [PATCH] [clang-tidy][NFC] run clang-format over 'android', 'boost

[clang] [clang] Add managarm support (PR #139271)

2025-06-08 Thread via cfe-commits
https://github.com/no92 updated https://github.com/llvm/llvm-project/pull/139271 >From 4d64fbec42530f5dfe2e01a7e6e6a83fc7e5d8a2 Mon Sep 17 00:00:00 2001 From: no92 Date: Fri, 6 Sep 2024 21:18:39 +0200 Subject: [PATCH 1/3] [clang] Add managarm OS target --- clang/lib/Basic/Targets.cpp

  1   2   >