[clang] Add concepts for Structured buffers (PR #119643)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. LGTM! Please add [HLSL] to the title. https://github.com/llvm/llvm-project/pull/119643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
@@ -63,13 +153,71 @@ mlir::Type CIRGenTypes::convertType(QualType type) { cir::IntType::get(&getMLIRContext(), astContext.getTypeSize(ty), /*isSigned=*/false); break; + +// Floating-point types +case BuiltinType::Float16: +

[clang] [HLSL] Add concepts for Structured buffers (PR #119643)

2024-12-19 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/119643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread Joseph Huber via cfe-commits
@@ -165,6 +165,9 @@ std::unique_ptr AllocateTarget(const llvm::Triple &Triple, case llvm::Triple::OpenBSD: return std::make_unique>(Triple, Opts); +case llvm::Triple::UEFI: + return std::m

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
@@ -18,6 +21,87 @@ mlir::MLIRContext &CIRGenTypes::getMLIRContext() const { return *builder.getContext(); } +/// Return true if the specified type in a function parameter or result position +/// can be converted to a CIR type at this point. This boils down to being +/// whe

[clang] [Driver][FreeBSD][NFC] Remove some code duplication (PR #120652)

2024-12-19 Thread David CARLIER via cfe-commits
https://github.com/devnexen approved this pull request. makes sense https://github.com/llvm/llvm-project/pull/120652 ___ 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-19 Thread Julian Schmidt via cfe-commits
@@ -319,10 +319,9 @@ 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 - con

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

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -287,72 +292,83 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) { auto BoolXor = binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), hasRHS(ImplicitCastFromBool)); - auto ComparisonInCall = allOf( -

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

2024-12-19 Thread Julian Schmidt via cfe-commits
5chmidti wrote: You have added `-check-suffix` options to each of your `RUN` lines, but none of your `CHECK-MESSAGES` are actually using it. E.g.,: ```C++ // CHECK-MESSAGES-TO-BOOL-FALSE ``` Although, instead of using the suffixes to say `FALSE`, you could sw

[clang] [Driver][FreeBSD][NFC] Remove some code duplication (PR #120652)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/120652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bcd32ef - [Driver][FreeBSD][NFC] Remove some code duplication (#120652)

2024-12-19 Thread via cfe-commits
Author: Brad Smith Date: 2024-12-19T19:22:27-05:00 New Revision: bcd32ef0ba6b33a4aa3a5d0a96526f86634035da URL: https://github.com/llvm/llvm-project/commit/bcd32ef0ba6b33a4aa3a5d0a96526f86634035da DIFF: https://github.com/llvm/llvm-project/commit/bcd32ef0ba6b33a4aa3a5d0a96526f86634035da.diff LO

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-19 Thread Brad Smith via cfe-commits
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::riscv32: case llvm::Triple::riscv64: break; +case llvm::Triple::loongarch32: brad0 wrote: @brooksdavis 32-bit RISC-V support was r

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

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -1,10 +1,93 @@ .. title:: clang-tidy - bugprone-narrowing-conversions -.. meta:: - :http-equiv=refresh: 5;URL=../cppcoreguidelines/narrowing-conversions.html bugprone-narrowing-conversions == -The bugprone-narrowing-conversions check is an a

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

2024-12-19 Thread Julian Schmidt via cfe-commits
5chmidti wrote: Please change the header guard to use `bugprone` as the 'path' instead of `cppcoreguidelines` https://github.com/llvm/llvm-project/pull/120245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

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

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -411,7 +411,7 @@ Check aliases .. csv-table:: :header: "Name", "Redirect", "Offers fixes" - :doc:`bugprone-narrowing-conversions `, :doc:`cppcoreguidelines-narrowing-conversions `, + :doc:`cppcoreguidelines-narrowing-conversions `, :doc:`bugprone-narrowing-convers

[clang] c2aee50 - [ubsan] Runtime and driver support for local-bounds (#120515)

2024-12-19 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-19T16:38:07-08:00 New Revision: c2aee5062087f193cb5756f378c248c7d91b7245 URL: https://github.com/llvm/llvm-project/commit/c2aee5062087f193cb5756f378c248c7d91b7245 DIFF: https://github.com/llvm/llvm-project/commit/c2aee5062087f193cb5756f378c248c7d91b7245.diff L

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/119543 >From 952b30598c7583f3f5508e5fda59d91d64d5d163 Mon Sep 17 00:00:00 2001 From: Vince Bridgers Date: Wed, 11 Dec 2024 12:11:31 +0100 Subject: [PATCH 1/3] [analyzer] Split alpha core Identical Expression tests

[clang] [BoundsSafety][Doc] Add BoundsSafetyAdoptionGuide.rst (PR #120674)

2024-12-19 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna created https://github.com/llvm/llvm-project/pull/120674 This adds an instruction to adopt `-fbounds-safety` using the preview implementation available in the fork of llvm-project. >From 390d37d9706472e46a34366bcaa519d34496b888 Mon Sep 17 00:00:00 2001 From: Yeoul N

[clang] [BoundsSafety][Doc] Add BoundsSafetyAdoptionGuide.rst (PR #120674)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yeoul Na (rapidsna) Changes This adds an instruction to adopt `-fbounds-safety` using the preview implementation available in the fork of llvm-project. --- Full diff: https://github.com/llvm/llvm-project/pull/120674.diff 3 Files Affecte

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/120547 >From 2927ef2ccd286e1efeb12ef12eb5f0fd2dcf2454 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 19 Dec 2024 15:23:02 +0800 Subject: [PATCH 1/5] [clang-tidy] support parameters file in command line Fix

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/120673 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -488,8 +489,11 @@ Removed Compiler Flags derivatives) is now removed, since it's no longer possible to suppress the diagnostic (see above). Users can expect an `unknown warning` diagnostic if it's still in use. -- The experimental flag '-ubsan-unique-traps' has been re

[clang] [llvm] Remove -bounds-checking-unique-traps (replace with -fno-sanitize-merge=local-bounds) (PR #120682)

2024-12-19 Thread Vitaly Buka via cfe-commits
@@ -445,9 +445,10 @@ New Compiler Flags - The ``-Warray-compare-cxx26`` warning has been added to warn about array comparison starting from C++26, this warning is enabled as an error by default. -- '-fsanitize-merge' (default) and '-fno-sanitize-merge' have been added for -

[clang] 93743ee - Revert "[Clang] Re-write codegen for atomic_test_and_set and atomic_clear (#120449)"

2024-12-19 Thread Mikhail Goncharov via cfe-commits
Author: Mikhail Goncharov Date: 2024-12-20T08:14:26+01:00 New Revision: 93743ee566694d2fcafa3243c03330e86bf9c806 URL: https://github.com/llvm/llvm-project/commit/93743ee566694d2fcafa3243c03330e86bf9c806 DIFF: https://github.com/llvm/llvm-project/commit/93743ee566694d2fcafa3243c03330e86bf9c806.d

[clang] [clang][Sema] Fixes for %b printf extension handling (PR #120689)

2024-12-19 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/120689 The %b printf extension in the kernel is not fixed to a int type. On sparc64 there are various %llb formats. Adjust the code to handle the length specifiers and type check like it is used by the regular case. >Fro

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Carlos Galvez via cfe-commits
@@ -553,6 +555,20 @@ static llvm::IntrusiveRefCntPtr createBaseFS() { int clangTidyMain(int argc, const char **argv) { llvm::InitLLVM X(argc, argv); + SmallVector Args{argv, argv + argc}; + + llvm::BumpPtrAllocator Alloc; carlosgalvezp wrote: Can we add

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp requested changes to this pull request. LGTM but I had a couple of comments https://github.com/llvm/llvm-project/pull/120547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang] Add concepts for Structured buffers (PR #119643)

2024-12-19 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -ast-dump-filter=__is_structured_resource_element_compatible %s | FileCheck %s + +// CHECK: ConceptDecl 0x{{[0-9a-f]+}} <> __is_structured_resource_element_compatible +// CHECK: |-Temp

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Carlos Galvez via cfe-commits
@@ -115,6 +115,8 @@ Improvements to clang-tidy - Improved :program:`run-clang-tidy.py` script. Fixed minor shutdown noise happening on certain platforms when interrupting the script. +- Improved :program:`clang-tidy` by accepting parameters file in command line.

[clang] Add concepts for Structured buffers (PR #119643)

2024-12-19 Thread Helena Kotas via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -x hlsl -ast-dump -ast-dump-filter=__is_structured_resource_element_compatible %s | FileCheck %s + +// CHECK: ConceptDecl 0x{{[0-9a-f]+}} <> __is_structured_resource_element_compatible +// CHECK: |-Temp

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy created https://github.com/llvm/llvm-project/pull/120632 This PR introduces some fixes where the data layout wasn't propagated correctly. To test this, feed clang any C file (I used an empty main for testing) and pass `-target aarch64-uefi` or `-target x86_64

[clang-tools-extra] e3b571e - [clang-tidy][NFC] Sync ContainerSizeEmptyCheck with container-size-empty doc (#118459)

2024-12-19 Thread via cfe-commits
Author: Niels Dekker Date: 2024-12-19T21:16:40+01:00 New Revision: e3b571e632855386908c5cea310f5056d31d6df8 URL: https://github.com/llvm/llvm-project/commit/e3b571e632855386908c5cea310f5056d31d6df8 DIFF: https://github.com/llvm/llvm-project/commit/e3b571e632855386908c5cea310f5056d31d6df8.diff

[clang-tools-extra] [clang-tidy] Sync ContainerSizeEmptyCheck with container-size-empty doc (PR #118459)

2024-12-19 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/118459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tristan Ross (RossComputerGuy) Changes This PR introduces some fixes where the data layout wasn't propagated correctly. To test this, feed clang any C file (I used an empty main for testing) and pass `-target aarch64-uefi` or `-target x86

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Tristan Ross (RossComputerGuy) Changes This PR introduces some fixes where the data layout wasn't propagated correctly. To test this, feed clang any C file (I used an empty main for testing) and pass `-target aarch64-uefi` or `-

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 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 f0dcf3240dffe3767c7f3a2e2da5b92ae9fd1bef 8f5ef58d51aac7b91faf9e9b6e56eda137bad9ce --e

[clang] 4bbdb01 - [OpenACC] Implement 'init' and 'shutdown' constructs

2024-12-19 Thread via cfe-commits
Author: erichkeane Date: 2024-12-19T12:21:50-08:00 New Revision: 4bbdb018a6cb564783cfb9c65ca82b81c6006bb6 URL: https://github.com/llvm/llvm-project/commit/4bbdb018a6cb564783cfb9c65ca82b81c6006bb6 DIFF: https://github.com/llvm/llvm-project/commit/4bbdb018a6cb564783cfb9c65ca82b81c6006bb6.diff LO

[clang] bdf2555 - [OpenACC] Implement 'device_num' clause sema for 'init'/'shutdown'

2024-12-19 Thread via cfe-commits
Author: erichkeane Date: 2024-12-19T12:21:51-08:00 New Revision: bdf255530821201c9febf9fdb42b91082656dc94 URL: https://github.com/llvm/llvm-project/commit/bdf255530821201c9febf9fdb42b91082656dc94 DIFF: https://github.com/llvm/llvm-project/commit/bdf255530821201c9febf9fdb42b91082656dc94.diff LO

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/120632 >From 2ee88359c3be20f3b6697bf75466fa44e7b10ab5 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 19 Dec 2024 10:54:58 -0800 Subject: [PATCH 1/2] [clang] fix uefi data layout on x86 & aarch64 --- c

[clang] [libclang] Add API to query more information about base classes. (PR #120300)

2024-12-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/120300 >From 448537876f4377686847120a923dd9d443f7d556 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 10 Dec 2024 15:23:55 -0800 Subject: [PATCH] [cindex] Add API to query more information about base clas

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/15666 Here is the r

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-19 Thread Tristan Ross via cfe-commits
@@ -790,7 +790,9 @@ template class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo { protected: void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, -MacroBuilder &Builder) const override {} +MacroBuilder

[clang] [libclang/python] Add python binding for clang_Cursor_isAnonymousRecordDecl (PR #120483)

2024-12-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/120483 >From ba71a3ddba2ab2f816c6285614aa04ae2614e672 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 18 Dec 2024 13:55:40 -0800 Subject: [PATCH] [cindex] Add python binding for clang_Cursor_isAnonymousRe

[clang] [libclang/python] Add python bindings for PrintingPolicy (PR #120494)

2024-12-19 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/120494 >From 13a9c0b88afae7a5f48a66e86357f7284fdace95 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 17 Dec 2024 15:25:00 -0800 Subject: [PATCH] [libclang/python] Add python bindings for PrintingPolicy T

[clang] [WebKit checkers] Recognize adoptRef as a safe function (PR #119846)

2024-12-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/18106 Here is

[clang] 6a01ac7 - [HLSL] Add concepts for Structured buffers (#119643)

2024-12-19 Thread via cfe-commits
Author: Joshua Batista Date: 2024-12-19T15:04:39-08:00 New Revision: 6a01ac7d06df875206f746fc982f58c161249285 URL: https://github.com/llvm/llvm-project/commit/6a01ac7d06df875206f746fc982f58c161249285 DIFF: https://github.com/llvm/llvm-project/commit/6a01ac7d06df875206f746fc982f58c161249285.diff

[clang] [HLSL] Add concepts for Structured buffers (PR #119643)

2024-12-19 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 closed https://github.com/llvm/llvm-project/pull/119643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: No release note is fine for this patch, as this fixes a problem that is invisible when using clang-tidy, but visible with clangd. The general case for clangd is fixed in #118569. Otherwise, I don't think this would be a release note for clang-tidy, but fo

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

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -173,21 +174,21 @@ static void removeFunctionArgs(DiagnosticBuilder &Diag, const CallExpr &Call, for (unsigned Index : Sorted) { const Expr *Arg = Call.getArg(Index); if (Commas[Index]) { - if (Index >= Commas.size()) { -Diag << FixItHint::CreateRemov

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

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/118568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -28,6 +28,7 @@ #include "llvm/ADT/Twine.h" #include "llvm/Support/raw_ostream.h" #include +#include 5chmidti wrote: Please remove this include https://github.com/llvm/llvm-project/pull/118568 ___ cfe-commits ma

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

2024-12-19 Thread via cfe-commits
EugeneZelenko wrote: > No release note is fine for this patch, as this fixes a problem that is > invisible when using clang-tidy, but visible with clangd. The general case > for clangd is fixed in #118569. Otherwise, I don't think this would be a > release note for clang-tidy, but for clangd (

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/119755 >From 8cebb59304a1f893d94f2a758bc47a62f27c1b8b Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 12 Dec 2024 11:37:46 -0800 Subject: [PATCH 1/3] [HLSL] Codegen for simple `cbuffer` blocks without embedded a

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread Julian Schmidt via cfe-commits
5chmidti wrote: The file-names should follow the naming convention of the other tests: `checkers/misc/redundant-expression.cpp` (applies to both). @HerrCai0907 @PiotrZSL IMO merging these tests with the existing ones would result in too-large files, so the files would probably be named somet

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Consider static functions (PR #119974)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. https://github.com/llvm/llvm-project/pull/119974 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
vabridgers wrote: I speculatively updated the filenames per @5chmidti comments. Thanks. https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -33,6 +33,13 @@ compilation options on the command line after ``--``: $ clang-tidy test.cpp -- -Imy_project/include -DMY_DEFINES ... +If there are too many options to specify on the command line, you can store them +in a parameter file, and use :program:`clang-tidy` wit

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/120663 Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just tests.

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: As this is not using `llvm::cl`, it is not automatically documented in `--help`. Maybe some sort of comment inside `ClangTidyHelp` would help with the discoverability from the CLI. https://github.com/llvm/llvm-project/pull/120547 _

[clang-tools-extra] [clang-tidy] support parameters file in command line (PR #120547)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/120547 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a71f9e6 - [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (#120528)

2024-12-19 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-19T18:11:28-08:00 New Revision: a71f9e6986b80fa90c453219795a1369b8ea7b6e URL: https://github.com/llvm/llvm-project/commit/a71f9e6986b80fa90c453219795a1369b8ea7b6e DIFF: https://github.com/llvm/llvm-project/commit/a71f9e6986b80fa90c453219795a1369b8ea7b6e.diff

[clang] [webkit.UncountedLambdaCapturesChecker] Detect protectedThis pattern. (PR #120528)

2024-12-19 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/120528 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-12-19 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited 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] [clang-tidy] swap cppcoreguidelines-narrowing-conversions and bugprone-narrowing-conversions (PR #120245)

2024-12-19 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/4] [clang-tidy][NFC] swap cppcoreguidelines-narrowing-conve

[clang] [Clang] Re-write codegen for atomic_test_and_set and atomic_clear (PR #120449)

2024-12-19 Thread James Y Knight via cfe-commits
jyknight wrote: Yes, the code in libpcap is correct, and the new Clang behavior is incorrect. `__atomic_clear` and `__atomic_test_and_set` are intentionally different from the other atomic builtins, in that they are _not_ type-generic, but instead always operate on the single byte at the provi

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa created https://github.com/llvm/llvm-project/pull/120673 When we preprocess the bellow code with clang -E -MD -MF #if __has_include() // DO NOTHING #endif #if 0 && __has_include() #include #endif It will list limits.h in the dependencies. The sa

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: YunQiang Su (wzssyqa) Changes When we preprocess the bellow code with clang -E -MD -MF #if __has_include() // DO NOTHING #endif #if 0 && __has_include() #include #endif It will list limit

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just tes

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/120663 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add Load(int) method on structured buffers (PR #120663)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes Adds `T Load(int)` method on `StructuredBuffer`, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. Uses the existing `addLoadMethods` in HLSLExternalSemalSource so most of this change is just test

[clang] [clang] Informative error for lifetimebound in decl-spec (PR #118567)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
@@ -3703,8 +3703,14 @@ void Parser::ParseDeclarationSpecifiers( // We reject AT_LifetimeBound and AT_AnyX86NoCfCheck, even though they // are type attributes, because we historically haven't allowed these // to be used as type attributes in C++11

[clang] Patch series to reapply #118734 and substantially improve it (PR #120534)

2024-12-19 Thread via cfe-commits
dyung wrote: > @dyung -- Could you try out > https://github.com/chandlerc/llvm-project/tree/shard-loongarch and see if > that works? > > Notably, it includes one additional patch on top of this series: > [chandlerc@2d59328](https://github.com/chandlerc/llvm-project/commit/2d593288dc18c5530777

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
https://github.com/dkolsen-pgi updated https://github.com/llvm/llvm-project/pull/120484 >From b76111ab93253a772156992e70acb5c78511a6bf Mon Sep 17 00:00:00 2001 From: David Olsen Date: Wed, 18 Dec 2024 13:52:58 -0800 Subject: [PATCH 1/3] [CIR] floating-point, pointer, and function types Upstrea

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: Do you plan to use it somewhere? https://github.com/llvm/llvm-project/pull/120662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] floating-point, pointer, and function types (PR #120484)

2024-12-19 Thread David Olsen via cfe-commits
dkolsen-pgi wrote: @keryell : > Are you up-streaming the changes in commit order or are you up-streaming the > changes with the latest version of a feature? Upstreaming is happening in logical chunks, using the latest version of the feature. I am paying no attention to the order of commits in

[clang] [Darwin][Driver][clang] apple-none-macho orders the resource directory after internal-externc-isystem when nostdlibinc is used (PR #120507)

2024-12-19 Thread Ian Anderson via cfe-commits
@@ -0,0 +1,55 @@ +// UNSUPPORTED: system-windows +// Windows is unsupported because we use the Unix path separator `/` in the test. + +// Add default directories before running clang to check default +// search paths. +// RUN: rm -rf %t && mkdir -p %t +// RUN: cp -R %S/Inputs/M

[clang] (reland) [clang] Warn [[clang::lifetimebound]] misusages on types (PR #118501)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
@@ -8612,7 +8612,11 @@ static void HandleLifetimeBoundAttr(TypeProcessingState &State, CurType = State.getAttributedType( createSimpleAttr(State.getSema().Context, Attr), CurType, CurType); +return; } + State.getSema().Diag(Attr.getLoc(), diag::err_

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 updated https://github.com/llvm/llvm-project/pull/120667 >From 7cef5a275b176b8cf8703ae3b372637a1dded326 Mon Sep 17 00:00:00 2001 From: "xumingjie.enna1" Date: Thu, 19 Dec 2024 20:38:09 +0800 Subject: [PATCH 1/2] [tysan] Convert TySan from function+module pass to just m

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread Mingjie Xu via cfe-commits
https://github.com/Enna1 created https://github.com/llvm/llvm-project/pull/120667 As mentioned in https://github.com/llvm/llvm-project/pull/118989, all sanitizers but tsan are converted to just module pass for easier maintenance. This patch removes the TySan function pass, convert TySan from f

[clang] [llvm] [tysan] Convert TySan from function+module pass to just module pass (PR #120667)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Mingjie Xu (Enna1) Changes As mentioned in https://github.com/llvm/llvm-project/pull/118989, all sanitizers but tsan are converted to just module pass for easier maintenance. This patch removes the TySan

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #120149)

2024-12-19 Thread Ian Anderson via cfe-commits
@@ -0,0 +1,26 @@ +// UNSUPPORTED: system-windows +// Windows is unsupported because we use the Unix path separator `/` in the test. + +// Add default directories before running clang to check default +// search paths. +// RUN: rm -rf %t && mkdir -p %t +// RUN: cp -R %S/Inputs/M

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti approved this pull request. Thanks. LGTM from my side, but give it a few days in case the others want to review as well https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2024-12-19 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/119755 >From 8cebb59304a1f893d94f2a758bc47a62f27c1b8b Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 12 Dec 2024 11:37:46 -0800 Subject: [PATCH 1/4] [HLSL] Codegen for simple `cbuffer` blocks without embedded a

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/118074 ___ 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 readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,97 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- 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: Apa

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti commented: You could try to implement the check with `TK_TraverseUnlessSpelledInSource` if you'd like, which would only add two more matchers via `addMatcher`, and the traversal kind function (https://godbolt.org/z/GrfMTxeGa). IMO, this can be done in a follow-up by

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-19 Thread Julian Schmidt via cfe-commits
@@ -0,0 +1,97 @@ +//===--- UseSpanFirstLastCheck.cpp - clang-tidy -*- 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: Apa

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

2024-12-19 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/27] Up

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

2024-12-19 Thread via cfe-commits
@@ -287,72 +292,83 @@ void ImplicitBoolConversionCheck::registerMatchers(MatchFinder *Finder) { auto BoolXor = binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), hasRHS(ImplicitCastFromBool)); - auto ComparisonInCall = allOf( -

[clang] Clang/Preprocessor: Not add headers of __has_include into DepColloctor (PR #120673)

2024-12-19 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa updated https://github.com/llvm/llvm-project/pull/120673 >From ef5e52370d202431c1e6970fc57a7a04b9e83b89 Mon Sep 17 00:00:00 2001 From: YunQiang Su Date: Fri, 20 Dec 2024 02:55:49 + Subject: [PATCH] Clang/Preprocessor: Not add headers of __has_include into DepColl

[clang] [llvm] [AArch64][docs] Add release notes for FUJITSU-MONAKA support (PR #120684)

2024-12-19 Thread Yuta Mukai via cfe-commits
@@ -977,6 +977,10 @@ Arm and AArch64 Support in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding the ``-momit-leaf-frame-pointer`` option. +- Support has been added for the following processors (-mcpu identifiers in parenthesis): ---

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

2024-12-19 Thread via cfe-commits
vabridgers wrote: No problem. Thanks @5chmidti ! https://github.com/llvm/llvm-project/pull/119543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread Victor Mustya via cfe-commits
https://github.com/vmustya created https://github.com/llvm/llvm-project/pull/120662 The Clang tablegen built-in function prototype parser has the `__bf16` type missing. This patch adds the missing type to the parser. >From df1fe8e7e6cb978ff52d71c36cea9af207b11224 Mon Sep 17 00:00:00 2001 From:

[clang] [Clang][TableGen] Add missing __bf16 type to the builtins parser (PR #120662)

2024-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Mustya (vmustya) Changes The Clang tablegen built-in function prototype parser has the `__bf16` type missing. This patch adds the missing type to the parser. --- Full diff: https://github.com/llvm/llvm-project/pull/120662.diff 2 F

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-12-19 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik updated https://github.com/llvm/llvm-project/pull/95474 >From 69b09ea5b0f0a1c5419c488ade29b6fedc6de773 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Thu, 13 Jun 2024 14:20:50 -0700 Subject: [PATCH 01/10] [Clang] Implement P2280R4 Using unknown pointers and refe

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

2024-12-19 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/28] Up

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

2024-12-19 Thread via cfe-commits
@@ -319,10 +319,9 @@ 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 - con

[clang] d3c4637 - [WebKit checkers] Recognize adoptRef as a safe function (#120629)

2024-12-19 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-12-19T18:08:24-08:00 New Revision: d3c4637cbbd5f0a84811abe195098ce714a2cc32 URL: https://github.com/llvm/llvm-project/commit/d3c4637cbbd5f0a84811abe195098ce714a2cc32 DIFF: https://github.com/llvm/llvm-project/commit/d3c4637cbbd5f0a84811abe195098ce714a2cc32.diff

<    1   2   3   4   5   6   >