[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/141334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

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

[clang] d2eec93 - replace the extension with the right functions (#141110)

2025-05-25 Thread via cfe-commits
Author: Sean Perry Date: 2025-05-25T15:07:20-04:00 New Revision: d2eec93f7c652946e98b4c872ddf1d353b28dabe URL: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe DIFF: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe.diff LO

[clang] replace the extension with the right functions (PR #141110)

2025-05-25 Thread Sean Perry via cfe-commits
https://github.com/perry-ca closed https://github.com/llvm/llvm-project/pull/141110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or c

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/127377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-25 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 64bc35f - [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (#141405)

2025-05-25 Thread via cfe-commits
Author: Connector Switch Date: 2025-05-26T10:13:14+08:00 New Revision: 64bc35f33e9d330e1bfff07436010b43ce332d9b URL: https://github.com/llvm/llvm-project/commit/64bc35f33e9d330e1bfff07436010b43ce332d9b DIFF: https://github.com/llvm/llvm-project/commit/64bc35f33e9d330e1bfff07436010b43ce332d9b.di

[clang] [llvm] [clang][RISCV] Emit RISCV function-signature-based CFI label in llvm::Function metadata (PR #111661)

2025-05-25 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: > For missing prototypes, we can statically detect calls which pass arguments > to function without a prototype. Generating code we know will never work, > without a diagnostic, is a bad idea. @efriedma-quic If what you need to see are diagnostics, I can add them in this PR.

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141448 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-25 Thread Feng Zou via cfe-commits
https://github.com/fzou1 closed https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (PR #141192)

2025-05-25 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/141192 >From 31897be26bf2f2cdb43883adc9bb43dee7008887 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Fri, 23 May 2025 10:21:00 +0800 Subject: [PATCH] [NFC][Options] Add same-address constraint to the description of

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: Maybe it is more straightforward to detect function which return ref of member variable like `const std::vector& get() const { return v; }` and bypass the SideEffect check. https://github.com/llvm/llvm-project/pull/127377 ___ cfe-c

[clang] 7af14e5 - [NFC][Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (#141192)

2025-05-25 Thread via cfe-commits
Author: Ami-zhang Date: 2025-05-26T10:53:17+08:00 New Revision: 7af14e5118dcc308f32857f78886bbad12ff9e92 URL: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92 DIFF: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92.diff LOG

[clang] [llvm] [Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (PR #141192)

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

[clang] 641b2a5 - [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (#140874)

2025-05-25 Thread via cfe-commits
Author: Feng Zou Date: 2025-05-26T10:42:53+08:00 New Revision: 641b2a58ea55b5532639ca7eb3a8a5795c87bd5d URL: https://github.com/llvm/llvm-project/commit/641b2a58ea55b5532639ca7eb3a8a5795c87bd5d DIFF: https://github.com/llvm/llvm-project/commit/641b2a58ea55b5532639ca7eb3a8a5795c87bd5d.diff LOG:

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

2025-05-25 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/141418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

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

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/141414 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

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

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

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

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/131804 >From a686695e6691fcb824b2055c3dfa8f0fd3727355 Mon Sep 17 00:00:00 2001 From: DeNiCoN Date: Mon, 17 Mar 2025 08:04:32 + Subject: [PATCH 01/12] origin pr --- clang-tools-extra/clang-tidy/CMakeLists.txt

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Matt Arsenault via cfe-commits
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker /// a later bug report created by ErrnoChecker. /// Empty return value means that 'errno' related bug may not happen from /// the current analyzed function. -virtual const std::string describe(CheckerContext &

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

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

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

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

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

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

[clang] [AST] Remove unused includes (NFC) (PR #141417)

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

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread Kazu Hirata via cfe-commits
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker /// a later bug report created by ErrnoChecker. /// Empty return value means that 'errno' related bug may not happen from /// the current analyzed function. -virtual const std::string describe(CheckerContext &

[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/11756 Here is the relevant piece

[clang-tools-extra] eda3e96 - [clang-tidy] Fix false positives in `bugprone-crtp-constructor-accessibility` check (#132543)

2025-05-25 Thread via cfe-commits
Author: Baranov Victor Date: 2025-05-26T06:25:19+03:00 New Revision: eda3e96b401a9b86132e39432e41e2000d1ab382 URL: https://github.com/llvm/llvm-project/commit/eda3e96b401a9b86132e39432e41e2000d1ab382 DIFF: https://github.com/llvm/llvm-project/commit/eda3e96b401a9b86132e39432e41e2000d1ab382.diff

[clang-tools-extra] [clang-tidy] Fix false positives in `bugprone-crtp-constructor-accessibility` check (PR #132543)

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

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From 7d363093d85084e8f7f4c3994f207a36781ededc Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:53:14 +1000 Subject: [PATCH] [libunwind][Haiku] Fix signal frame unwinding The current un

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
https://github.com/heiher edited https://github.com/llvm/llvm-project/pull/140700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -388,6 +388,76 @@ bool LoongArchTargetInfo::handleTargetFeatures( return true; } +enum class AttrFeatureKind { Arch, Tune, NoFeature, Feature, Invalid }; + +static std::pair +getAttrFeatureTypeAndValue(llvm::StringRef AttrFeature) { + if (auto Split = AttrFeature.split("

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: The latest commit is known to build well on `i386`. Signal frame unwinding is still not supported, but I believe this is out of scope for this PR. https://github.com/llvm/llvm-project/pull/135367 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
https://github.com/heiher approved this pull request. LGTM with nits. https://github.com/llvm/llvm-project/pull/140700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Arm64EC entry/exit thunks, consolidated. (PR #79067)

2025-05-25 Thread Fangrui Song via cfe-commits
@@ -44,7 +44,11 @@ define void @varargs_caller() nounwind { ; CHECK-NEXT:stp xzr, x30, [sp, #24] // 8-byte Folded Spill ; CHECK-NEXT:stp x9, x8, [sp] ; CHECK-NEXT:str xzr, [sp, #16] -; CHECK-NEXT:bl varargs_callee +; CHECK-NEXT:.weak_anti_dep varargs_callee

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

2025-05-25 Thread Nathan Ridge via cfe-commits
@@ -262,6 +264,8 @@ TEST(IncludeCleaner, GenerateMissingHeaderDiags) { TU.Filename = "main.cpp"; TU.AdditionalFiles["a.h"] = guard("#include \"b.h\""); TU.AdditionalFiles["b.h"] = guard("void b();"); + TU.AdditionalFiles["a_angled.h"] = guard("#include \"b_angled.h\"");

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

2025-05-25 Thread via cfe-commits
fanju110 wrote: > Thank you for seeing this through and making all the little changes. I have > requested reviews from @MaskRay and @aeubanks for the clang side of things. hello,I noticed that this PR has been awaiting clang review for three weeks. I still haven't gotten a comment from them.wo

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -388,6 +388,76 @@ bool LoongArchTargetInfo::handleTargetFeatures( return true; } +enum class AttrFeatureKind { Arch, Tune, NoFeature, Feature, Invalid }; + +static std::pair +getAttrFeatureTypeAndValue(llvm::StringRef AttrFeature) { + if (auto Split = AttrFeature.split("

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple loongarch64-linux-gnu -fsyntax-only -verify %s + +// expected-error@+1 {{function multiversioning is not supported on the current target}} +void __attribute__((target("default"))) bar(void){} + +// expected-error@+1 {{target(arch=..)

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple loongarch64-linux-gnu -fsyntax-only -verify %s + +// expected-error@+1 {{function multiversioning is not supported on the current target}} +void __attribute__((target("default"))) bar(void){} + +// expected-error@+1 {{target(arch=..)

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: Tried to give [x86 unwinding](https://github.com/trungnt2910/libunwind-haiku/commit/61a36e3d8ed6da29653bba63165093cadc5) a shot. The general idea is correct, but it is currently impossible to unwind past a `syscall` due to the system relying on another [magic `commpage`

[clang] 1efa366 - [StaticAnalyzer] Drop const from a return type (NFC) (#141414)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:18-07:00 New Revision: 1efa366c8717ac5770803f1f4bbad65454009cee URL: https://github.com/llvm/llvm-project/commit/1efa366c8717ac5770803f1f4bbad65454009cee DIFF: https://github.com/llvm/llvm-project/commit/1efa366c8717ac5770803f1f4bbad65454009cee.diff L

[clang] 01138d3 - [AST] Remove unused includes (NFC) (#141417)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:25-07:00 New Revision: 01138d3f6518c08fe14a527c21c54aefef0e6f57 URL: https://github.com/llvm/llvm-project/commit/01138d3f6518c08fe14a527c21c54aefef0e6f57 DIFF: https://github.com/llvm/llvm-project/commit/01138d3f6518c08fe14a527c21c54aefef0e6f57.diff L

[clang] 031cf05 - [Driver] Use StringRef::consume_front (NFC) (#141412)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:11-07:00 New Revision: 031cf05f01157f0e4aea1fb546a052525248f74c URL: https://github.com/llvm/llvm-project/commit/031cf05f01157f0e4aea1fb546a052525248f74c DIFF: https://github.com/llvm/llvm-project/commit/031cf05f01157f0e4aea1fb546a052525248f74c.diff L

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

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

[clang] f4b311b - [TableGen] Use StringRef::contains (NFC) (#141413)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:14-07:00 New Revision: f4b311b5274ceb5d874b13c0daf914dd74c853f6 URL: https://github.com/llvm/llvm-project/commit/f4b311b5274ceb5d874b13c0daf914dd74c853f6 DIFF: https://github.com/llvm/llvm-project/commit/f4b311b5274ceb5d874b13c0daf914dd74c853f6.diff L

[clang] [TableGen] Use StringRef::contains (NFC) (PR #141413)

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

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

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

[clang-tools-extra] ba007a6 - [clang-tidy] Remove unused includes (NFC) (#141420)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:36-07:00 New Revision: ba007a60d07fb4ac685c8bca7b7a18b870e287b2 URL: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2 DIFF: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2.diff L

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

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

[clang] 8075c15 - [CodeGen] Remove unused includes (NFC) (#141418)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:28-07:00 New Revision: 8075c15f54d5d6c6b9f5e452c13814078a0a0397 URL: https://github.com/llvm/llvm-project/commit/8075c15f54d5d6c6b9f5e452c13814078a0a0397 DIFF: https://github.com/llvm/llvm-project/commit/8075c15f54d5d6c6b9f5e452c13814078a0a0397.diff L

[clang] [CodeGen] Remove unused includes (NFC) (PR #141418)

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

[clang] 12af64d - [Sema] Remove unused includes (NFC) (#141419)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:32-07:00 New Revision: 12af64d0d7dedfcee6da3c458edda64884e8f3bb URL: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb DIFF: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb.diff L

[clang] [AST] Remove unused includes (NFC) (PR #141417)

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

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

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

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -231,7 +231,8 @@ static LogicalResult checkConstantTypes(mlir::Operation *op, mlir::Type opType, } if (isa(attrType)) { -if (isa(opType)) +if (isa( +opType)) return success(); return op->emitOpError("zero expects struct or array type");

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -385,6 +385,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) { break; } + case Type::Complex: { +const ComplexType *ct = cast(ty); +mlir::Type elementTy = convertType(ct->getElementType()); xlauko wrote: ```suggestion const auto

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -226,6 +227,42 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::IntAttr intAttr) { loc, converter->convertType(intAttr.getType()), intAttr.getValue()); } +/// FPAttr visitor. +mlir::Value CIRAttrToValue::visitCirAttr(cir::FPAttr fltAttr) { + mlir::Location loc = par

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,38 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// ConstComplexAttr +//===---

[clang] [llvm] Add macro to suppress -Wunnecessary-virtual-specifier (PR #139614)

2025-05-25 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 7 "build-bolt". Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/19182 Here is the relevant piece of the b

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/141411 This change adds support for the Dynamic Shuffle op for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 >From 12295ee3a5613d7473ab33a4579015a2217617a0 Mon Sep 17 00:00:00 2001 From: Amr

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for the Dynamic Shuffle op for VectorType Issue https://github.com/llvm/llvm-project/issues/136487 --- Full diff: https://github.com/llvm/llvm-project/pull/141411.diff 8 Files A

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread A. Jiang via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] [CIR] Upstream ShuffleDynamicOp for VectorType (PR #141411)

2025-05-25 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: There will be a follow-up PR for folding https://github.com/llvm/llvm-project/pull/141411 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -377,6 +402,8 @@ Task h_ShouldDiag(const int a, // CHECK-MESSAGES: :[[@LINE-2]]:45: warning: an exception may be thrown in function 'h_ShouldDiag' which should not throw exceptions co_yield a / b; } +// CHECK-MESSAGES: :133:7: note: frame #0: unhandled exception may be

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: Could you add some separate tests for this diagnostic? I am not sure current test case is covered all scenarios in this PR https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-com

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement intrinsics for XAndesVDot (PR #141441)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes This patch implements clang intrinsic support for XAndesVDot. The document for the intrinsics can be found at: https://github.com/andestech/andes-vector-intrinsic-doc/blob/ast-

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -51,7 +51,13 @@ static std::string getFullPrefix(ArrayRef Signature) { namespace { AST_MATCHER(Expr, hasSideEffects) { - return Node.HasSideEffects(Finder->getASTContext()); + bool CheckArg = true; + if (const CXXMemberCallExpr *Call = dyn_cast(&Node)) { +if (Call->

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141446 None >From 5042f47e7c990892c13e4de21ae7a4ff1baec308 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:35:44 -0700 Subject: [PATCH] [Analysis] Use llvm::erase_if (NFC) --- clang/unitt

[clang] [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (PR #141405)

2025-05-25 Thread Connector Switch via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/141405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141447 None >From acb3fc1898cc1ab8a388a45594f84fa9f61ed644 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:32:08 -0700 Subject: [PATCH] [AST] Use llvm::none_of (NFC) --- clang/unittests/A

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141447.diff 1 Files Affected: - (modified) clang/unittests/AST/ASTImporterFixtures.cpp (+2-3) ``diff diff --git a/clang/unittests/

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141446.diff 1 Files Affected: - (modified) clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp (+1-3) ``diff diff --git a/clang/

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-backend-arm Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, w

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compi

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or c

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -577,12 +577,31 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, case APValue::Union: cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union"); return {}; - case APValue::FixedPoint: case APValue::ComplexInt: - case APValue::Co

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -577,12 +577,31 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, case APValue::Union: cgm.errorNYI("ConstExprEmitter::tryEmitPrivate struct or union"); return {}; - case APValue::FixedPoint: case APValue::ComplexInt: - case APValue::Co

[clang] [Clang][AST] Fix HandleLValueBase to deal with references (PR #140105)

2025-05-25 Thread Tom Stellard via cfe-commits
tstellar wrote: @frederick-vs-ja Were you able to create a PR for this backport? https://github.com/llvm/llvm-project/pull/140105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 converted_to_draft https://github.com/llvm/llvm-project/pull/131804 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7511107 - Use emplace_back instead of push_back (NFC)

2025-05-25 Thread via cfe-commits
Author: GkvJwa Date: 2025-05-26T00:38:23+08:00 New Revision: 7511107d60a9115ce161eaf556e1bbac6eba9bfe URL: https://github.com/llvm/llvm-project/commit/7511107d60a9115ce161eaf556e1bbac6eba9bfe DIFF: https://github.com/llvm/llvm-project/commit/7511107d60a9115ce161eaf556e1bbac6eba9bfe.diff LOG: U

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141412.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+2-2) ``diff diff --git a/clang/lib/Drive

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141412 None >From 6872bfb8f44771df2edf29245fcce78f0df178a1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 18:52:40 -0700 Subject: [PATCH] [Driver] Use StringRef::consume_front (NFC) --- cla

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141412.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/Clang.cpp (+2-2) ``diff diff --git a/clang/lib/Driver/ToolC

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141414.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (+3-3) ``diff diff --

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141415 None >From 9300bcb2f81f3bce140fca25b2f96544acec9e79 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 24 May 2025 20:41:08 -0700 Subject: [PATCH] [ByteCode] Drop const from a return type (NFC) ---

[clang] [StaticAnalyzer] Drop const from a return type (NFC) (PR #141414)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141414.diff 1 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp (+3-3)

  1   2   >