[libunwind] [libunwind][test] unsupport a test in aarch64 for aarch64 has corss toolchain build (PR #156383)

2025-09-01 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/156383 >From b69df27e57cc0b0673960bc6802693df9fcc1e03 Mon Sep 17 00:00:00 2001 From: "Wu, Yingcong" Date: Tue, 2 Sep 2025 09:42:07 +0800 Subject: [PATCH 1/4] switch to llvm-objdump --- libunwind/test/eh_frame_fde

[clang] Add error check for HeuristicResolver (PR #155561)

2025-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-msan` running on `sanitizer-buildbot10` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/10425 Here is the rele

[clang] [RISCV] Simplify code gen for riscv_vector_builtin_cg.inc [NFC] (PR #156397)

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kito Cheng (kito-cheng) Changes For each intrinsic with ManualCodegen block will generate something like below: ```cpp SegInstSEW = 0; ... if (SegInstSEW == (unsigned)-1) { auto PointeeType = E->getArg(4294967295)->getType()->ge

[clang] Add error check for HeuristicResolver (PR #155561)

2025-09-01 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: Glad to help, Thank you for the review! https://github.com/llvm/llvm-project/pull/155561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add error check for HeuristicResolver (PR #155561)

2025-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-hwasan` running on `sanitizer-buildbot11` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/16532 Here is the re

[libunwind] [libunwind][test] set fed test to require x86 as others arch may have cross toolchain build (PR #156383)

2025-09-01 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/156383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add error check for HeuristicResolver (PR #155561)

2025-09-01 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thanks @MythreyaK for the fix! https://github.com/llvm/llvm-project/pull/155561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add proper handling of \note, \warning and \retval command + change render kind of command arguments. (PR #156365)

2025-09-01 Thread via cfe-commits
https://github.com/tcottin created https://github.com/llvm/llvm-project/pull/156365 PR for some followup issues from clangd/clangd#529. `\note` and `\warning`: In the hover card, they are now displayed with heading and enclosing rulers. `\retval` commands: Each `\retval` command is now a bulle

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -4020,11 +4033,17 @@ bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) { case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't':/*'u'*/ case 'v': case 'w': case 'x':

[clang] [clang] Followup for constexpr-unknown potential constant expressions. (PR #151053)

2025-09-01 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/151053 >From 43e441c0559294f0e4d85cf67bea480140b2e9d1 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Mon, 28 Jul 2025 15:47:33 -0700 Subject: [PATCH 1/2] [clang] Followup for constexpr-unknown potential consta

[clang] [RISCV] Simplify code gen for riscv_vector_builtin_cg.inc [NFC] (PR #156397)

2025-09-01 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng created https://github.com/llvm/llvm-project/pull/156397 For each intrinsic with ManualCodegen block will generate something like below: ```cpp SegInstSEW = 0; ... if (SegInstSEW == (unsigned)-1) { auto PointeeType = E->getArg(4294967295)->getType()->getP

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-01 Thread Arjun Ramesh via cfe-commits
https://github.com/arjunr2 updated https://github.com/llvm/llvm-project/pull/156087 >From cb996a12aa20c65980f620381731fad1622e0417 Mon Sep 17 00:00:00 2001 From: Arjun Ramesh Date: Sat, 30 Aug 2025 01:01:02 -0400 Subject: [PATCH 1/2] Support for `wasm32-wali-linux-musl target` in `clang`, `lld

[clang-tools-extra] a49030e - [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (#148275)

2025-09-01 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-08-31T16:38:22-07:00 New Revision: a49030e493b76bc2b294d36709c7ed84aef557f4 URL: https://github.com/llvm/llvm-project/commit/a49030e493b76bc2b294d36709c7ed84aef557f4 DIFF: https://github.com/llvm/llvm-project/commit/a49030e493b76bc2b294d36709c7ed84aef557f4.d

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-01 Thread Pengcheng Wang via cfe-commits
wangpc-pp wrote: > It would be nice to see an actual encodings spec PDF to be able to verify > that the opcode encoding in this PR is actually correct. Thanks @arichardson ! We will release an v0.1 PDF in https://github.com/riscv/zibi this week and then update this PR. :-) https://github.com/

[clang] [RISCV] Simplify code gen for riscv_vector_builtin_cg.inc [NFC] (PR #156397)

2025-09-01 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. https://github.com/llvm/llvm-project/pull/156397 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Make vector cast intrinsics constexpr (PR #156381)

2025-09-01 Thread Chaitanya Koparkar via cfe-commits
@@ -113,93 +113,93 @@ _mm512_set1_pch(_Float16 _Complex __h) { return (__m512h)_mm512_set1_ps(__builtin_bit_cast(float, __h)); } -static __inline__ __m128 __DEFAULT_FN_ATTRS128 _mm_castph_ps(__m128h __a) { +static __inline__ __m128 __DEFAULT_FN_ATTRS128_CONSTEXPR _mm_castph_

[clang] [clang] Make vector cast intrinsics constexpr (PR #156381)

2025-09-01 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar edited https://github.com/llvm/llvm-project/pull/156381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-01 Thread Alexander Richardson via cfe-commits
@@ -0,0 +1,34 @@ +# RUN: not llvm-mc -triple=riscv32 --mattr=+experimental-zibi %s 2>&1 \ +# RUN:| FileCheck %s --check-prefix=CHECK-ERROR +# RUN: not llvm-mc -triple=riscv64 --mattr=+experimental-zibi %s 2>&1 \ +# RUN:| FileCheck %s --check-prefix=CHECK-ERROR +beq

[clang] [RISCV] Simplify code gen for riscv_vector_builtin_cg.inc [NFC] (PR #156397)

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Kito Cheng (kito-cheng) Changes For each intrinsic with ManualCodegen block will generate something like below: ```cpp SegInstSEW = 0; ... if (SegInstSEW == (unsigned)-1) { auto PointeeType = E->getArg(4294967295)->getT

[clang] [CIR] Add handling for volatile loads and stores (PR #156124)

2025-09-01 Thread via cfe-commits
https://github.com/Andres-Salamanca approved this pull request. https://github.com/llvm/llvm-project/pull/156124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for emitting VTTs and related ojects (PR #155721)

2025-09-01 Thread via cfe-commits
https://github.com/Andres-Salamanca approved this pull request. https://github.com/llvm/llvm-project/pull/155721 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for emitting VTTs and related ojects (PR #155721)

2025-09-01 Thread via cfe-commits
@@ -226,6 +289,109 @@ cir::GlobalLinkageKind CIRGenModule::getVTableLinkage(const CXXRecordDecl *rd) { return cir::GlobalLinkageKind::ExternalLinkage; } +cir::GlobalOp CIRGenVTables::getAddrOfVTT(const CXXRecordDecl *rd) { + assert(rd->getNumVBases() && "Only classes with

[clang-tools-extra] [clang-tidy] `modernize-use-trailing-return-type`: add an option to apply to `void`-returning functions as well (PR #129406)

2025-09-01 Thread Julian Schmidt via cfe-commits
@@ -469,18 +473,23 @@ UseTrailingReturnTypeCheck::UseTrailingReturnTypeCheck( void UseTrailingReturnTypeCheck::storeOptions( ClangTidyOptions::OptionMap &Opts) { + Options.store(Opts, "WarnOnNonTrailingVoid", WarnOnNonTrailingVoid); Options.store(Opts, "TransformFuncti

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -65,7 +65,7 @@ class PragmaAnnotateHandler : public PragmaHandler { Token Tok; PP.LexUnexpandedToken(Tok); if (Tok.isNot(tok::eod)) - PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "pragma"; + PP.Diag(Tok, diag::ext_pp_extra_tokens_at_eol) << "#pragm

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
https://github.com/DaveBrantonCTCT updated https://github.com/llvm/llvm-project/pull/155200 >From 19b4ddf6a856fdbebac19d1779c6ee83f2d682b0 Mon Sep 17 00:00:00 2001 From: Dave Branton Date: Tue, 2 Sep 2025 08:59:08 +1200 Subject: [PATCH 1/6] Correct replacement code when signed stdint types are

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-01 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. We will hold this PR for one more day to see if there are more comments. https://github.com/llvm/llvm-project/pull/127463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [clang-tools-extra] [lldb] [llvm] [clang][modules] Serialize `CodeGenOptions` (PR #146422)

2025-09-01 Thread Chuanqi Xu via cfe-commits
@@ -0,0 +1,15 @@ +// This test checks that under implicit modules, different optimization levels ChuanqiXu9 wrote: I feel this was caused by a typo. @jansvoboda11 can you fix this? https://github.com/llvm/llvm-project/pull/146422

[libunwind] [libunwind][test] unsupport a test in aarch64 for aarch64 has corss toolchain build (PR #156383)

2025-09-01 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/156383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
https://github.com/DaveBrantonCTCT updated https://github.com/llvm/llvm-project/pull/155200 >From 19b4ddf6a856fdbebac19d1779c6ee83f2d682b0 Mon Sep 17 00:00:00 2001 From: Dave Branton Date: Tue, 2 Sep 2025 08:59:08 +1200 Subject: [PATCH 1/5] Correct replacement code when signed stdint types are

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
@@ -213,6 +213,11 @@ Changes in existing checks when the format string is converted to a different type by an implicit constructor call. +- Improved :doc:`modernize-use-std-format EugeneZelenko wrote: Sorry, I missed existing `modernize-use-std-format` e

[libunwind] [libunwind][test] change to use llvm-objdump (PR #156383)

2025-09-01 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/156383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
@@ -249,6 +249,10 @@ Changes in existing checks ` check to recognize literal suffixes added in C++23 and C23. +- Improved :doc:`modernize-use-std-format EugeneZelenko wrote: Please keep alphabetcial order (by check name) in this list. https://github.com

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
@@ -249,6 +249,10 @@ Changes in existing checks ` check to recognize literal suffixes added in C++23 and C23. +- Improved :doc:`modernize-use-std-format + ` now correctly replaces signed types, and correctly EugeneZelenko wrote: Please follow 80 chara

[clang] [clang][Modules] Permit Link Declarations in Submodule Declarations in Module Maps (PR #156377)

2025-09-01 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/156377 >From 0cb749e2ec11cf51d2c97e935727e55aeaf65097 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 1 Sep 2025 16:09:21 -0700 Subject: [PATCH] Permit link decls in submodule declarations. --- clang/include/c

[libunwind] [libunwind][test] change to use llvm-objdump (PR #156383)

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Wu Yingcong (yingcong-wu) Changes In https://github.com/llvm/llvm-project/pull/154902, the test failed with llvm-clang-win-x-aarch64(it pretends to be a Linux build?), and objdump is not available there. Change the test to use llvm-o

[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-09-01 Thread Wu Yingcong via cfe-commits
yingcong-wu wrote: But I have added `// REQUIRES: linux` to the test already, why is it still running on win-x-aarch64 ? Do you have any ideas? @philnik777 https://github.com/llvm/llvm-project/pull/154902 ___ cfe-commits mailing list cfe-commits@list

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
@@ -150,6 +150,9 @@ Changes to the Debug Info Changes to the LLVM tools - +* modernize-use-std-format now correctly replaces signed types, and correctly DaveBrantonCTCT wrote: Thank you, have put this in the right place. http

[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-09-01 Thread Wu Yingcong via cfe-commits
yingcong-wu wrote: > @yingcong-wu The new test fails on the Arm bots. Please fix it soon or revert > to get the precommit CI green again (finally). Sure, I will take a quick look now. https://github.com/llvm/llvm-project/pull/154902 ___ cfe-commits m

[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

2025-09-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `clang-tools-extra` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/9503 Here is the

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-01 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina Message-ID: In-Reply-To: owenca

[clang] [clang] Make vector cast intrinsics constexpr (PR #156381)

2025-09-01 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] Make vector cast intrinsics constexpr (PR #156381)

2025-09-01 Thread via cfe-commits
https://github.com/vedantjk updated https://github.com/llvm/llvm-project/pull/156381 >From 9833270e2861fe77e7e8e862d81bacbd39983895 Mon Sep 17 00:00:00 2001 From: vedantjk Date: Mon, 1 Sep 2025 18:02:01 -0700 Subject: [PATCH] [clang] Make vector cast intrinsics constexpr --- clang/lib/Headers

[clang] [clang] Make vector cast intrinsics constexpr (PR #156380)

2025-09-01 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] Make vector cast intrinsics constexpr (PR #156380)

2025-09-01 Thread via cfe-commits
https://github.com/vedantjk created https://github.com/llvm/llvm-project/pull/156380 Enable constexpr usage of vector bitcast intrinsics by changing from `__DEFAULT_FN_ATTRS*` to `__DEFAULT_FN_ATTRS*_CONSTEXPR` attributes. **Updated intrinsics:** - AVX-512 bitcast intrinsics: `_mm512_cas

[clang] [clang] Remove written template args from implicit var tpl spec (PR #156329)

2025-09-01 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: I think we need a release note, maybe 'Potential AST breaking changes' would be a good fit. https://github.com/llvm/llvm-project/pull/156329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[clang] [clang][Modules] Permit Link Declarations in Submodule Declarations in Module Maps (PR #156377)

2025-09-01 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/156377 https://github.com/llvm/llvm-project/pull/148959 added two checks that restricts the uses of link declarations. It is later discovered that the Swift project uses link declarations in submodules extensively o

[libclc] [NFC][libclc] Define _CLC_DEF_WEAK and replace _CLC_DEF_ldexp with it (PR #156378)

2025-09-01 Thread Wenju He via cfe-commits
https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/156378 _CLC_DEF_WEAK can be used in our downstream libclc to allow overriding generic __clc_tgamma implementation. >From cc51cd1e096794162a5f3c7be9aa160d83ba2547 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Tue, 2

[clang-tools-extra] Add modernize-use-span linter check (PR #140001)

2025-09-01 Thread JJ Marr via cfe-commits
jj-marr wrote: @SunBlack I'm still in favour of the check but I didn't see myself working on it until C++26 as it won't be usable for many people. I would prefer Option 2 if I was still working on this. In the example you gave, the initializer list should be in a constexpr std::array to avoid

[clang] [clang][Modules] Permit Link Declarations in Submodule Declarations in Module Maps (PR #156377)

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiongsi Wu (qiongsiwu) Changes https://github.com/llvm/llvm-project/pull/148959 added two checks that restricts the uses of link declarations. It is later discovered that the Swift project uses link declarations in submodules extensively

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-01 Thread Koustav Chowdhury via cfe-commits
https://github.com/eulerkochy created https://github.com/llvm/llvm-project/pull/156369 None >From e3795502f1acf7ec5c3980ed9fdb502bbf9403ba Mon Sep 17 00:00:00 2001 From: Koustav Chowdhury Date: Tue, 2 Sep 2025 01:11:34 +0530 Subject: [PATCH] feat: constexpr SSE multiplication intrinsics ---

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-09-01 Thread Artem Dergachev via cfe-commits
haoNoQ wrote: > > At the moment of the previous PR, there was a concern about configurability > > of check > > I think I was about adding an option to configure list of optional classes. > Probably `OptionalClasses` or similar. I haven't seen issues about it, so it > may not be a high priorit

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
https://github.com/DaveBrantonCTCT updated https://github.com/llvm/llvm-project/pull/155200 >From 19b4ddf6a856fdbebac19d1779c6ee83f2d682b0 Mon Sep 17 00:00:00 2001 From: Dave Branton Date: Tue, 2 Sep 2025 08:59:08 +1200 Subject: [PATCH 1/3] Correct replacement code when signed stdint types are

[clang] Fix unique_ptr aggregate initialization false positives (PR #155131)

2025-09-01 Thread via cfe-commits
https://github.com/vidur2 closed https://github.com/llvm/llvm-project/pull/155131 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Ensure `--print-runtime-dir` path exists (PR #102834)

2025-09-01 Thread Alexandre Ganea via cfe-commits
aganea wrote: Ping. This still occurs on Windows as of today on main, `clang-cl -print-runtime-dir` doesn't print the right folder path. On disk we have: `C:\Program Files\LLVM\lib\clang\22\lib\windows`, whereas `-print-runtime-path` prints the full target as on the other platforms: `C:\Progra

[clang-tools-extra] [llvm] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
@@ -150,6 +150,9 @@ Changes to the Debug Info Changes to the LLVM tools - +* modernize-use-std-format now correctly replaces signed types, and correctly EugeneZelenko wrote: Such entry should be in `clang-tools-extra/docs/Rele

[clang-tools-extra] [clang-tidy] modernize-use-std-format: Correct replacement types when signed stdint types are used, and when enums are printed in hex. #150343 (PR #155200)

2025-09-01 Thread via cfe-commits
https://github.com/DaveBrantonCTCT updated https://github.com/llvm/llvm-project/pull/155200 >From 19b4ddf6a856fdbebac19d1779c6ee83f2d682b0 Mon Sep 17 00:00:00 2001 From: Dave Branton Date: Tue, 2 Sep 2025 08:59:08 +1200 Subject: [PATCH] Correct replacement code when signed stdint types are used

[clang] [Clang] Introduce __builtin_meow_synthesises_from_spaceship (PR #155612)

2025-09-01 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/155612 >From e2125e4c9a9d8f3b45ba28af3a54cf13626a910f Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Wed, 27 Aug 2025 14:28:22 +0200 Subject: [PATCH] [Clang] Introduce __builtin_meow_synthesises_from_spaceship

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-09-01 Thread via cfe-commits
@@ -3632,6 +3632,36 @@ static unsigned maxNestingDepth(const AnnotatedLine &Line) { return Result; } +// Returns the token after the first qualifier of the name, or nullptr if there +// is no qualifier. +static FormatToken *skipNameQualifier(const FormatToken *Tok) { + //

[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

2025-09-01 Thread Valentyn Yukhymenko via cfe-commits
https://github.com/BaLiKfromUA updated https://github.com/llvm/llvm-project/pull/144313 >From b2e5ee18bf7f03bbf5f99ef124ef707dc3116886 Mon Sep 17 00:00:00 2001 From: Valentyn Yukhymenko Date: Mon, 16 Jun 2025 08:55:06 +0100 Subject: [PATCH 1/4] first iteration of fix --- .../bde/types/bdlb_nu

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] Fix typos and spelling errors across codebase (PR #156270)

2025-09-01 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Changes to `clang-tools-extra/clangd` LGTM. https://github.com/llvm/llvm-project/pull/156270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-09-01 Thread via cfe-commits
@@ -3669,12 +3718,11 @@ static FormatToken *getFunctionName(const AnnotatedLine &Line, } // Skip to the unqualified part of the name. -while (Tok->startsSequence(tok::identifier, tok::coloncolon)) { - assert(Tok->Next); - Tok = Tok->Next->Next; - if

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-09-01 Thread via cfe-commits
@@ -3669,12 +3718,11 @@ static FormatToken *getFunctionName(const AnnotatedLine &Line, } // Skip to the unqualified part of the name. -while (Tok->startsSequence(tok::identifier, tok::coloncolon)) { - assert(Tok->Next); - Tok = Tok->Next->Next; - if

[clang] 5176fb8 - [Clang] Update ReleaseNotes with ThreadSafetyAnalysis changes (#155687)

2025-09-01 Thread via cfe-commits
Author: Marco Elver Date: 2025-09-01T21:50:13+02:00 New Revision: 5176fb8b1369f9738731ea3452828b29227e1e06 URL: https://github.com/llvm/llvm-project/commit/5176fb8b1369f9738731ea3452828b29227e1e06 DIFF: https://github.com/llvm/llvm-project/commit/5176fb8b1369f9738731ea3452828b29227e1e06.diff L

[clang] [Clang] Update ReleaseNotes with ThreadSafetyAnalysis changes (PR #155687)

2025-09-01 Thread Marco Elver via cfe-commits
https://github.com/melver closed https://github.com/llvm/llvm-project/pull/155687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce __builtin_meow_synthesises_from_spaceship (PR #155612)

2025-09-01 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/155612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -1119,43 +1115,158 @@ bool Preprocessor::LexHeaderName(Token &FilenameTok, bool AllowMacroExpansion) { return false; } +// We represent the primary and partition names as 'Paths' which are sections +// of the hierarchical access path for a clang module. However for C++2

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-01 Thread Koustav Chowdhury via cfe-commits
https://github.com/eulerkochy converted_to_draft https://github.com/llvm/llvm-project/pull/156369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-01 Thread Koustav Chowdhury via cfe-commits
https://github.com/eulerkochy edited https://github.com/llvm/llvm-project/pull/156369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
yronglin wrote: > Some nits but I think it looks good overall @erichkeane @Bigcheese Thanks for your review! https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-09-01 Thread via cfe-commits
@@ -3632,6 +3632,36 @@ static unsigned maxNestingDepth(const AnnotatedLine &Line) { return Result; } +// Returns the token after the first qualifier of the name, or nullptr if there +// is no qualifier. +static FormatToken *skipNameQualifier(const FormatToken *Tok) { + //

[clang] [clang-format] Handle templates in qualified typenames (PR #143194)

2025-09-01 Thread via cfe-commits
@@ -3632,6 +3632,36 @@ static unsigned maxNestingDepth(const AnnotatedLine &Line) { return Result; } +// Returns the token after the first qualifier of the name, or nullptr if there +// is no qualifier. +static FormatToken *skipNameQualifier(const FormatToken *Tok) { + //

[clang] [clang][analyzer] Remove checker 'alpha.core.CastSize' (PR #156350)

2025-09-01 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. I support the removal of this checker, because it implements a heuristic that finds and reports a very specific bug which is (as far as I see) not a "natural" mistake that would appear during real-world development. https://github.com/ll

[clang] [clang][modules-driver] Add initial support for driver-managed module builds (PR #156248)

2025-09-01 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/156248 >From 9760106dbd916861d396b90cc30262a13a01c9c2 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Mon, 25 Aug 2025 02:36:42 +0200 Subject: [PATCH 1/4] [clang][modules-driver] Move logic to enable -fmodu

[clang] Fix unique_ptr aggregate initialization false positives (PR #155131)

2025-09-01 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > So is it best to close this PR? Yes, I think this PR should be closed (because although it is a good approach for fixing the bug, we have that other commit which is further along the same path). https://github.com/llvm/llvm-project/pull/155131 __

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] Fix typos and spelling errors across codebase (PR #156270)

2025-09-01 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: > we shouldn't discourage people from improving the codebase These are orthogonal issues. People are always welcome to improve the codebase, but small PRs are essential for a healthy codebase. And it will actually be **less* work for the author, because the patches will be

[clang] [X86] Add -fexperimental-new-constant-interpreter test coverage to the u32/f32 u64/f64 cast constexpr test files (PR #156327)

2025-09-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add modernize-use-span linter check (PR #140001)

2025-09-01 Thread via cfe-commits
SunBlack wrote: I came across it because of #156058. I think the conversion can already be useful now, but restrictions could be imposed. > `std::span` has a capability gap with a const reference to a `std::vector` > until C++26 as `std::span` cannot be constructed from an initializer list. >

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-01 Thread St. Muench via cfe-commits
@@ -39,6 +39,55 @@ AST_MATCHER(clang::ParmVarDecl, isArgvOfMain) { return FD ? FD->isMain() : false; } +template +const TargetType *getAs(const NodeType *Node) { + if constexpr (std::is_same_v) +return Node->template get(); + else +return llvm::dyn_cast(Node); +}

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -2485,11 +2536,12 @@ class Preprocessor { } /// If we're importing a standard C++20 Named Modules. - bool isInImportingCXXNamedModules() const { -// NamedModuleImportPath will be non-empty only if we're importing -// Standard C++ named modules. -return !Nam

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -14,7 +14,9 @@ #include "clang/AST/ASTConsumer.h" #include "clang/AST/ASTMutationListener.h" #include "clang/AST/DynamicRecursiveASTVisitor.h" +#include "clang/Basic/SourceLocation.h" #include "clang/Lex/HeaderSearch.h" +#include "clang/Lex/ModuleLoader.h"

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -1178,186 +1289,39 @@ bool Preprocessor::LexAfterModuleImport(Token &Result) { // Figure out what kind of lexer we actually have. recomputeCurLexerKind(); - // Lex the next token. The header-name lexing rules are used at the start of - // a pp-import. - // - // For

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -1119,43 +1115,158 @@ bool Preprocessor::LexHeaderName(Token &FilenameTok, bool AllowMacroExpansion) { return false; } +// We represent the primary and partition names as 'Paths' which are sections +// of the hierarchical access path for a clang module. However for C++2

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -233,6 +233,9 @@ class Token { PtrData = const_cast(Ptr); } + template T getAnnotationValueAs() const { +return static_cast(getAnnotationValue()); + } yronglin wrote: It's unecessary, removed. https://github.com/llvm/llvm-project/pull/107168

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -2485,11 +2536,12 @@ class Preprocessor { } /// If we're importing a standard C++20 Named Modules. - bool isInImportingCXXNamedModules() const { -// NamedModuleImportPath will be non-empty only if we're importing -// Standard C++ named modules. -return !Nam

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-09-01 Thread via cfe-commits
@@ -1776,6 +1801,22 @@ class Preprocessor { /// Lex the parameters for an #embed directive, returns nullopt on error. std::optional LexEmbedParameters(Token &Current, bool ForHasEmbed); + bool LexModuleNameContin

[clang] [clang] Remove written template args from implicit var tpl spec (PR #156329)

2025-09-01 Thread Andrey Ali Khan Bolshakov via cfe-commits
https://github.com/bolshakov-a created https://github.com/llvm/llvm-project/pull/156329 `VarTemplateSpecializationDecl::getTemplateArgsAsWritten()` function should return `nullptr` in the case of implicit instantiation, as its `ClassTemplateSpecializationDecl` counterpart does, and not the arg

[clang] [clang-tools-extra] [clang][AST] Fix source range of class template implicit instantiations. (PR #156011)

2025-09-01 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > OK, I understand. Could you point me to where that pattern selection happens? > I will not be able to work on that PR for two weeks but I can go back on it > afterward. In `Sema::InstantiateClass`, which is implemented in SemaTemplateInstantiate.cpp. https://github.com/llvm

[clang] [clang-tools-extra] [clang][AST] Fix source range of class template implicit instantiations. (PR #156011)

2025-09-01 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: The problem is not whether the template instantiation is a definition or not, if the type is required to be complete, then it needs to be a definition. If it's not required to be complete, then it doesn't need to be. What happens here is that when the instantiation is needed, b

[clang] [analyzer] Clean up bug types in CallAndMessageChecker (PR #156073)

2025-09-01 Thread Donát Nagy via cfe-commits
@@ -728,23 +678,15 @@ void CallAndMessageChecker::HandleNilReceiver(CheckerContext &C, C.addTransition(state); } -void ento::registerCallAndMessageModeling(CheckerManager &mgr) { - mgr.registerChecker(); -} - -bool ento::shouldRegisterCallAndMessageModeling(const CheckerMa

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-09-01 Thread Julian Schmidt via cfe-commits
5chmidti wrote: I'll have very little access to my machine this month, but I'll move this forward in October (maybe with a bit before that) and also split the PR into smaller ones. https://github.com/llvm/llvm-project/pull/146553 ___ cfe-commits mail

[clang] [X86] Add -fexperimental-new-constant-interpreter test coverage to the x86 scalar rotate constexpr test files (PR #156337)

2025-09-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] Fix typos and spelling errors across codebase (PR #156270)

2025-09-01 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. Flang and flang-rt changes LGTM. https://github.com/llvm/llvm-project/pull/156270 ___ 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-09-01 Thread Julian Schmidt via cfe-commits
5chmidti wrote: I won't have access to my machine for 2 weeks, so I can't try it out in the coming days, sorry. I'll see if I can do at least some review on mobile, but my general thoughts are in discourse. For now: I think the documentation should be extended to explain that the AST is not a

[clang] e932e41 - [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (#156187)

2025-09-01 Thread via cfe-commits
Author: moorabbit Date: 2025-09-01T16:04:17Z New Revision: e932e413cfd00d42b2832c7d5fc4b3db576a1401 URL: https://github.com/llvm/llvm-project/commit/e932e413cfd00d42b2832c7d5fc4b3db576a1401 DIFF: https://github.com/llvm/llvm-project/commit/e932e413cfd00d42b2832c7d5fc4b3db576a1401.diff LOG: [He

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #156187)

2025-09-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add -fexperimental-new-constant-interpreter test coverage to the x86 scalar rotate constexpr test files (PR #156337)

2025-09-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/156337 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Remove checker 'alpha.core.CastSize' (PR #156350)

2025-09-01 Thread Balázs Kéri via cfe-commits
balazske wrote: According to https://discourse.llvm.org/t/remove-alpha-core-castsize/87974 this checker looks to be rarely used. In the current form it can have more false positives (I tested it on some C projects) than useful results. Additionally, the same problem could be found with other m

[clang] e956090 - [X86] Add -fexperimental-new-constant-interpreter test coverage to the x86 scalar rotate constexpr test files (#156337)

2025-09-01 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-09-01T15:59:53Z New Revision: e956090f7455750c7ce932801609c22a97b19a05 URL: https://github.com/llvm/llvm-project/commit/e956090f7455750c7ce932801609c22a97b19a05 DIFF: https://github.com/llvm/llvm-project/commit/e956090f7455750c7ce932801609c22a97b19a05.diff LOG:

[clang] [lldb] [lldb][Expression] Add structor variant to LLDB's function call labels (PR #149827)

2025-09-01 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/149827 >From bb71b69ea69fe4046a3f93e30f82dfb1d4d59b69 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 18 Aug 2025 15:14:40 +0100 Subject: [PATCH 1/3] [clang][DebugInfo] Emit unified (Itanium) mangled name to

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] [mlir] [openmp] Fix typos and spelling errors across codebase (PR #156270)

2025-09-01 Thread Paschalis Mpeis via cfe-commits
https://github.com/paschalis-mpeis approved this pull request. Thanks for the fixes. Directory `/bolt` LGTM. Please wait on other areas. https://github.com/llvm/llvm-project/pull/156270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://li

  1   2   3   >