[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev created https://github.com/llvm/llvm-project/pull/107737 This patch improves the design of the IncrementalParser and Interpreter classes. Now the incremental parser is only responsible for building the partial translation unit declaration and the AST, while the In

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/107737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Simplify the value printing logic to enable out-of-process. (PR #107737)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vassil Vassilev (vgvassilev) Changes This patch improves the design of the IncrementalParser and Interpreter classes. Now the incremental parser is only responsible for building the partial translation unit declaration and the AST, while

[clang] [Frontend] Avoid repeated hash lookups (NFC) (PR #107728)

2024-09-08 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > LGTM with the note that converting these to SmallSetVector would probably be > more elegant... Sure. https://github.com/llvm/llvm-project/pull/107728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] 81ec7bd - [Frontend] Avoid repeated hash lookups (NFC) (#107728)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T00:08:06-07:00 New Revision: 81ec7bd4183439ba824045b92f00fdebb10ff224 URL: https://github.com/llvm/llvm-project/commit/81ec7bd4183439ba824045b92f00fdebb10ff224 DIFF: https://github.com/llvm/llvm-project/commit/81ec7bd4183439ba824045b92f00fdebb10ff224.diff L

[clang] [Frontend] Avoid repeated hash lookups (NFC) (PR #107728)

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

[clang] [clang][bytecode] Fix a variable scope problem with continue/break jumps (PR #107738)

2024-09-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/107738 Cleaning up _all_ the scopes is a little too much. Only clean up until the point here we started the scope relevant for the break/continue statement. >From 0de29f7ce0b2e2fd6e153de6c2bd4e7d44a74872 Mon Sep 17 0

[clang] [clang][bytecode] Fix a variable scope problem with continue/break jumps (PR #107738)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Cleaning up _all_ the scopes is a little too much. Only clean up until the point here we started the scope relevant for the break/continue statement. --- Full diff: https://github.com/llvm/llvm-project/pull/

[clang] [clang-format] Fix a regression on BAS_AlwaysBreak (PR #107506)

2024-09-08 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/107506 >From bd7da6ec9afabd829010db4c33d088590ab68b5a Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 5 Sep 2024 19:44:46 -0700 Subject: [PATCH 1/3] [clang-format] Fix a regression on BAS_AlwaysBreak Fixes #107401.

[clang] [clang-format] Fix regressions in BAS_AlwaysBreak (PR #107506)

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

[clang] [clang-format] Fix regressions in BAS_AlwaysBreak (PR #107506)

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

[clang] [FrontEnd] Use SetVector for BlockByCopyDecls (NFC) (PR #107743)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107743 We could also use range-based for loops at several places, but I'm leaving that to a subsequent patch. >From cb2cc5934488f75664eee61b26a9a3ce3f27010c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun

[clang] [FrontEnd] Use SetVector for BlockByCopyDecls (NFC) (PR #107743)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes We could also use range-based for loops at several places, but I'm leaving that to a subsequent patch. --- Full diff: https://github.com/llvm/llvm-project/pull/107743.diff 1 Files Affected: - (modif

[clang] 13546c2 - [CodeGen] Avoid repeated hash lookups (NFC) (#107736)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T01:26:24-07:00 New Revision: 13546c284fc31fa5543b07941e864b9b0aaa8638 URL: https://github.com/llvm/llvm-project/commit/13546c284fc31fa5543b07941e864b9b0aaa8638 DIFF: https://github.com/llvm/llvm-project/commit/13546c284fc31fa5543b07941e864b9b0aaa8638.diff L

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107736)

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

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107736)

2024-09-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/5709 Here is the relevant piece of t

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/107743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Diagnose assumption violation (PR #104741)

2024-09-08 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: Ping. https://github.com/llvm/llvm-project/pull/104741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Nikita Popov via cfe-commits
@@ -5157,14 +5163,12 @@ void RewriteModernObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { // Unique all "by copy" declarations. for (unsigned i = 0; i < BlockDeclRefs.size(); i++) if (!BlockDeclRefs[i]->getDecl()->hasAttr()) { nikic wrote: Can d

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Nikita Popov via cfe-commits
@@ -4082,8 +4080,10 @@ std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i, // Create local declarations to avoid rewriting all closure decl ref exprs. // First, emit a declaration for all "by ref" decls. - for (SmallVectorImpl::iterator I = BlockByRe

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [Clang] correct error message when assigning to const reference captured in lambda (PR #105647)

2024-09-08 Thread via cfe-commits
nfrmtk wrote: ping @cor3ntin https://github.com/llvm/llvm-project/pull/105647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)

2024-09-08 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/107458 >From 60e30f156f1d8dcf015b10704c8ebbab5cd36ce5 Mon Sep 17 00:00:00 2001 From: jofernau Date: Thu, 5 Sep 2024 23:31:55 -0400 Subject: [PATCH] [HIP][Clang][CodeGen] Handle hip bin symbols properly. Remove '_' in fa

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-08 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks! Sorry the review took some time https://github.com/llvm/llvm-project/pull/97308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)

2024-09-08 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/107458 >From b21b6c38f6a4cfb3103bb60b3122be4b5253b57f Mon Sep 17 00:00:00 2001 From: jofernau Date: Thu, 5 Sep 2024 23:31:55 -0400 Subject: [PATCH] [HIP][Clang][CodeGen] Handle hip bin symbols properly. Remove '_' in fa

[clang] 0f1bc5d - Fix GCC Wimplicit-fallthrough warnings. NFC.

2024-09-08 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-09-08T14:07:38+01:00 New Revision: 0f1bc5dbf3c51a1ee33d6037a6a169f0b0fbe217 URL: https://github.com/llvm/llvm-project/commit/0f1bc5dbf3c51a1ee33d6037a6a169f0b0fbe217 DIFF: https://github.com/llvm/llvm-project/commit/0f1bc5dbf3c51a1ee33d6037a6a169f0b0fbe217.diff

[clang] [Clang] Add `__builtin_experimental_vectorcompress` (PR #102476)

2024-09-08 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: What's the status of this? I'd really like to use it in a libc++ optimization. https://github.com/llvm/llvm-project/pull/102476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [Clang][Sema] Use the correct lookup context when building overloaded 'operator->' in the current instantiation (PR #104458)

2024-09-08 Thread via cfe-commits
cor3ntin wrote: @sdkrystian can you merge soon so that we can cherry pick in 19? thanks! https://github.com/llvm/llvm-project/pull/104458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)

2024-09-08 Thread via cfe-commits
https://github.com/jofrn edited https://github.com/llvm/llvm-project/pull/107458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/107743 >From cb2cc5934488f75664eee61b26a9a3ce3f27010c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Sep 2024 00:48:25 -0700 Subject: [PATCH 1/2] [FrontEnd] Use SetVector for BlockByCopyDecls (NFC) We

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Kazu Hirata via cfe-commits
@@ -4082,8 +4080,10 @@ std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i, // Create local declarations to avoid rewriting all closure decl ref exprs. // First, emit a declaration for all "by ref" decls. - for (SmallVectorImpl::iterator I = BlockByRe

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread Kazu Hirata via cfe-commits
@@ -5157,14 +5163,12 @@ void RewriteModernObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { // Unique all "by copy" declarations. for (unsigned i = 0; i < BlockDeclRefs.size(); i++) if (!BlockDeclRefs[i]->getDecl()->hasAttr()) { kazutakahirata wrot

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-08 Thread via cfe-commits
yronglin wrote: Thanks for your review! https://github.com/llvm/llvm-project/pull/97308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 45c8766 - Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (#97308)

2024-09-08 Thread via cfe-commits
Author: yronglin Date: 2024-09-08T22:36:49+08:00 New Revision: 45c8766973bb3bb73dd8d996231e114dcf45df9f URL: https://github.com/llvm/llvm-project/commit/45c8766973bb3bb73dd8d996231e114dcf45df9f DIFF: https://github.com/llvm/llvm-project/commit/45c8766973bb3bb73dd8d996231e114dcf45df9f.diff LOG:

[clang] Reapply "[Clang][CWG1815] Support lifetime extension of temporary created by aggregate initialization using a default member initializer" (PR #97308)

2024-09-08 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/97308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e29e7e7 - [FrontEnd] Use SetVector (NFC) (#107743)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T07:48:30-07:00 New Revision: e29e7e726614d59cd5adae1f81266de947ee2f3b URL: https://github.com/llvm/llvm-project/commit/e29e7e726614d59cd5adae1f81266de947ee2f3b DIFF: https://github.com/llvm/llvm-project/commit/e29e7e726614d59cd5adae1f81266de947ee2f3b.diff L

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

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

[clang] [Frontend] Use range-based for loops (NFC) (PR #107757)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107757 None >From 54c996208763db5003e3d7f1e03aaee3de634664 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Sep 2024 07:20:15 -0700 Subject: [PATCH] [Frontend] Use range-based for loops (NFC) --- .../F

[clang] [Frontend] Use range-based for loops (NFC) (PR #107757)

2024-09-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/107757.diff 1 Files Affected: - (modified) clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp (+48-60) ``diff diff --git a/clang/lib

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107758)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107758 None >From f4517cfe4d48b964001a74452a200558746a3b7e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Sep 2024 07:41:45 -0700 Subject: [PATCH] [APINotes] Avoid repeated hash lookups (NFC) --- cla

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107759)

2024-09-08 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/107759 None >From 98280f2c6c2d1e3b6b0566f3c77649e00fe75da9 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 8 Sep 2024 07:43:18 -0700 Subject: [PATCH] [CodeGen] Avoid repeated hash lookups (NFC) --- clan

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107758)

2024-09-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/107758.diff 1 Files Affected: - (modified) clang/lib/APINotes/APINotesWriter.cpp (+2-8) ``diff diff --git a/clang/lib/APINotes/API

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107759)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/107759.diff 1 Files Affected: - (modified) clang/lib/CodeGen/CoverageMappingGen.cpp (+1-6) ``di

[clang] [libcxx] [Clang] Add __builtin_common_type (PR #99473)

2024-09-08 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/99473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107759)

2024-09-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-08 Thread Doug Wyatt via cfe-commits
dougsonos wrote: In working with this version of the compiler, I've discovered a pain point with libc++, `std::__libcpp_verbose_abort()`. Many things which one would expect to be nonblocking, e.g. `std::vector::operator[]`, have hardening paths which call `__libcpp_verbose_abort()` on failure.

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-08 Thread Doug Wyatt via cfe-commits
dougsonos wrote: > I do agree, it seems reasonable for it to be in `-Wall` or similar! That is > absolutely what I'd expect as a user :) I guess my thinking was colored a bit by the way many of our codebases use `-Wall`. I did come around to thinking that without `-Wall`, it's cleaner for the

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-08 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/107285 From b982621407a1ab1746a023809aae5c6a2b983679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= <149377404+zimi...@users.noreply.github.com>

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-08 Thread Зишан Мирза via cfe-commits
@@ -0,0 +1,26 @@ +//===-- Implementation of ctime function --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-08 Thread Зишан Мирза via cfe-commits
@@ -37,6 +37,7 @@ enum Month : int { }; struct TimeConstants { + static constexpr int MAXIMUM_32_BIT_VALUE = 2147483647; zimirza wrote: I have removed the constant and used this function. https://github.com/llvm/llvm-project/pull/107285

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-08 Thread Зишан Мирза via cfe-commits
@@ -0,0 +1,26 @@ +//===-- Implementation of ctime function --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang-tools-extra] [libc] [libc][c11] implement ctime (PR #107285)

2024-09-08 Thread Зишан Мирза via cfe-commits
@@ -0,0 +1,64 @@ +//===-- Unittests for ctime_r -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [clang][analyzer] Fix #embed crash (PR #107764)

2024-09-08 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/107764 Fix #107724. >From a43b9b74ac253c0072498007cf56ed57d8255143 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sun, 8 Sep 2024 11:52:28 -0400 Subject: [PATCH] [clang][analyzer] Fix #embed crash Fix #10

[clang] [clang][analyzer] Fix #embed crash (PR #107764)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nicolas van Kempen (nicovank) Changes Fix #107724. --- Full diff: https://github.com/llvm/llvm-project/pull/107764.diff 2 Files Affected: - (modified) clang/lib/StaticAnalyzer/Core/ExprEngine.cpp (+1-4) - (added) clang/test/Analysis/

[clang] [clang][analyzer] Fix #embed crash (PR #107764)

2024-09-08 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: PS: Should this be cherry-picked into 19? https://github.com/llvm/llvm-project/pull/107764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 08085ed - [CodeGen] Avoid repeated hash lookups (NFC) (#107759)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T09:04:20-07:00 New Revision: 08085eddfdca51f2bcc23945579109d01b730310 URL: https://github.com/llvm/llvm-project/commit/08085eddfdca51f2bcc23945579109d01b730310 DIFF: https://github.com/llvm/llvm-project/commit/08085eddfdca51f2bcc23945579109d01b730310.diff L

[clang] [CodeGen] Avoid repeated hash lookups (NFC) (PR #107759)

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

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla-2stage` running on `linaro-g3-03` while building `clang` at step 11 "build stage 2". Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/1894 Here is the relevant piece of

[clang] [clang][bytecode] Fix a variable scope problem with continue/break jumps (PR #107738)

2024-09-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/107738 >From 17478ebc579cbbaceb9d54ad114b8633112f1f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 8 Sep 2024 07:30:40 +0200 Subject: [PATCH] [clang][bytecode] Fix a variable scope problem w

[clang] [FrontEnd] Use SetVector (NFC) (PR #107743)

2024-09-08 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/1006 Here is the relevant piece of the build log f

[clang] fix access checking about function overloading (PR #107768)

2024-09-08 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght created https://github.com/llvm/llvm-project/pull/107768 fix https://github.com/llvm/llvm-project/issues/107629 TODO: add UT. TODO: test UB mentioned in https://github.com/llvm/llvm-project/issues/107629. >From 65172d8391cef4c0c7e239c9a09b34e061f4963a Mon Sep 17 00

[clang] [Frontend] Use range-based for loops (NFC) (PR #107757)

2024-09-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107758)

2024-09-08 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/107758 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 668cbd8 - [Frontend] Use range-based for loops (NFC) (#107757)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T09:50:34-07:00 New Revision: 668cbd84099c82f9c34e220a019db2f5f50f4320 URL: https://github.com/llvm/llvm-project/commit/668cbd84099c82f9c34e220a019db2f5f50f4320 DIFF: https://github.com/llvm/llvm-project/commit/668cbd84099c82f9c34e220a019db2f5f50f4320.diff L

[clang] [Frontend] Use range-based for loops (NFC) (PR #107757)

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

[clang] [APINotes] Avoid repeated hash lookups (NFC) (PR #107758)

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

[clang] bdb6f1b - [APINotes] Avoid repeated hash lookups (NFC) (#107758)

2024-09-08 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-09-08T09:50:44-07:00 New Revision: bdb6f1b9d6d6262f1a0f96f410c2702a438a7498 URL: https://github.com/llvm/llvm-project/commit/bdb6f1b9d6d6262f1a0f96f410c2702a438a7498 DIFF: https://github.com/llvm/llvm-project/commit/bdb6f1b9d6d6262f1a0f96f410c2702a438a7498.diff L

[clang] 6f67c38 - [clang][bytecode] Fix a variable scope problem with continue/break jumps (#107738)

2024-09-08 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-08T19:22:18+02:00 New Revision: 6f67c386845be85cfcbf5c90949edcdaf40a0ef7 URL: https://github.com/llvm/llvm-project/commit/6f67c386845be85cfcbf5c90949edcdaf40a0ef7 DIFF: https://github.com/llvm/llvm-project/commit/6f67c386845be85cfcbf5c90949edcdaf40a0ef7.diff L

[clang] [clang][bytecode] Fix a variable scope problem with continue/break jumps (PR #107738)

2024-09-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/107738 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TableGen] Change SetTheory set/vec to use const Record * (PR #107692)

2024-09-08 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul deleted https://github.com/llvm/llvm-project/pull/107692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TableGen] Change SetTheory set/vec to use const Record * (PR #107692)

2024-09-08 Thread Rahul Joshi via cfe-commits
@@ -2808,10 +2806,10 @@ RecordRecTy *Record::getType() { return RecordRecTy::get(TrackedRecords, DirectSCs); } -DefInit *Record::getDefInit() { +DefInit *Record::getDefInit() const { if (!CorrespondingDefInit) { -CorrespondingDefInit = -new (TrackedRecords.get

[clang] [llvm] [TableGen] Change SetTheory set/vec to use const Record * (PR #107692)

2024-09-08 Thread Rahul Joshi via cfe-commits
@@ -2808,10 +2806,10 @@ RecordRecTy *Record::getType() { return RecordRecTy::get(TrackedRecords, DirectSCs); } -DefInit *Record::getDefInit() { +DefInit *Record::getDefInit() const { if (!CorrespondingDefInit) { -CorrespondingDefInit = -new (TrackedRecords.get

[clang] [clang][Frontend] Fix Sema::PerformImplicitConversion for atomic expressions (PR #107773)

2024-09-08 Thread Daniel Petrovic via cfe-commits
https://github.com/daniel-petrovic created https://github.com/llvm/llvm-project/pull/107773 Fixes #106576 In `Sema::PerformImplicitConversion` for standard conversion sequence the NonAtomicToAtomic conversion is not reverted back after 3.rd conversion step if not starting from scalar initial

[clang] [clang][Frontend] Fix Sema::PerformImplicitConversion for atomic expressions (PR #107773)

2024-09-08 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [clang][Frontend] Fix Sema::PerformImplicitConversion for atomic expressions (PR #107773)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Petrovic (daniel-petrovic) Changes Fixes #106576 In `Sema::PerformImplicitConversion` for standard conversion sequence the NonAtomicToAtomic conversion is not reverted back after 3.rd conversion step if not starting from scalar i

[clang-tools-extra] [clang-tidy] Add `modernize-use-uniform-initializer` check (PR #91124)

2024-09-08 Thread via cfe-commits
https://github.com/AMS21 updated https://github.com/llvm/llvm-project/pull/91124 >From 84c8e546c0826ddcf9c580b9368541670ed05068 Mon Sep 17 00:00:00 2001 From: AMS21 Date: Tue, 16 Apr 2024 08:56:13 +0200 Subject: [PATCH] [clang-tidy] Add `modernize-use-uniform-initializer` check Finds usage of C

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [clang][Frontend] Fix Sema::PerformImplicitConversion for atomic expressions (PR #107773)

2024-09-08 Thread Daniel Petrovic via cfe-commits
https://github.com/daniel-petrovic converted_to_draft https://github.com/llvm/llvm-project/pull/107773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: Overall, thanks for the PR - this looks very exciting to me! First off, I think it'd be good to set the scope for this. This is one of the historical Windows architectures, supported in early versions of NT and CE. As such, it probably has mostly hobbyist value at this point. H

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-09-08 Thread Tarık Çelik via cfe-commits
tarik-celik wrote: Ping https://github.com/llvm/llvm-project/pull/106198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [clang][MIPS] Add support for mipsel-windows-* targets (PR #107744)

2024-09-08 Thread via cfe-commits
=?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Poussineau , =?utf-8?q?Hervé?= Po

[clang] [clang][Frontend] Fix Sema::PerformImplicitConversion for atomic expressions (PR #107773)

2024-09-08 Thread Daniel Petrovic via cfe-commits
https://github.com/daniel-petrovic updated https://github.com/llvm/llvm-project/pull/107773 >From 20f065d70ab4ff8b3f77b53db6ce6cf1033e00aa Mon Sep 17 00:00:00 2001 From: Daniel Petrovic Date: Sun, 8 Sep 2024 21:29:57 +0200 Subject: [PATCH] [clang][Frontend] Fix Sema::PerformImplicitConversion f

[clang] [analyzer] Remove overzealous "No dispatcher registered" assertion (PR #107294)

2024-09-08 Thread via cfe-commits
@@ -0,0 +1,10 @@ +// RUN: %clang_analyze_cc1 -w -analyzer-checker=nullability \ +// RUN: -analyzer-output=text -verify %s +// +// expected-no-diagnostics +// +// This case previously crashed because of an assert in CheckerManager.cpp, +// checking for registe

[clang] [analyzer] Remove overzealous "No dispatcher registered" assertion (PR #107294)

2024-09-08 Thread via cfe-commits
@@ -48,15 +48,7 @@ bool CheckerManager::hasPathSensitiveCheckers() const { EvalCallCheckers, EndOfTranslationUnitCheckers); } -void CheckerManager::finishedCheckerRegistration() { -#ifndef NDEBUG - // Make sure that for every event that has listeners, there is at least

[clang] [Clang] prevent recovery call expression from proceeding with explicit attributes and undeclared templates (PR #107786)

2024-09-08 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/107786 Fixes #107047 Fixes #49093 >From b50e49be3765c31b1c555384c41e1f528d529a88 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 9 Sep 2024 02:30:35 +0300 Subject: [PATCH] [Clang] prevent recovery call expres

[clang] [Clang] prevent recovery call expression from proceeding with explicit attributes and undeclared templates (PR #107786)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #107047 Fixes #49093 --- Full diff: https://github.com/llvm/llvm-project/pull/107786.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2-1) - (modified) clang/lib/Sema/SemaTemplat

[clang] [clang] Improve diagnostics with incompatible VLA types (PR #101261)

2024-09-08 Thread Andrew Sukach via cfe-commits
https://github.com/sookach updated https://github.com/llvm/llvm-project/pull/101261 >From 7c6109ea5133941baf32ec57e48c770ad015b883 Mon Sep 17 00:00:00 2001 From: Andrew Sukach Date: Tue, 30 Jul 2024 19:31:41 -0400 Subject: [PATCH] [clang] Improve diagnostics with incompatible VLA types --- cl

[clang] [clang][docs] Add clang-tutor to ExternalClangExamples. (PR #107665)

2024-09-08 Thread via cfe-commits
c8ef wrote: Dear reviewers, if you the patch looks good to you, could you please assist me in merging it? @SimplyDanny @shafik https://github.com/llvm/llvm-project/pull/107665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [TBAA] Emit "omnipotent char" for intrinsics with type cast (PR #107793)

2024-09-08 Thread via cfe-commits
https://github.com/huhu233 created https://github.com/llvm/llvm-project/pull/107793 For the case, ``` long long res2[SIZE]; svst1(pa, (long *)&res2[0], v2); /* use res2[i] */ ``` svst1 is emitted with TBAA metadata for "long", but other users of "res2" use "long long", which is a strict a

[clang] [TBAA] Emit "omnipotent char" for intrinsics with type cast (PR #107793)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (huhu233) Changes For the case, ``` long long res2[SIZE]; svst1(pa, (long *)&res2[0], v2); /* use res2[i] */ ``` svst1 is emitted with TBAA metadata for "long", but other users of "res2" use "long long", which is a stric

[clang] [TBAA] Emit "omnipotent char" for intrinsics with type cast (PR #107793)

2024-09-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (huhu233) Changes For the case, ``` long long res2[SIZE]; svst1(pa, (long *)&res2[0], v2); /* use res2[i] */ ``` svst1 is emitted with TBAA metadata for "long", but other users of "res2" use "long long", which is a strict aliasi

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-09-08 Thread Owen Pan via cfe-commits
https://github.com/owenca requested changes to this pull request. Running `FormatTests` failed: ``` [ RUN ] FormatTest.WrapNamespaceBodyWithEmptyLinesNever Assertion failed: (TheLine->MatchingClosingBlockLineIndex > 0), function tryFitMultipleLinesInOne, file UnwrappedLineFormatter.cpp, lin

[clang] [clang] Support --sysroot= for ${arch}-windows-msvc targets (PR #96417)

2024-09-08 Thread via cfe-commits
https://github.com/trcrsired updated https://github.com/llvm/llvm-project/pull/96417 >From 17608570eb2ba6086203f1f8eb20ebafc621caf2 Mon Sep 17 00:00:00 2001 From: trcrsired Date: Sun, 23 Jun 2024 00:07:19 -0400 Subject: [PATCH] Support --sysroot= for ${arch}-windows-msvc targets I think it is

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-09-08 Thread Timothy Akintilo via cfe-commits
https://github.com/tilobyte updated https://github.com/llvm/llvm-project/pull/101857 >From c1afe853ccacae1605fecfe552bb9a263c6b8c1d Mon Sep 17 00:00:00 2001 From: Timothy Akintilo Date: Sat, 27 Jul 2024 16:17:46 -0500 Subject: [PATCH 1/7] use lambda name instead of operator() --- clang-tools-

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-09-08 Thread Timothy Akintilo via cfe-commits
@@ -6292,11 +6298,16 @@ SemaCodeCompletion::ProduceCallSignatureHelp(Expr *Fn, ArrayRef Args, SmallVector ArgExprs(1, NakedFn); ArgExprs.append(ArgsWithoutDependentTypes.begin(), ArgsWithoutDependentTypes.end()); +auto *const Lam

[clang] [clang-tools-extra] [clangd] show lambda name instead of operator() in signature help (PR #101857)

2024-09-08 Thread Timothy Akintilo via cfe-commits
@@ -6292,11 +6298,16 @@ SemaCodeCompletion::ProduceCallSignatureHelp(Expr *Fn, ArrayRef Args, SmallVector ArgExprs(1, NakedFn); ArgExprs.append(ArgsWithoutDependentTypes.begin(), ArgsWithoutDependentTypes.end()); +auto *const Lam

  1   2   >