[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] 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-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] [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] [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] [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] [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] [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
@@ -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] [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] [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] 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-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] [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

[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] 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-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-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-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] [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-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] 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
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] [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] [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][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] 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

[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] [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 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] 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

[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] 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] 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

[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

[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

[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] [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] 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

[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

[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 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

[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-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

[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] [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

[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] [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] [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] [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 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-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

2025-09-01 Thread Nikita Popov via cfe-commits
nikic wrote: ``` Building CXX object tools/clang/tools/extra/clang-reorder-fields/CMakeFiles/obj.clangReorderFields.dir/Designator.cpp.o FAILED: tools/clang/tools/extra/clang-reorder-fields/CMakeFiles/obj.clangReorderFields.dir/Designator.cpp.o sccache /opt/llvm/bin/clang++ -DGTEST_HAS_RTTI=0

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-01 Thread via cfe-commits
@@ -0,0 +1,132 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-01 Thread via cfe-commits
@@ -0,0 +1,132 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-01 Thread via cfe-commits
https://github.com/t-a-james updated https://github.com/llvm/llvm-project/pull/154746 >From 39ad4945d05f3e88fd32dfdea585aa99c6ba985f Mon Sep 17 00:00:00 2001 From: Tom James Date: Thu, 21 Aug 2025 13:14:24 +0100 Subject: [PATCH 01/23] [clang-tidy] New bugprone-method-hiding check --- .../bugp

[clang-tools-extra] c128b8c - [clang-reorder-fields] Fix unused private field warning (NFC)

2025-09-01 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2025-09-01T10:07:11+02:00 New Revision: c128b8c46f2a3b750c9abcba1e303f92d6531e5f URL: https://github.com/llvm/llvm-project/commit/c128b8c46f2a3b750c9abcba1e303f92d6531e5f DIFF: https://github.com/llvm/llvm-project/commit/c128b8c46f2a3b750c9abcba1e303f92d6531e5f.diff

[clang-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-01 Thread via cfe-commits
@@ -0,0 +1,127 @@ +//===--===// +// +// 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-tools-extra] [clang-tidy] New bugprone-derived-method-shadowing-base-method (PR #154746)

2025-09-01 Thread via cfe-commits
@@ -0,0 +1,132 @@ +//===--===// +// +// 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] [clang][AST] Fix source range of class template implicit instantiations. (PR #156011)

2025-09-01 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/156011 >From 56c46c1224927289e08b8627484eab51dc21a69b Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Mon, 25 Aug 2025 20:07:04 +0200 Subject: [PATCH] [clang][AST] Fix source range of class templ

[clang] [X86] Update BMI, BMI2 and TBM constexpr tests (PR #156260)

2025-09-01 Thread Burhan Söğüt via cfe-commits
@@ -237,85 +238,85 @@ unsigned long long test_blsr_u64(unsigned long long __X) { // Test constexpr handling. #if defined(__cplusplus) && (__cplusplus >= 201103L) -char andnu32[__andn_u32(0x01234567, 0xFECDBA98) == (~0x01234567 & 0xFECDBA98) ? 1 : -1]; -char andn2u32[_andn_u32

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-09-01 Thread Madhur Amilkanthwar via cfe-commits
@@ -204,6 +205,10 @@ static cl::opt EnableLoopInterchange("enable-loopinterchange", cl::init(false), cl::Hidden, cl::desc("Enable the LoopInterchange Pass")); +static cl::opt EnableLoopFusion("enable-loopfusion", cl::init(false),

[clang] [Driver] Enable outline atomics for Haiku and Managarm aarch64 (PR #156299)

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/156299.diff 3 Files Affected: - (modified) clang/lib/Driver/ToolChains/Haiku.h (+5) - (modified) clang/lib/Driver/ToolChains/Managarm.h (+6) - (modif

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

2025-09-01 Thread Nikita Popov via cfe-commits
nikic wrote: Fixed by https://github.com/llvm/llvm-project/commit/c128b8c46f2a3b750c9abcba1e303f92d6531e5f. https://github.com/llvm/llvm-project/pull/142150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang-tools-extra] [clang-tidy] Support direct initialization in modernize smart pointer (PR #154732)

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

[clang] [AArch64][FMV] Enable PAuth and BTI hardening of resolver functions (PR #141573)

2025-09-01 Thread Anatoly Trosinenko via cfe-commits
atrosinenko wrote: @labrinea I'm sorry for disappearing, I will update this PR this week. https://github.com/llvm/llvm-project/pull/141573 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [clang] fix clang_cmake_builddir (PR #155844)

2025-09-01 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts approved this pull request. Looks ok to me. So far seems like even on main, setting `-DLLVM_LIBDIR_SUFFIX` has no effect so seems like this is ok Adding @kwk in case I'm missing something https://github.com/llvm/llvm-project/pull/155844 ___

[clang] [llvm] [HLSL][DirectX] Finish WaveGetLaneCount implementation (PR #156338)

2025-09-01 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts created https://github.com/llvm/llvm-project/pull/156338 Some testing was lacking, as well as DirectX lowering of the intrinsic. Fixes #99159 From fd5bfbba2de4ae25336487b9778d56b5292d60ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Mon, 1 Se

[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] [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
@@ -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] [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] 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][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-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] [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] Add new check 'llvm-use-ranges' (PR #152047)

2025-09-01 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/152047 >From bb17fb65d031190efff6a6ec1c0ca6d9c0d35abb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 5 Aug 2025 01:15:02 +0300 Subject: [PATCH 1/7] [clang-tidy] Add new check 'llvm-use-ranges' --- .../clan

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

2025-09-01 Thread Balázs Kéri via cfe-commits
https://github.com/balazske created https://github.com/llvm/llvm-project/pull/156350 None From 19c4f21ce4b1c79c8dd2be0a017164e500ac1b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Fri, 29 Aug 2025 09:02:39 +0200 Subject: [PATCH] [clang][analyzer] Remove checker 'al

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

2025-09-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/156350.diff 11 Files Affected: - (modified) clang/docs/analyzer/checkers.rst (-12) - (modified) clang

[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] [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] [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] 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] [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] [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
@@ -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] [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

  1   2   3   >