[clang-tools-extra] [clang-tidy]Add new check bugprone-casting-through-void (PR #69465)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,46 @@ +//===--- CastingThroughVoidCheck.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: Apa

[clang-tools-extra] [clang-tidy]Add new check bugprone-casting-through-void (PR #69465)

2023-10-20 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM. About `static_cast(reinterpret_cast(&i));`: - I'm working now on a check for redundant casts, it will detect this one, so no need to do it in this check. You may consider adding support for double and more pointers, but that's not s

[clang-tools-extra] [run-clang-tidy, clang-tidy-diff] Accept directory as value for -export-fixes (PR #69453)

2023-10-20 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/69453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5557d98 - [run-clang-tidy, clang-tidy-diff] Accept directory as value for -export-fixes (#69453)

2023-10-20 Thread via cfe-commits
Author: Amadeus Gebauer Date: 2023-10-20T09:22:49+02:00 New Revision: 5557d983412c2e8cdffaf855463098f7771f6499 URL: https://github.com/llvm/llvm-project/commit/5557d983412c2e8cdffaf855463098f7771f6499 DIFF: https://github.com/llvm/llvm-project/commit/5557d983412c2e8cdffaf855463098f7771f6499.dif

[clang-tools-extra] [clang-tidy] modernize-avoid-bind only return for non-void function (PR #69207)

2023-10-20 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: > Any particular reason for the `+-`? Maybe it can be resolved? I'm just not too familiar with this check. But current change looks fine, and could be merged. https://github.com/llvm/llvm-project/pull/69207 ___ cfe-commits mailing list

[clang-tools-extra] Fix #68492: point to the correct const location (PR #69103)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -297,6 +297,10 @@ Changes in existing checks ` check to ignore false-positive for ``if constexpr`` in lambda expression. +- Improved :doc:`readability-const-params-in-decls + ` place the hint check under PiotrZSL wrote: `Improved xyz check to place .

[clang-tools-extra] Fix #68492: point to the correct const location (PR #69103)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -297,6 +297,10 @@ Changes in existing checks ` check to ignore false-positive for ``if constexpr`` in lambda expression. +- Improved :doc:`readability-const-params-in-decls + ` place the hint check under PiotrZSL wrote: Or it can be just Improved xyz

[clang-tools-extra] Fix #68492: point to the correct const location (PR #69103)

2023-10-20 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/69103 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -285,6 +285,10 @@ Changes in existing checks ` check to fix function pointer and forward declared ``typedef`` correctly. +- Improved :doc:`modernize-use-using PiotrZSL wrote: merge with previous entry for this check. https://github.com/llvm/llvm-proje

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -325,6 +329,7 @@ Changes in existing checks identify calls to static member functions with out-of-class inline definitions. + PiotrZSL wrote: remove added empty line https://github.com/llvm/llvm-project/pull/69102 _

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -28,6 +28,15 @@ After: using R_t = struct { int a; }; using R_p = R_t*; +The checker ignores `typedef` within `extern "C" { ... }` blocks. + +.. code-block:: c++ + + extern "C" { + PiotrZSL wrote: remove empty line https://github.com/llvm/llvm-projec

[clang-tools-extra] Fix #35272: Don't replace typedefs in extern c scope (PR #69102)

2023-10-20 Thread Piotr Zegar via cfe-commits
@@ -28,6 +28,15 @@ After: using R_t = struct { int a; }; using R_p = R_t*; +The checker ignores `typedef` within `extern "C" { ... }` blocks. PiotrZSL wrote: Maybe this should be put into configuration option ? To give an option to preserve current behav

[clang-tools-extra] [Docs][LTO] Updated HowToSubmitABug.rst for LTO crashes (PR #68389)

2023-10-20 Thread Shivam Gupta via cfe-commits
https://github.com/xgupta edited https://github.com/llvm/llvm-project/pull/68389 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-20 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [clang] Add clang::preferred_type attribute for bitfields (PR #69104)

2023-10-20 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > While I think that warning is accurate, I somewhat question the value of the > 'bool' as working on this type I'm not sure what you mean by "working" here, but I'd like to highlight that we have hundreds of single-bit bit-fields across Clang that would benefit from `[[clang::

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/69688 It is misleading when diagnosing 'ExplicitlySpecialMethod' is missing exception specification 'noexcept' for ```c++ struct ExplicitlySpecialMethod { ExplicitlySpecialMethod() = default; }; ExplicitlySpecial

[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-10-20 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Ping? https://github.com/llvm/llvm-project/pull/68993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Stack probing for function prologues (PR #66524)

2023-10-20 Thread Momchil Velikov via cfe-commits
momchil-velikov wrote: Ping? https://github.com/llvm/llvm-project/pull/66524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Congcong Cai (HerrCai0907) Changes It is misleading when diagnosing 'ExplicitlySpecialMethod' is missing exception specification 'noexcept' for ```c++ struct ExplicitlySpecialMethod { ExplicitlySpecialMethod() = default; }; ExplicitlySpe

[clang] c9b17af - [Driver][DragonFly][NFC] Some cleaning up

2023-10-20 Thread Brad Smith via cfe-commits
Author: Brad Smith Date: 2023-10-20T04:01:58-04:00 New Revision: c9b17af22835ace1b4cf35b958a197d8e2de0fd0 URL: https://github.com/llvm/llvm-project/commit/c9b17af22835ace1b4cf35b958a197d8e2de0fd0 DIFF: https://github.com/llvm/llvm-project/commit/c9b17af22835ace1b4cf35b958a197d8e2de0fd0.diff LO

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69688 >From 2629b346123f9838a4fc3d8b6fb6a98508773965 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Fri, 20 Oct 2023 15:45:42 +0800 Subject: [PATCH] [clang]improve diagnosing redefined defaulted constructor wit

[clang] [Driver] Corrections for linker flags passed with relocatable linking on OpenBSD (PR #67254)

2023-10-20 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67254 >From d16c447291c2c1127a6abc9b83942b47f2d9e145 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 00:20:53 -0400 Subject: [PATCH] [Driver] Corrections for linker flags passed with relocatable linking

[clang] [Driver] Corrections for linker flags passed with relocatable linking on OpenBSD (PR #67254)

2023-10-20 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/67254 ___ 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 bugprone-casting-through-void (PR #69465)

2023-10-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69465 >From 627f68e57b2526fb72285ef4831fc3c02a6ee6d0 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 18 Oct 2023 08:47:02 +0800 Subject: [PATCH 1/8] [clang-tidy]Add new check bugprone-casting-through-void F

[clang] [clang-tidy]Add new check bugprone-casting-through-void (PR #69465)

2023-10-20 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/69465 >From 627f68e57b2526fb72285ef4831fc3c02a6ee6d0 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Wed, 18 Oct 2023 08:47:02 +0800 Subject: [PATCH 1/8] [clang-tidy]Add new check bugprone-casting-through-void F

[clang-tools-extra] [run-clang-tidy, clang-tidy-diff] Accept directory as value for -export-fixes (PR #69453)

2023-10-20 Thread via cfe-commits
dyung wrote: Hi @amgebauer, not sure if you got the notification, but your change seems to be causing a test failure on two build bots, any idea why? https://lab.llvm.org/buildbot/#/builders/139/builds/51852 https://lab.llvm.org/buildbot/#/builders/247/builds/10286 https://github.com/llvm/llvm-

[clang] b9dae2f - [Clang][SVE2.1] Add builtins for svrevd

2023-10-20 Thread Caroline Concatto via cfe-commits
Author: Caroline Concatto Date: 2023-10-20T08:35:13Z New Revision: b9dae2fa22d3dd4d5c454c2b167428b027d7bc12 URL: https://github.com/llvm/llvm-project/commit/b9dae2fa22d3dd4d5c454c2b167428b027d7bc12 DIFF: https://github.com/llvm/llvm-project/commit/b9dae2fa22d3dd4d5c454c2b167428b027d7bc12.diff

[PATCH] D151709: [Clang][SVE2.1] Add builtins for svrevd

2023-10-20 Thread Caroline via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGb9dae2fa22d3: [Clang][SVE2.1] Add builtins for svrevd (authored by CarolineConcatto). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTI

[clang] [X86] Add regcall4 attribute to make a specific function respect regc… (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y updated https://github.com/llvm/llvm-project/pull/69628 >From 786b954e621ac53902ceff4640d1372ef1652699 Mon Sep 17 00:00:00 2001 From: Bing1 Yu Date: Fri, 20 Oct 2023 02:33:35 +0800 Subject: [PATCH 1/4] [X86] Add regcall4 attribute to make a specific function

[clang] [X86] Add regcall4 attribute to make a specific function respect regc… (PR #69628)

2023-10-20 Thread via cfe-commits
@@ -9347,6 +9352,7 @@ ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D, const ParsedAttr &AL, case ParsedAttr::AT_ThisCall: case ParsedAttr::AT_Pascal: case ParsedAttr::AT_RegCall: + //case ParsedAttr::AT_RegCall4: yubingex007-a11y wrote: @mikerice1

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -37,6 +37,25 @@ These changes are ones which we think may surprise users when upgrading to Clang |release| because of the opportunity they pose for disruption to existing code bases. +- Fix a bug in reversed argument for templated operators. + This breaks code in C++20 wh

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/Venyla created https://github.com/llvm/llvm-project/pull/69693 [Screencast from 2023-10-16 15-34-29.webm](https://github.com/sa-concept-refactoring/llvm-project/assets/7629727/bd2c8790-c40f-4834-8523-6d16fca0d498) https://github.com/llvm/llvm-project/assets/6904387/95fa5ab1-

[clang] [X86] Add regcall4 attribute to make a specific function respect regc… (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y updated https://github.com/llvm/llvm-project/pull/69628 >From 786b954e621ac53902ceff4640d1372ef1652699 Mon Sep 17 00:00:00 2001 From: Bing1 Yu Date: Fri, 20 Oct 2023 02:33:35 +0800 Subject: [PATCH 1/5] [X86] Add regcall4 attribute to make a specific function

[clang] [X86] Add regcall4 attribute to make a specific function respect regcall ABIv4 (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y edited https://github.com/llvm/llvm-project/pull/69628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add regcall4 attribute to make a specific function respect regcall ABIv4 (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y edited https://github.com/llvm/llvm-project/pull/69628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add regcall4 attribute to make a specific function respect regcall ABIv4 (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y edited https://github.com/llvm/llvm-project/pull/69628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add regcall4 attribute to make a specific function respect regcall ABIv4 (PR #69628)

2023-10-20 Thread via cfe-commits
https://github.com/yubingex007-a11y edited https://github.com/llvm/llvm-project/pull/69628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -10085,10 +10085,14 @@ getImplicitObjectParamType(ASTContext &Context, const FunctionDecl *F) { return M->getFunctionObjectParameterReferenceType(); } -static bool haveSameParameterTypes(ASTContext &Context, const FunctionDecl *F1, +static bool allowAmbiguityWithSelf(AST

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -37,6 +37,25 @@ These changes are ones which we think may surprise users when upgrading to Clang |release| because of the opportunity they pose for disruption to existing code bases. +- Fix a bug in reversed argument for templated operators. + This breaks code in C++20 wh

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -7688,7 +7688,7 @@ bool Sema::CheckNonDependentConversions( QualType ParamType = ParamTypes[I + Offset]; if (!ParamType->isDependentType()) { unsigned ConvIdx = PO == OverloadCandidateParamOrder::Reversed - ? 0 +

[clang] [X86] Add regcall4 attribute to make a specific function respect regcall ABIv4 (PR #69628)

2023-10-20 Thread via cfe-commits
yubingex007-a11y wrote: there is question here should we really add a new calling conv CC_X86RegCall4 in CFE. currently i let regcall4 attr reuse CC_X86RegCall instead of creating CC_X86RegCall4 . @mikerice1969 https://github.com/llvm/llvm-project/pull/69628

[clang-tools-extra] [run-clang-tidy, clang-tidy-diff] Accept directory as value for -export-fixes (PR #69453)

2023-10-20 Thread Amadeus Gebauer via cfe-commits
amgebauer wrote: I have an idea about the reason. I will push a fix in a few moments. Thank you for the hint https://github.com/llvm/llvm-project/pull/69453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/Venyla updated https://github.com/llvm/llvm-project/pull/69693 >From 9e2a80fd1a7ae61ce71ba0caabd2c6a88c662889 Mon Sep 17 00:00:00 2001 From: Vina Zahnd Date: Fri, 20 Oct 2023 10:01:54 +0200 Subject: [PATCH] [clangd] Add tweak to inline concept requirements Co-authored-by: Je

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-10-20 Thread Yingwei Zheng via cfe-commits
@@ -6411,6 +6411,41 @@ static Value *simplifyBinaryIntrinsic(Function *F, Value *Op0, Value *Op1, return Constant::getNullValue(ReturnType); break; } + case Intrinsic::ptrmask: { +if (isa(Op0) || isa(Op1)) + return PoisonValue::get(Op0->getType()); + +

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/Venyla updated https://github.com/llvm/llvm-project/pull/69693 >From 2b1f56a758d397649c94717f4a030c04a532bde7 Mon Sep 17 00:00:00 2001 From: Vina Zahnd Date: Fri, 20 Oct 2023 10:01:54 +0200 Subject: [PATCH] [clangd] Add tweak to inline concept requirements Co-authored-by: Je

[clang] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-20 Thread Botond István Horváth via cfe-commits
https://github.com/HoBoIs updated https://github.com/llvm/llvm-project/pull/69480 From f75c2e75042d6d8f5a093967a56f3f59d7e541f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20Istv=C3=A1n=20Horv=C3=A1th?= <56926027+hob...@users.noreply.github.com> Date: Wed, 18 Oct 2023 18:05:01 +0200 Subject

[clang-tools-extra] [clang] Correct end for the `CastOperation.OpRange` (PR #69480)

2023-10-20 Thread Botond István Horváth via cfe-commits
https://github.com/HoBoIs updated https://github.com/llvm/llvm-project/pull/69480 From f75c2e75042d6d8f5a093967a56f3f59d7e541f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20Istv=C3=A1n=20Horv=C3=A1th?= <56926027+hob...@users.noreply.github.com> Date: Wed, 18 Oct 2023 18:05:01 +0200 Subject

[clang] [clang]improve diagnosing redefined defaulted constructor with different exception specs (PR #69688)

2023-10-20 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -fcxx-exceptions -std=c++11 %s tbaederr wrote: There's a typo in the name of this file. https://github.com/llvm/llvm-project/pull/69688 ___ cfe-commits mailing

[clang] [analyzer] Add std::variant checker (PR #66481)

2023-10-20 Thread Gábor Spaits via cfe-commits
@@ -0,0 +1,104 @@ +//===- TaggedUnionModeling.h -*- C++ -*-==// +// +// 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] Use the correct namespace for looking up matching operator!= (PR #68922)

2023-10-20 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/68922 >From 0c71b6bdd557ff4b9ad9a4ec4f0919e3460596b0 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 12 Oct 2023 21:35:52 +0200 Subject: [PATCH 1/5] Find opertor!= in the correct namespace --- clang/lib/Sema/Se

[clang] [analyzer] Add std::variant checker (PR #66481)

2023-10-20 Thread Gábor Spaits via cfe-commits
@@ -0,0 +1,104 @@ +//===- TaggedUnionModeling.h -*- C++ -*-==// +// +// 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-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Amadeus Gebauer via cfe-commits
https://github.com/amgebauer created https://github.com/llvm/llvm-project/pull/69700 If PyYAML is not installed, the `-export-fixes` can be used to specify a directory (not a file). Follows #69453 >From 947b71ca6498f2783f2b701ad8d03d63779e Mon Sep 17 00:00:00 2001 From: Amadeus Gebauer D

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Amadeus Gebauer (amgebauer) Changes If PyYAML is not installed, the `-export-fixes` can be used to specify a directory (not a file). Follows #69453 --- Full diff: https://github.com/llvm/llvm-project/pull/69700.diff 2 Files Affect

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Utkarsh Saxena via cfe-commits
@@ -7688,7 +7688,7 @@ bool Sema::CheckNonDependentConversions( QualType ParamType = ParamTypes[I + Offset]; if (!ParamType->isDependentType()) { unsigned ConvIdx = PO == OverloadCandidateParamOrder::Reversed - ? 0 +

Re: [PATCH] D138505: [clangd] Don't run slow clang-tidy checks by default

2023-10-20 Thread Sam McCall via cfe-commits
Very late, & by email since phab is down. Going to land this based on "LG" comment & offline discussion, happy to do followups if needed. On Mon, Nov 28, 2022 at 10:08 PM Kadir Cetinkaya via Phabricator < revi...@reviews.llvm.org> wrote: > kadircet added a comment. > > thanks LG, i'd like to hea

[clang-tools-extra] b99f7e6 - [clangd] Don't run slow clang-tidy checks by default

2023-10-20 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2023-10-20T11:47:29+02:00 New Revision: b99f7e6954691efae2d60a1af21f8c1b71a0f786 URL: https://github.com/llvm/llvm-project/commit/b99f7e6954691efae2d60a1af21f8c1b71a0f786 DIFF: https://github.com/llvm/llvm-project/commit/b99f7e6954691efae2d60a1af21f8c1b71a0f786.diff LO

[PATCH] D138505: [clangd] Don't run slow clang-tidy checks by default

2023-10-20 Thread Sam McCall via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGb99f7e695469: [clangd] Don't run slow clang-tidy checks by default

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-20 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-10-20 Thread Sam Tebbs via cfe-commits
@@ -85,17 +90,32 @@ static bool isPrologueCFIInstruction(const MachineInstr &MI) { MI.getFlag(MachineInstr::FrameSetup); } -static bool containsPrologue(const MachineBasicBlock &MBB) { - return llvm::any_of(MBB.instrs(), isPrologueCFIInstruction); -} - static bool

[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-10-20 Thread Sam Tebbs via cfe-commits
@@ -1,25 +1,33 @@ // Check the correct function attributes are generated -// RUN: %clang_cc1 -triple x86_64-linux -O0 -S -emit-llvm -o- %s -fstack-clash-protection | FileCheck %s -// RUN: %clang_cc1 -triple s390x-linux-gnu -O0 -S -emit-llvm -o- %s -fstack-clash-protection | Fil

[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-10-20 Thread Momchil Velikov via cfe-commits
@@ -85,17 +90,32 @@ static bool isPrologueCFIInstruction(const MachineInstr &MI) { MI.getFlag(MachineInstr::FrameSetup); } -static bool containsPrologue(const MachineBasicBlock &MBB) { - return llvm::any_of(MBB.instrs(), isPrologueCFIInstruction); -} - static bool

[clang] [clang][AArch64] Pass down stack clash protection options to LLVM/Backend (PR #68993)

2023-10-20 Thread Momchil Velikov via cfe-commits
@@ -1,25 +1,33 @@ // Check the correct function attributes are generated -// RUN: %clang_cc1 -triple x86_64-linux -O0 -S -emit-llvm -o- %s -fstack-clash-protection | FileCheck %s -// RUN: %clang_cc1 -triple s390x-linux-gnu -O0 -S -emit-llvm -o- %s -fstack-clash-protection | Fil

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-20 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[clang-tools-extra] [clangd] Allow "move function body out-of-line" in non-header files (PR #69704)

2023-10-20 Thread via cfe-commits
https://github.com/ckandeler created https://github.com/llvm/llvm-project/pull/69704 Moving the body of member functions out-of-line makes sense for classes defined in implementation files too. >From 0b7df6c0a713c1c40f6c92d958fa6a96796ed80f Mon Sep 17 00:00:00 2001 From: Christian Kandeler Da

[clang-tools-extra] [clangd] Allow "move function body out-of-line" in non-header files (PR #69704)

2023-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: None (ckandeler) Changes Moving the body of member functions out-of-line makes sense for classes defined in implementation files too. --- Full diff: https://github.com/llvm/llvm-project/pull/69704.diff 2 Files Affected: - (modified) c

[clang] 7c15dd6 - [clang-format] Add space in placement new expression

2023-10-20 Thread Owen Pan via cfe-commits
Author: Omar Ahmed Date: 2023-10-20T03:16:28-07:00 New Revision: 7c15dd60ec4549f53f1a51c5302c61f8a025a4a5 URL: https://github.com/llvm/llvm-project/commit/7c15dd60ec4549f53f1a51c5302c61f8a025a4a5 DIFF: https://github.com/llvm/llvm-project/commit/7c15dd60ec4549f53f1a51c5302c61f8a025a4a5.diff LO

[PATCH] D127270: [clang-format] Add space in placement new expression

2023-10-20 Thread Owen Pan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG7c15dd60ec45: [clang-format] Add space in placement new expression (authored by omarahmed, committed by owenpan). Changed prior to commit: https://reviews.llvm.org/D127270?vs=445172&id=557807#toc Repos

[PATCH] D123235: [OpenMP] atomic compare fail : Parser & AST support

2023-10-20 Thread Sunil K via Phabricator via cfe-commits
koops updated this revision to Diff 557808. koops added a comment. 1. In class OMPFailClause, the was a duplication in the storage of parameter to the fail clause because the parameter was stored as FailParameterKind and MemoryOrderClause (FailMemoryOrderClause). There was a possibility of these

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-20 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/69681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-20 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams commented: This SGTM. I don't think the unnamed variable serves any useful purpose but may not being imaginative enough. I can't see any discussion on the topic when the code was added in [D119178](https://reviews.llvm.org/D119178) . CC the author, @shafik (or @adri

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-20 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -2,10 +2,8 @@ OCHyams wrote: Please can you add `--implicit-check-not="call void @llvm.dbg.declare"` to the `FileCheck` command? https://github.com/llvm/llvm-project/pull/69681 ___ cfe-commits mailing list cfe-co

[clang] [Clang][DebugInfo] Clang generates an extra spurious unnamed 'dbg.declare' (PR #69681)

2023-10-20 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s + +struct Tuple { + int Fld_1; + int Fld_2; +}; +__attribute__((optnone)) Tuple get() { return {10, 20}; } + +// CHECK-LABEL: define dso_local noundef i32 @main +// CHECK: %r

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/Venyla updated https://github.com/llvm/llvm-project/pull/69693 >From 1a49159a4d8186223c0cf87e9225aafe0fd6a2dd Mon Sep 17 00:00:00 2001 From: Vina Zahnd Date: Fri, 20 Oct 2023 10:01:54 +0200 Subject: [PATCH] [clangd] Add tweak to inline concept requirements Co-authored-by: Je

[clang] [clang-format] Annotate do while while (PR #69707)

2023-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks created https://github.com/llvm/llvm-project/pull/69707 So we can differentiate on the while keyword between a do-while-loop and a normal while-loop. From be24095877e6ddd25e0884ad8aaf3eca4846f38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Amadeus Gebauer via cfe-commits
https://github.com/amgebauer edited https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Annotate do while while (PR #69707)

2023-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Björn Schäpers (HazardyKnusperkeks) Changes So we can differentiate on the while keyword between a do-while-loop and a normal while-loop. --- Full diff: https://github.com/llvm/llvm-project/pull/69707.diff 3 Files Affected: - (m

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Amadeus Gebauer via cfe-commits
amgebauer wrote: Is there any way to trigger the failing tests within this PR? https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [analyzer] Add std::variant checker (PR #66481)

2023-10-20 Thread Gábor Spaits via cfe-commits
@@ -0,0 +1,104 @@ +//===- TaggedUnionModeling.h -*- C++ -*-==// +// +// 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-format] Don't align comments over scopes (PR #68743)

2023-10-20 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks updated https://github.com/llvm/llvm-project/pull/68743 From be24095877e6ddd25e0884ad8aaf3eca4846f38d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Fri, 20 Oct 2023 13:00:39 +0200 Subject: [PATCH 1/2] [clang-format] Annotate do

[clang] [clang-format] Annotate do while while (PR #69707)

2023-10-20 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/69707 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Don't align comments over scopes (PR #68743)

2023-10-20 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: Some pathological test cases added and handling do-while (relying on #69707). Only a reply from @mydeveloperday open regarding the change of the existing test with function braces. https://github.com/llvm/llvm-project/pull/68743

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Utkarsh Saxena via cfe-commits
@@ -10085,10 +10085,14 @@ getImplicitObjectParamType(ASTContext &Context, const FunctionDecl *F) { return M->getFunctionObjectParameterReferenceType(); } -static bool haveSameParameterTypes(ASTContext &Context, const FunctionDecl *F1, +static bool allowAmbiguityWithSelf(AST

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/69595 >From 4460b02508d21d98cf05103bece99fc5bd474ab0 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 19 Oct 2023 12:33:45 +0200 Subject: [PATCH 1/5] Reapply "Correctly compute conversion seq for args to fn with

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/69595 >From 4460b02508d21d98cf05103bece99fc5bd474ab0 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 19 Oct 2023 12:33:45 +0200 Subject: [PATCH 1/6] Reapply "Correctly compute conversion seq for args to fn with

[clang] [clang] Fix designated initializers inside templates (PR #69712)

2023-10-20 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/69712 Skip anonymous members when rebuilding DesignatedInitExpr since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes https://github.com/llvm/llv

[clang] [clang] Fix designated initializers inside templates (PR #69712)

2023-10-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes Skip anonymous members when rebuilding DesignatedInitExpr since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes https://github

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: > Is there any way to trigger the failing tests within this PR? No, in worst case we can revert faulty change. https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -7688,7 +7688,7 @@ bool Sema::CheckNonDependentConversions( QualType ParamType = ParamTypes[I + Offset]; if (!ParamType->isDependentType()) { unsigned ConvIdx = PO == OverloadCandidateParamOrder::Reversed - ? 0 +

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Piotr Zegar via cfe-commits
PiotrZSL wrote: Lets push this, if it wont help then we can revert oryginal change. https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 49af650 - [run-clang-tidy] Accept export directory if PyYAML is not installed (#69700)

2023-10-20 Thread via cfe-commits
Author: Amadeus Gebauer Date: 2023-10-20T13:40:38+02:00 New Revision: 49af6502c6dcb4a7f7520178bd14df396f78240c URL: https://github.com/llvm/llvm-project/commit/49af6502c6dcb4a7f7520178bd14df396f78240c DIFF: https://github.com/llvm/llvm-project/commit/49af6502c6dcb4a7f7520178bd14df396f78240c.dif

[clang-tools-extra] [run-clang-tidy] Accept export directory if PyYAML is not installed (PR #69700)

2023-10-20 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL closed https://github.com/llvm/llvm-project/pull/69700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. The change looks good, I believe the comments about potentially redundant checks and naming of the function could be addressed in a follow-up. https://github.com/llvm/llvm-project/pull/69595 ___

[clang] [clang] Handle templated operators with reversed arguments (PR #69595)

2023-10-20 Thread Ilya Biryukov via cfe-commits
@@ -10085,10 +10085,14 @@ getImplicitObjectParamType(ASTContext &Context, const FunctionDecl *F) { return M->getFunctionObjectParameterReferenceType(); } -static bool haveSameParameterTypes(ASTContext &Context, const FunctionDecl *F1, +static bool allowAmbiguityWithSelf(AST

[clang] [clang][Interp] Implement builintin_expect (PR #69713)

2023-10-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/69713 None >From 12cb6e61a8e77a7800fda0ae4dd1148e76844da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 20 Oct 2023 14:16:22 +0200 Subject: [PATCH] [clang][Interp] Implement builintin_expect

[clang] [clang][Interp] Implement builintin_expect (PR #69713)

2023-10-20 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 ba8565fbcb975e2d067ce3ae5a7dbaae4953edd3 12cb6e61a8e77a7800fda0ae4dd1148e76844da8 --

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/Venyla edited https://github.com/llvm/llvm-project/pull/69693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/69693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
5chmidti wrote: Clangd (actually large parts of llvm) don't use trailing return types, you will probably have to change those. This is a bit of a chore, so you could wait for another reviewer to confirm that for you. https://github.com/llvm/llvm-project/pull/

[clang-tools-extra] [clangd] Add tweak to inline concept requirements (PR #69693)

2023-10-20 Thread via cfe-commits
@@ -0,0 +1,262 @@ +//===--- InlineConceptRequirement.cpp *- C++-*-===// +// +// 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

  1   2   3   4   >