[clang] [clang] Diagnose for implicit boolean conversions in assignments (PR #114687)

2024-11-02 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 8129ba6c70aef54d87893adeb34e76f84fa69fe3 b8244b346c7a97c2eb35ccfea23675b8df4f046e --e

[clang-tools-extra] [clangd] Add quick fix to automatically adds NOLINTNEXTLINE comment (PR #114661)

2024-11-02 Thread Richard Li via cfe-commits
https://github.com/chomosuke updated https://github.com/llvm/llvm-project/pull/114661 >From 35cbe235a9b1b40b23b0910eb1bfa42c488ab54e Mon Sep 17 00:00:00 2001 From: chomosuke Date: Sat, 2 Nov 2024 09:18:38 + Subject: [PATCH] Add quick fix to automatically adds NOLINTNEXTLINE comment above c

[clang-tools-extra] [clangd] Add quick fix to automatically adds NOLINTNEXTLINE comment (PR #114661)

2024-11-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: Richard Li (chomosuke) Changes For some other lsp / linters. They will offer a "Ignore this error for this line" code actions for warnings. I find that convenient as I don't have to type the comment

[clang-tools-extra] [clangd] Add quick fix to automatically adds NOLINTNEXTLINE comment (PR #114661)

2024-11-02 Thread Richard Li via cfe-commits
https://github.com/chomosuke updated https://github.com/llvm/llvm-project/pull/114661 >From 311c752356617d768f0bdc8599e765ae42272329 Mon Sep 17 00:00:00 2001 From: chomosuke Date: Sat, 2 Nov 2024 09:18:38 + Subject: [PATCH] Add quick fix to automatically adds NOLINTNEXTLINE comment above c

[clang-tools-extra] [clangd] Add quick fix to automatically adds NOLINTNEXTLINE comment (PR #114661)

2024-11-02 Thread Richard Li via cfe-commits
https://github.com/chomosuke ready_for_review https://github.com/llvm/llvm-project/pull/114661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] df232d4 - [clang-format] Don't re-annotate CaseLabelColon as ConditionalExpr (#114639)

2024-11-02 Thread via cfe-commits
Author: Owen Pan Date: 2024-11-02T14:42:41-07:00 New Revision: df232d46f5b62220073f106e960575b9cf6cc39d URL: https://github.com/llvm/llvm-project/commit/df232d46f5b62220073f106e960575b9cf6cc39d DIFF: https://github.com/llvm/llvm-project/commit/df232d46f5b62220073f106e960575b9cf6cc39d.diff LOG:

[clang] [clang-format] Don't re-annotate CaseLabelColon as ConditionalExpr (PR #114639)

2024-11-02 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/114639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-11-02 Thread via cfe-commits
https://github.com/qt-tatiana updated https://github.com/llvm/llvm-project/pull/113144 >From 34ee6f5836efe3acddbdd1c9810af358b8c4f981 Mon Sep 17 00:00:00 2001 From: Tatiana Borisova Date: Thu, 17 Oct 2024 18:00:08 +0200 Subject: [PATCH 1/8] [clang-tidy] Create a check for signed and unsigned i

[clang] 25af8f5 - [clang-format][doc] Fix a typo

2024-11-02 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2024-11-02T14:48:35-07:00 New Revision: 25af8f535edd59ec12a404954db233e2e65e8d9b URL: https://github.com/llvm/llvm-project/commit/25af8f535edd59ec12a404954db233e2e65e8d9b DIFF: https://github.com/llvm/llvm-project/commit/25af8f535edd59ec12a404954db233e2e65e8d9b.diff LOG:

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-11-02 Thread via cfe-commits
@@ -0,0 +1,192 @@ +//===--- UseIntegerSignComparisonCheck.cpp - clang-tidy ---===// +// +// 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: Ap

[clang] [Clang][TableGen] Add explicit symbol visibility macros to code generated (PR #109362)

2024-11-02 Thread Thomas Fransham via cfe-commits
https://github.com/fsfod updated https://github.com/llvm/llvm-project/pull/109362 >From f4e51ecd076a73d1ebc7a439001d0ed22071b019 Mon Sep 17 00:00:00 2001 From: Thomas Fransham Date: Mon, 8 Jul 2024 01:48:46 +0100 Subject: [PATCH 1/2] [Clang][TableGen] Add explicit symbol visibility macros to c

[clang] [clang-format] Don't re-annotate CaseLabelColon as ConditionalExpr (PR #114639)

2024-11-02 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/4185 Here is the relevant piece of the build log fo

[clang] [Clang] enhance error recovery with RecoveryExpr for trailing commas in call arguments (PR #114684)

2024-11-02 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/114684 Fixes #100921 >From d95d0fdb22ae2ad162f89cb211f313cea6c6474a Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 2 Nov 2024 23:54:35 +0200 Subject: [PATCH] [Clang] enhance error recovery with RecoveryExpr

[clang] [clang] Move VFS overlays from `HeaderSearchOptions` to `FileSystemOptions` (PR #86534)

2024-11-02 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/86534 >From d49ef2de83b37156ab73c0028676d9b0425ef2ed Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Mon, 25 Mar 2024 10:15:33 -0700 Subject: [PATCH] [clang] Move VFS overlays from `HeaderSearchOptions` to `File

[clang] [Clang] enhance error recovery with RecoveryExpr for trailing commas in call arguments (PR #114684)

2024-11-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #100921 --- Full diff: https://github.com/llvm/llvm-project/pull/114684.diff 2 Files Affected: - (modified) clang/lib/Parse/ParseExpr.cpp (+3) - (modified) clang/test/AST/ast-dump-recovery.cpp (

[clang] [clang-format] Don't re-annotate CaseLabelColon as ConditionalExpr (PR #114639)

2024-11-02 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/3422 Here is the relevan

[clang-tools-extra] e102338 - Support call hierarchy for fields and non-local variables (#113900)

2024-11-02 Thread via cfe-commits
Author: timon-ul Date: 2024-11-03T01:38:25-05:00 New Revision: e102338b6e2f9ec1a882bdfb91eb4e364c7b6478 URL: https://github.com/llvm/llvm-project/commit/e102338b6e2f9ec1a882bdfb91eb4e364c7b6478 DIFF: https://github.com/llvm/llvm-project/commit/e102338b6e2f9ec1a882bdfb91eb4e364c7b6478.diff LOG:

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

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

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

2024-11-02 Thread via cfe-commits
github-actions[bot] wrote: @timon-ul 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 build

[clang-tools-extra] Extend call hierarchy for field and non-local variables (PR #113900)

2024-11-02 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. https://github.com/llvm/llvm-project/pull/113900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Merge some delarations which currently have different attributes (PR #79349)

2024-11-02 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/79349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-11-02 Thread Alex Voicu via cfe-commits
@@ -1672,10 +1672,11 @@ CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI) { // Add type for sret argument. if (IRFunctionArgs.hasSRetArg()) { -QualType Ret = FI.getReturnType(); -unsigned AddressSpace = CGM.getTypes().getTargetAddressSpace(Ret); +auto Ad

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vorn.v builti ns `unsigned char` vectors (PR #114514)

2024-11-02 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 updated https://github.com/llvm/llvm-project/pull/114514 >From c1b7b79e7027ad7fed410c1783113228173843f1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Nov 2024 00:17:44 +0800 Subject: [PATCH 1/3] [LoongArch][Clang] Make the parameters and return value of {x,}vs

[clang] [clang][NFC] Spell out DynTypedNode instead of auto (PR #114427)

2024-11-02 Thread Balazs Benics via cfe-commits
steakhal wrote: Have you other similar cases in the Static Analyzer code base? https://github.com/llvm/llvm-project/pull/114427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vxor.v builti ns `unsigned char` vectors (PR #114513)

2024-11-02 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 updated https://github.com/llvm/llvm-project/pull/114513 >From c1b7b79e7027ad7fed410c1783113228173843f1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Nov 2024 00:17:44 +0800 Subject: [PATCH 1/2] [LoongArch][Clang] Make the parameters and return value of {x,}vs

[clang] [LoongArch][Clang] Make the parameters and return value of {x,}vshuf.b builtins `signed char` vectors (PR #114512)

2024-11-02 Thread Xi Ruoyao via cfe-commits
https://github.com/xry111 updated https://github.com/llvm/llvm-project/pull/114512 >From c1b7b79e7027ad7fed410c1783113228173843f1 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 1 Nov 2024 00:17:44 +0800 Subject: [PATCH] [LoongArch][Clang] Make the parameters and return value of {x,}vshuf.

[clang] [LoongArch][Clang] Make the parameter and return value of {x,}vmsknz.b builtins `signed char` vector (PR #114511)

2024-11-02 Thread Lu Weining via cfe-commits
https://github.com/SixWeining closed https://github.com/llvm/llvm-project/pull/114511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add quick fix to automatically adds NOLINTNEXTLINE comment (PR #114660)

2024-11-02 Thread Richard Li via cfe-commits
https://github.com/chomosuke converted_to_draft https://github.com/llvm/llvm-project/pull/114660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] SemaFunctionEffects: When verifying a function, ignore any trailing 'requires' clause. (PR #114266)

2024-11-02 Thread Doug Wyatt via cfe-commits
https://github.com/dougsonos updated https://github.com/llvm/llvm-project/pull/114266 >From 6a8a3f21eb23b8b7d63bd8b0fb6e2e85ff1951df Mon Sep 17 00:00:00 2001 From: Doug Wyatt Date: Wed, 30 Oct 2024 09:53:58 -0700 Subject: [PATCH 1/2] [clang] SemaFunctionEffects: When verifying a function, igno

[clang] [clang][bytecode][NFC] Switch BitcastBuffer to SmallVector (PR #114677)

2024-11-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/114677 This is a little easier to work with since we are guaranteed that the item type of the vector is byte sized and not something else. >From eabd705ce8a970250363d05622c8547580c496d4 Mon Sep 17 00:00:00 2001 From:

[clang] [clang] SemaFunctionEffects: When verifying a function, ignore any trailing 'requires' clause. (PR #114266)

2024-11-02 Thread Doug Wyatt via cfe-commits
dougsonos wrote: I was able to (manually) extract a reduction from libc++ and write a test that exposed the issue / verified that it's fixed. It's also here: https://godbolt.org/z/9absooo6G https://github.com/llvm/llvm-project/pull/114266 ___ cfe-com

[clang-tools-extra] [clang-tidy] Improved readability redundant casting with enums (PR #111424)

2024-11-02 Thread Félix-Antoine Constantin via cfe-commits
https://github.com/felix642 updated https://github.com/llvm/llvm-project/pull/111424 From a786f626beb418cf6b8847c6250f0490b60affdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix-Antoine=20Constantin?= Date: Mon, 7 Oct 2024 15:27:36 -0400 Subject: [PATCH 1/3] [clang-tidy] Improved readabil

[clang] [clang][bytecode][NFC] Switch BitcastBuffer to SmallVector (PR #114677)

2024-11-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This is a little easier to work with since we are guaranteed that the item type of the vector is byte sized and not something else. --- Full diff: https://github.com/llvm/llvm-project/pull/114677.diff 1 Fi

[clang-tools-extra] [clang-tidy] Improved readability redundant casting with enums (PR #111424)

2024-11-02 Thread Félix-Antoine Constantin via cfe-commits
felix642 wrote: > sounds better as the commit description. I agree, thank you for the suggestion. >The CI failure is probably because the implicit type for E3 is not unsigned >int on Windows. You are right. I could not find a way to make this test platform independent. I would either have to i

[clang] [clang][bytecode][NFC] Switch BitcastBuffer to SmallVector (PR #114677)

2024-11-02 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/114677 >From 9583cf5edac75e25c47f7ad2cb52a3b3bb95442b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 2 Nov 2024 16:59:41 +0100 Subject: [PATCH] [clang][bytecode][NFC] Switch BitcastBuffer to S

<    1   2