[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-27 Thread Congcong Cai via cfe-commits
@@ -0,0 +1,3 @@ +// RUN: clang-tidy %s --config="{CheckOptions:{StrictMode: true}}" -checks="-*,modernize-use-std-format" | FileCheck %s + +// CHECK: warning: deprecation global option 'StrictMode', please use 'modernize-use-std-format.StrictMode'. [clang-tidy-config] -

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

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

[clang] [Driver] Make regex stricter (PR #121243)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Vitaly Buka (vitalybuka) Changes Follow up to #121221. --- Full diff: https://github.com/llvm/llvm-project/pull/121243.diff 1 Files Affected: - (modified) clang/test/Driver/sanitizer-ld.c (+8-4) ```

[clang] [Driver] Make regex stricter (PR #121243)

2024-12-27 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/121243 Follow up to #121221. >From 85581e8a0481388781b2c715fd746c908ea5fa04 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 27 Dec 2024 18:32:15 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=

[clang] [Driver] Make regex stricter (PR #121243)

2024-12-27 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/121243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SYCL] Basic diagnostics for the sycl_kernel_entry_point attribute. (PR #120327)

2024-12-27 Thread Tom Honermann via cfe-commits
@@ -15978,6 +15988,24 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, CheckCoroutineWrapper(FD); } + // Diagnose invalid SYCL kernel entry point function declarations. + if (FD && !FD->isInvalidDecl() && !FD->isTemplated() && tahonerma

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

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

[clang] 092966a - [Driver] Make regex stricter (#121243)

2024-12-27 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-27T19:32:06-08:00 New Revision: 092966a44d1793e6bd53c191efeb5a5425fecde3 URL: https://github.com/llvm/llvm-project/commit/092966a44d1793e6bd53c191efeb5a5425fecde3 DIFF: https://github.com/llvm/llvm-project/commit/092966a44d1793e6bd53c191efeb5a5425fecde3.diff L

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/34] Up

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
@@ -319,10 +319,11 @@ Changes in existing checks diagnostic. - Improved :doc:`readability-implicit-bool-conversion - ` check - by adding the option `UseUpperCaseLiteralSuffix` to select the - case of the literal suffix in fixes and fixing false positive for implicit - co

[clang-tools-extra] [clangd] Add a unit test suite for HeuristicResolver (PR #121246)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nathan Ridge (HighCommander4) Changes Fixes https://github.com/clangd/clangd/issues/2154 --- Full diff: https://github.com/llvm/llvm-project/pull/121246.diff 3 Files Affected: - (modified) clang-tools-extra/clangd/HeuristicR

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/121245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread Michael Park via cfe-commits
https://github.com/mpark created https://github.com/llvm/llvm-project/pull/121245 This is fix for an unreachable code path being reached, for an internal use case at Meta. I'm unfortunately still not able to reproduce a minimal example that I can share 😞 # Description There is a defaulted co

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Park (mpark) Changes This is fix for an unreachable code path being reached, for an internal use case at Meta. I'm unfortunately still not able to reproduce a minimal example that I can share 😞 # Description There is a defaulted

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
4m4n-x-B4w4ne wrote: @HerrCai0907 , Thanks I dont have any write permissions. Can you please help me to merge? https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/121245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
@@ -283,10 +283,12 @@ static bool shouldCompletelyUnroll(const Stmt *LoopStmt, ASTContext &ASTCtx, llvm::APInt InitNum = Matches[0].getNodeAs("initNum")->getValue(); auto CondOp = Matches[0].getNodeAs("conditionOperator"); - if (InitNum.getBitWidth() != BoundNum.get

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: @4m4n-x-B4w4ne Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/9909 Here is the r

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2024-12-27 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Thank you @kleinesfilmroellchen for your contribution! https://github.com/llvm/llvm-project/pull/67749 ___ 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 depercation warning for non-whitelisted global options (PR #121057)

2024-12-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/121057 >From 98d65a0b9a1189ce73d97d76527b458f93f17b43 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 24 Dec 2024 23:32:02 +0800 Subject: [PATCH 1/3] [clang-tidy] add depercation warning for non-whitelisted

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-27 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/105597 ___ 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)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff f334db92be168876b618db72dc93078ce23ffa89 e0db7316b2705398a2ac7e69cd1e3e83ece52613 --e

[clang] [Clang] Add float type support to __builtin_reduce_add and __builtin_reduce_multipy (PR #120367)

2024-12-27 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/120367 >From d72983f1666cc6952edd9a721a4f1dc2d1a5a8ed Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Wed, 18 Dec 2024 01:44:42 -0500 Subject: [PATCH 1/2] [Clang] Add float type support to __builtin_reduce_add and _

[clang] [compiler-rt] [llvm] [Coverage] Move SingleByteCoverage out of CountedRegion (PR #110966)

2024-12-27 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/110966 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Added nullptr check to getFriendDecl access (PR #121056)

2024-12-27 Thread via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s +// expected-no-diagnostics + +// Ensure the following out of line friend declaration doesn't cause the compiler to crash. + +class A { + friend bool operator==(const A&, const A&); + friend class B; +}; +

[libcxx] [libcxxabi] [libunwind] [llvm] [libc++] Enable -Wmissing-prototypes (PR #116261)

2024-12-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/116261 >From 4efe922727331e091d27c8eb3e2431d6349b1a40 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Thu, 14 Nov 2024 18:30:39 +0100 Subject: [PATCH] [libc++] Enable -Wmissing-prototypes --- libcxx/src/charc

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

2024-12-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/121199 None >From e0db7316b2705398a2ac7e69cd1e3e83ece52613 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Fri, 27 Sep 2024 22:11:14 +0200 Subject: [PATCH] [Clang] Add __builtin_common_reference --- clang/do

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 223521b13e7465bc177f43e22de526b777d6ff74 3bcf5c8f05df2f62a9ef13537b813e7df2871d1b --e

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
steakhal wrote: Hey, could you add a test for this PR that would crash on main, but wouldn't with this patch? https://github.com/llvm/llvm-project/pull/121203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda updated https://github.com/llvm/llvm-project/pull/121203 >From 2cee5fc2abd0cf2979c9ba975906e659adcd4463 Mon Sep 17 00:00:00 2001 From: shenjunjie Date: Fri, 27 Dec 2024 14:08:55 + Subject: [PATCH] [analyzer] Fix zext assertion failure in loop unrolling ---

[clang] [llvm] [RISCV] Add Qualcomm uC Xqciac (Load-Store Adress calculation) extension (PR #121037)

2024-12-27 Thread Craig Topper via cfe-commits
@@ -184,6 +191,37 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { } // hasSideEffects = 0, mayLoad = 0, mayStore = 0 } // Predicates = [HasVendorXqcia, IsRV32], DecoderNamespace = "Xqcia" +let Predicates = [HasVendorXqciac, IsRV32], DecoderNamespace = "Xqciac" in { +

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda updated https://github.com/llvm/llvm-project/pull/121203 >From 2cee5fc2abd0cf2979c9ba975906e659adcd4463 Mon Sep 17 00:00:00 2001 From: shenjunjie Date: Fri, 27 Dec 2024 14:08:55 + Subject: [PATCH 1/5] [analyzer] Fix zext assertion failure in loop unrolling

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/121203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: Thanks for the nice reproducer! The test looks a bit verbose to my taste, but it's okay as-is. I had some deeper thoughts of the fix inline to settle before we could merge this. Thanks again for working on this issue! https://github.com/llvm/llvm-project/

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
@@ -283,10 +283,12 @@ static bool shouldCompletelyUnroll(const Stmt *LoopStmt, ASTContext &ASTCtx, llvm::APInt InitNum = Matches[0].getNodeAs("initNum")->getValue(); auto CondOp = Matches[0].getNodeAs("conditionOperator"); - if (InitNum.getBitWidth() != BoundNum.get

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ashley Hauck (khyperia) Changes This is my first LLVM PR! Please feel free to provide feedback/etc. - I am especially unsure about the `Options.td` change - I just kind of guessed here. Partially fixes https://github.com/llvm/llvm-project

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Ashley Hauck (khyperia) Changes This is my first LLVM PR! Please feel free to provide feedback/etc. - I am especially unsure about the `Options.td` change - I just kind of guessed here. Partially fixes https://github.com/llvm/llvm-

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 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] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread Ashley Hauck via cfe-commits
https://github.com/khyperia created https://github.com/llvm/llvm-project/pull/121231 This is my first LLVM PR! Please feel free to provide feedback/etc. - I am especially unsure about the `Options.td` change - I just kind of guessed here. Partially fixes https://github.com/llvm/llvm-project/is

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 815343e7dd32cc4c5c903ac52daf87aaa4e4cd6e 51401ec4a8af7d926ba3c9faa818ecb9c68c0db7 --e

[clang] Add -fuse-lipo option (PR #121231)

2024-12-27 Thread Ashley Hauck via cfe-commits
https://github.com/khyperia updated https://github.com/llvm/llvm-project/pull/121231 >From 33b542152876b9ccbf42cc3d070d582c32145477 Mon Sep 17 00:00:00 2001 From: khyperia Date: Fri, 27 Dec 2024 23:03:58 +0100 Subject: [PATCH] Add -fuse-lipo option --- clang/include/clang/Driver/Options.td |

[clang] [analyzer] Handle [[assume(cond)]] as __builtin_assume(cond) (PR #116462)

2024-12-27 Thread Balazs Benics via cfe-commits
steakhal wrote: So we had the following assertion failure: ``` clang/lib/Analysis/ThreadSafety.cpp:529: LocalVariableMap::addDefinition: Assertion `!Ctx.contains(D)' failed. ``` On `libcxx/test/std/algorithms/alg.modifying.operations/alg.fill/pstl.fill_n.pass.cpp`. I wish I could come back to

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda updated https://github.com/llvm/llvm-project/pull/121203 >From 2cee5fc2abd0cf2979c9ba975906e659adcd4463 Mon Sep 17 00:00:00 2001 From: shenjunjie Date: Fri, 27 Dec 2024 14:08:55 + Subject: [PATCH 1/2] [analyzer] Fix zext assertion failure in loop unrolling

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang] Added nullptr check to getFriendDecl access (PR #121056)

2024-12-27 Thread via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s +// expected-no-diagnostics + +// Ensure the following out of line friend declaration doesn't cause the compiler to crash. + +class A { + friend bool operator==(const A&, const A&); + friend class B; +}; +

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Driver] Annotate darwin check (PR #121217)

2024-12-27 Thread Caslyn Tonelli via cfe-commits
https://github.com/Caslyn created https://github.com/llvm/llvm-project/pull/121217 None >From d82b90749a5381af4a022c8102802012e78b107c Mon Sep 17 00:00:00 2001 From: Caslyn Tonelli Date: Fri, 27 Dec 2024 09:56:10 -0800 Subject: [PATCH] [Driver] Annotate darwin check --- clang/test/Driver/san

[clang] [Driver] Annotate darwin check (PR #121217)

2024-12-27 Thread Caslyn Tonelli via cfe-commits
https://github.com/Caslyn updated https://github.com/llvm/llvm-project/pull/121217 >From 40f56960789e48b2f9221b077c3aec6cc4c21838 Mon Sep 17 00:00:00 2001 From: Caslyn Tonelli Date: Fri, 27 Dec 2024 09:56:10 -0800 Subject: [PATCH] [Driver] Annotate darwin check --- clang/test/Driver/sanitizer

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: JOSTAR (shenjunjiekoda) Changes The current implementation of APInt extension in the code can trigger an assertion failure when the `zext` function is called with a target width smaller than the current bit width. For ex

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda created https://github.com/llvm/llvm-project/pull/121203 The current implementation of APInt extension in the code can trigger an assertion failure when the `zext` function is called with a target width smaller than the current bit width. For example: ```cpp i

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: JOSTAR (shenjunjiekoda) Changes The current implementation of APInt extension in the code can trigger an assertion failure when the `zext` function is called with a target width smaller than the current bit width. For example: ```cpp if (

[clang] [compiler-rt] [llvm] [Coverage] Move SingleByteCoverage out of CountedRegion (PR #110966)

2024-12-27 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni closed https://github.com/llvm/llvm-project/pull/110966 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [ARM] Save floating point registers and status registers with save_fp function attribute (PR #89654)

2024-12-27 Thread Benson Chu via cfe-commits
@@ -80,13 +80,47 @@ ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { ? CSR_ATPCS_SplitPush_SwiftTail_SaveList : CSR_AAPCS_SwiftTail_SaveList); } else if (F.hasFnAttribute(

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot1` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/52/builds/4825 Here is the relevan

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
@@ -0,0 +1,54 @@ +//===--===// +// +// 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: Apac

[clang] [clang-tools-extra] [libcxx] [llvm] [libc++] implement views::concat (PR #120920)

2024-12-27 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/120920 error: too big or took too long to generate ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [PAC][ELF][AArch64] Support signed personality function pointer (PR #113148)

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

[clang] b2fd0a7 - [Driver] Fix implicit-check-not regex (#121221)

2024-12-27 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-27T13:02:51-08:00 New Revision: b2fd0a7a7065658ab4a3355399978523c1370615 URL: https://github.com/llvm/llvm-project/commit/b2fd0a7a7065658ab4a3355399978523c1370615 DIFF: https://github.com/llvm/llvm-project/commit/b2fd0a7a7065658ab4a3355399978523c1370615.diff L

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/121221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
https://github.com/steakhal edited https://github.com/llvm/llvm-project/pull/121203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda updated https://github.com/llvm/llvm-project/pull/121203 >From 2cee5fc2abd0cf2979c9ba975906e659adcd4463 Mon Sep 17 00:00:00 2001 From: shenjunjie Date: Fri, 27 Dec 2024 14:08:55 + Subject: [PATCH 1/4] [analyzer] Fix zext assertion failure in loop unrolling

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread Balazs Benics via cfe-commits
steakhal wrote: Could you please add a RUN line to the test, and a `// no-crash` comment at the line where previously crashed during interpretation? I'd also prefer a `clang-formated` test file if possible. Are you sure the test case is minimal and couldn't be minimized further now that you kno

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 6d34cfac53b993a6cdf3d6669e017eac3a2296c8 75fe805c9e2b45632e2653b3e3a1b7874ede2507 --e

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
shenjunjiekoda wrote: > Contributor The crash occurred due to a failed assertion in the `zext` method of APInt. The `zext` function requires the following condition to be met: ```cpp // Zero extend to a new width. APInt APInt::zext(unsigned width) const { assert(width >= BitWidth && "Invalid

[clang] [analyzer] Fix zext assertion failure in loop unrolling (PR #121203)

2024-12-27 Thread via cfe-commits
https://github.com/shenjunjiekoda updated https://github.com/llvm/llvm-project/pull/121203 >From 2cee5fc2abd0cf2979c9ba975906e659adcd4463 Mon Sep 17 00:00:00 2001 From: shenjunjie Date: Fri, 27 Dec 2024 14:08:55 + Subject: [PATCH 1/6] [analyzer] Fix zext assertion failure in loop unrolling

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread via cfe-commits
@@ -319,10 +319,11 @@ Changes in existing checks diagnostic. - Improved :doc:`readability-implicit-bool-conversion - ` check - by adding the option `UseUpperCaseLiteralSuffix` to select the - case of the literal suffix in fixes and fixing false positive for implicit - co

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/121221 We need to exclude more than builtins, but it's tricky with FileCheck regex. So switching to list of libs we want to check. >From a2d45112466ba69eeb8ca9236469a653d6ff700c Mon Sep 17 00:00:00 2001 From: Vit

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: @MaskRay in case you have a nicer suggestion how to implement this check in better way. I'd like to force match of all libclang_rt. except specific list. With `([^b]..|.[^u].|..[^i]).*` I can exclude only one, and expressions like `(?!(ABC|XYZ)).*`, are not supported https:

[clang] [Driver] Annotate darwin check (PR #121217)

2024-12-27 Thread Caslyn Tonelli via cfe-commits
https://github.com/Caslyn closed https://github.com/llvm/llvm-project/pull/121217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Vitaly Buka (vitalybuka) Changes We need to exclude more than builtins, but it's tricky with FileCheck regex. So switching to list of libs we want to check. --- Full diff: https://github.com/llvm/llvm-project/pull/121221.diff 1

[clang] [Driver] Fix implicit-check-not regex (PR #121221)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) Changes We need to exclude more than builtins, but it's tricky with FileCheck regex. So switching to list of libs we want to check. --- Full diff: https://github.com/llvm/llvm-project/pull/121221.diff 1 Files

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2024-12-27 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: The rebased patch has green buildkite runs, so I will go ahead and merge it. https://github.com/llvm/llvm-project/pull/67749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Driver] Annotate darwin check (PR #121217)

2024-12-27 Thread Caslyn Tonelli via cfe-commits
Caslyn wrote: Fixed under https://github.com/llvm/llvm-project/pull/121221. https://github.com/llvm/llvm-project/pull/121217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 1f90797 - [clangd] Allow specifying what headers are always included via "" or <> (#67749)

2024-12-27 Thread via cfe-commits
Author: kleines Filmröllchen Date: 2024-12-27T14:14:29-05:00 New Revision: 1f90797f6a9d91d61e0f66b465b0467e4c66d0e0 URL: https://github.com/llvm/llvm-project/commit/1f90797f6a9d91d61e0f66b465b0467e4c66d0e0 DIFF: https://github.com/llvm/llvm-project/commit/1f90797f6a9d91d61e0f66b465b0467e4c66d0e

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2024-12-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/67749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-27 Thread Jason Rice via cfe-commits
https://github.com/ricejasonf created https://github.com/llvm/llvm-project/pull/121225 In the development of P1061 (Structured Bindings Introduce a Patch), I found this bug in the template instantiation of a local class. The issue is caused by the instantiation of the original template and not

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jason Rice (ricejasonf) Changes In the development of P1061 (Structured Bindings Introduce a Patch), I found this bug in the template instantiation of a local class. The issue is caused by the instantiation of the original template and no

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-27 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: > I wonder however how it will work for people who are stuck in old clang-tidy > files for whatever reason Good point, maybe we can use more smart way to do warning: only warn the global option is set but local option is not. Have some redundant options is not the aim for t

[clang] [llvm] [RISCV] Add Qualcomm uC Xqciac (Load-Store Adress calculation) extension (PR #121037)

2024-12-27 Thread Sam Elliott via cfe-commits
@@ -184,6 +191,37 @@ let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in { } // hasSideEffects = 0, mayLoad = 0, mayStore = 0 } // Predicates = [HasVendorXqcia, IsRV32], DecoderNamespace = "Xqcia" +let Predicates = [HasVendorXqciac, IsRV32], DecoderNamespace = "Xqciac" in { +

[clang-tools-extra] [clang-tidy][clangd] Fixed removeFunctionArgs don't remove comma for use-ranges check (PR #118568)

2024-12-27 Thread Congcong Cai via cfe-commits
@@ -164,6 +164,33 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) { static void removeFunctionArgs(DiagnosticBuilder &Diag, const CallExpr &Call, ArrayRef Indexes, const ASTContext &Ctx) { + auto GetC

[clang-tools-extra] [clang-tidy][clangd] Fixed removeFunctionArgs don't remove comma for use-ranges check (PR #118568)

2024-12-27 Thread Congcong Cai via cfe-commits
@@ -164,6 +164,33 @@ void UseRangesCheck::registerMatchers(MatchFinder *Finder) { static void removeFunctionArgs(DiagnosticBuilder &Diag, const CallExpr &Call, ArrayRef Indexes, const ASTContext &Ctx) { + auto GetC

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/120245 >From 9e47698969dc59df1abaa8abd243b97e8fa038c3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 17 Dec 2024 23:31:52 +0800 Subject: [PATCH 1/5] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conve

[clang-tools-extra] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-27 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: sorry for forgetting it https://github.com/llvm/llvm-project/pull/120245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM. If you do not have write access, please ping me. we can help you to do merge. https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

2024-12-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/121057 >From 98d65a0b9a1189ce73d97d76527b458f93f17b43 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Tue, 24 Dec 2024 23:32:02 +0800 Subject: [PATCH 1/2] [clang-tidy] add depercation warning for non-whitelisted

[clang] [clang-format] Add `AllowShortNamespacesOnASingleLine` option (PR #105597)

2024-12-27 Thread Galen Elias via cfe-commits
https://github.com/galenelias updated https://github.com/llvm/llvm-project/pull/105597 >From 93eb3d89652607173f4f68fce7dcc5b2bd33f266 Mon Sep 17 00:00:00 2001 From: Galen Elias Date: Wed, 21 Aug 2024 16:33:42 -0700 Subject: [PATCH 01/14] clang-format: Add "AllowShortNamespacesOnASingleLine" op

[clang] [clang][bytecode] Add support for typeid pointers (PR #121251)

2024-12-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/121251 Add it as another kind of pointer, saving both a `Type*` for the result of the typeid() expression as well as one for the type of the typeid expression. >From aad3e96d970be36964faceec8d0a6df3dd27e5ff Mon Sep 1

[clang] [clang][bytecode] Move a local variable to a later point (PR #121250)

2024-12-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/121250 We don't need `E` before. >From 3ecbfa862eee6b6c1f009dfcf6b9791e77af97b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 28 Dec 2024 06:38:52 +0100 Subject: [PATCH] [clang][bytecode] Mo

[clang] [clang][bytecode] Add support for typeid pointers (PR #121251)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Add it as another kind of pointer, saving both a `Type*` for the result of the typeid() expression as well as one for the type of the typeid expression. --- Full diff: https://github.com/llvm/llvm-project/pu

[clang] [clang][bytecode] Move a local variable to a later point (PR #121250)

2024-12-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We don't need `E` before. --- Full diff: https://github.com/llvm/llvm-project/pull/121250.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Pointer.cpp (+1-1) ``diff diff --git a/clang/

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5bec2b7 - Added options to readability-implicit-bool-conversion (#120087)

2024-12-27 Thread via cfe-commits
Author: 4m4n-x-B4w4ne Date: 2024-12-28T15:35:30+08:00 New Revision: 5bec2b71b44ddff44aa4d8534b58a5561389bb1d URL: https://github.com/llvm/llvm-project/commit/5bec2b71b44ddff44aa4d8534b58a5561389bb1d DIFF: https://github.com/llvm/llvm-project/commit/5bec2b71b44ddff44aa4d8534b58a5561389bb1d.diff

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang-tools-extra` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/9576 Here is the rele

[clang] [Clang][ASTMatcher] Add `dependentScopeDeclRefExpr` Matcher (PR #120996)

2024-12-27 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: > #121240 Sure, i am interested, Thank you :D https://github.com/llvm/llvm-project/pull/120996 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/121245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2024-12-27 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/121245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >