[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-23 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/134638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] readability-redundant-smartptr-get: disable for smart pointers to arrays (PR #141092)

2025-05-23 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/141092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Move the type trait logic to a separate file. (PR #141245)

2025-05-23 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/141245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add helpers for Template config (PR #138062)

2025-05-23 Thread Nico Weber via cfe-commits
nico wrote: Reading files from unit tests is a bit of an anti-pattern: It requires putting the absolute path to the tests somewhere (you're doing this with a config file here), and it means you easily run tests on a different machine than the one you're building on. Could you restructure this

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-23 Thread Alexey Bataev via cfe-commits
@@ -5753,7 +5753,7 @@ void CodeGenFunction::EmitOMPScanDirective(const OMPScanDirective &S) { CGM.getOpenMPRuntime().emitReduction( *this, ParentDir.getEndLoc(), Privates, LHSs, RHSs, ReductionOps, {/*WithNowait=*/true, /*SimpleReduction=*/true, -

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-23 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. LG with nits https://github.com/llvm/llvm-project/pull/134709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-23 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-23 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev edited https://github.com/llvm/llvm-project/pull/134709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-23 Thread Alexey Bataev via cfe-commits
@@ -3947,7 +3947,7 @@ static void emitScanBasedDirective( CGF.CGM.getOpenMPRuntime().emitReduction( CGF, S.getEndLoc(), Privates, LHSs, RHSs, ReductionOps, {/*WithNowait=*/true, /*SimpleReduction=*/true, - /*IsPrivateVarReduction*/{}, OMPD_un

[clang] [Clang][OpenMP][LoopTransformations] Fix incorrect number of generated loops for Tile and Reverse directives (PR #140532)

2025-05-23 Thread Walter J.T.V via cfe-commits
eZWALT wrote: > > > What I see in the source code that it is used as a boolean flag. Can we > > > transform it to bool? There is no need to keep it integer > > > > > > Please could you cite the exact line? I'm not sure if you are refering to > > the logic inside checkTransformableLoopNest or

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-05-23 Thread via cfe-commits
higher-performance wrote: @efriedma-quic Ah I figured out how to test this - just added a test. https://github.com/llvm/llvm-project/pull/141133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-05-23 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/141133 >From 00e0cf90f1d53ec8b2472bd740066016ee88f584 Mon Sep 17 00:00:00 2001 From: higher-performance Date: Thu, 22 May 2025 16:30:29 -0400 Subject: [PATCH] Include [[clang::require_explicit_initialization

[clang] [llvm] [HLSL][RootSignature] Add parsing of flags to RootDescriptor (PR #140152)

2025-05-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/18255

[clang] [CIR] Allow use different Int types together in Vec Shift Op (PR #141111)

2025-05-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/14 >From 2a56a5d8db006bd466db00989806d548ce042b37 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Thu, 22 May 2025 19:38:08 +0200 Subject: [PATCH 1/3] [CIR] Allow use different Int types together in Vec Shif

[clang] [CIR] Allow use different Int types together in Vec Shift Op (PR #141111)

2025-05-23 Thread Amr Hesham via cfe-commits
@@ -1427,13 +1427,13 @@ OpFoldResult cir::SelectOp::fold(FoldAdaptor adaptor) { //===--===// LogicalResult cir::ShiftOp::verify() { mlir::Operation *op = getOperation(); - mlir::Type resType = getResult().g

[clang] [Clang] Explain why a type trait evaluated to false. (PR #141238)

2025-05-23 Thread Erich Keane via cfe-commits
@@ -1917,3 +1917,190 @@ ExprResult Sema::BuildExpressionTrait(ExpressionTrait ET, SourceLocation KWLoc, return new (Context) ExpressionTraitExpr(KWLoc, ET, Queried, Value, RParen, Context.BoolTy); } + +static std::optional StdNameToTypeTrait(StringRef Name) { + return

[clang] [llvm] [HLSL][RootSignature] Add parsing of flags to RootDescriptor (PR #140152)

2025-05-23 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,llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/11980 Here is the relevant piece of the build

[clang] [clang][SPIR-V] Fix OpenCL addrspace mapping when using non-zero default AS (PR #137187)

2025-05-23 Thread Nick Sarnie via cfe-commits
sarnex wrote: Ah ok thank you! I'm surprised this work effects anything as I was mostly doing it for upstream OMP SPV which doesnt' work yet :) https://github.com/llvm/llvm-project/pull/137187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/141269 In #138062 it was brought up that this was an anti-pattern. We'll need to Migrate all of the mustache unittests to lit tests, and disable them until tool support lands. >From a675e0827d8bee1cfff9e095bc7eb394f520

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi ready_for_review https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Clean up SemaChecking.cpp (PR #141041)

2025-05-23 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/141041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)

2025-05-23 Thread Qinkun Bao via cfe-commits
qinkunbao wrote: https://github.com/llvm/llvm-project/pull/141270 can solve the issue but I don't know what is the reason. https://github.com/llvm/llvm-project/pull/140964 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-05-23 Thread Walter J.T.V via cfe-commits
eZWALT wrote: @alexey-bataev not sure what happened before with this build system, but now everything works as expected. Thanks for the fast replies and have a nice weekend! https://github.com/llvm/llvm-project/pull/139293 ___ cfe-commits mailing l

[clang] [clang][AIX] Strip unknown environment component for per target runtime directory (PR #140850)

2025-05-23 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen approved this pull request. LGTM. Thanks. https://github.com/llvm/llvm-project/pull/140850 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes In #138062 it was brought up that this was an anti-pattern. We'll need to Migrate all of the mustache unittests to lit tests, and disable them until tool support lands. --- Full diff: https://github

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)

2025-05-23 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao updated https://github.com/llvm/llvm-project/pull/140964 >From 534d49d489476ffd1aa8f23d21a02f29d3b823fc Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Wed, 21 May 2025 22:12:13 + Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang-tools-extra] [clang-doc] Add helpers for Template config (PR #138062)

2025-05-23 Thread Nico Weber via cfe-commits
nico wrote: > As an alternative, we could disable the unit tests for the new feature, since > its expected to be experimental for some time, and move the testing into lit > tests. That sounds like a good way forward to me :) https://github.com/llvm/llvm-project/pull/138062 ___

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#141269** https://app.graphite.dev/github/pr/llvm/llvm-project/141269?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1412

[clang] [clang][bytecode] Check lifetime of all ptr bases in placement-new (PR #141272)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes placement-new'ing an object with a dead base object is not allowed, so we need to check all the pointer bases. --- Full diff: https://github.com/llvm/llvm-project/pull/141272.diff 7 Files Affected: - (mod

[clang] [clang][bytecode] Check lifetime of all ptr bases in placement-new (PR #141272)

2025-05-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/141272 placement-new'ing an object with a dead base object is not allowed, so we need to check all the pointer bases. >From b926faa034774260871133e1eaa415f4b0bb8721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C

[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)

2025-05-23 Thread Qinkun Bao via cfe-commits
qinkunbao wrote: This PR change converts Matcher::Globs from StringMap to vector. However, after the change, some unit tests are broken. For example, ``` // build/unittests/Support/./SupportTests --gtest_filter=SpecialCaseListTest.Basic TEST_F(SpecialCaseListTest, Basic) { std::unique_ptr SC

[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)

2025-05-23 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao updated https://github.com/llvm/llvm-project/pull/140964 >From 534d49d489476ffd1aa8f23d21a02f29d3b823fc Mon Sep 17 00:00:00 2001 From: Qinkun Bao Date: Wed, 21 May 2025 22:12:13 + Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UT

[clang] [HLSL] Add Buffer def to frontend (PR #141086)

2025-05-23 Thread Finn Plummer via cfe-commits
https://github.com/inbelic commented: How does this/will this handle enforcing that it is a read-only buffer? https://github.com/llvm/llvm-project/pull/141086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Add an annotation for pointer conversion. (PR #141277)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR adds the WebKit checker support for [[clang::annotate_type("webkit.pointerconversion")]]. When this attribute is set on the return value of a function, the function is treated as safe to call anywhere

[clang-tools-extra] 524ef16 - [clang-doc] Avoid reading files in unit tests (#141269)

2025-05-23 Thread via cfe-commits
Author: Paul Kirth Date: 2025-05-23T11:47:20-07:00 New Revision: 524ef164a745a364f80c11c9a8ddb58321ed408f URL: https://github.com/llvm/llvm-project/commit/524ef164a745a364f80c11c9a8ddb58321ed408f DIFF: https://github.com/llvm/llvm-project/commit/524ef164a745a364f80c11c9a8ddb58321ed408f.diff LO

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 approved this pull request. https://github.com/llvm/llvm-project/pull/141269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add helpers for Template config (PR #138062)

2025-05-23 Thread Paul Kirth via cfe-commits
ilovepi wrote: #141269 should fix the issue for now. I'll clean up the rest of the stack to avoid reintroducing this problem. https://github.com/llvm/llvm-project/pull/138062 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.o

[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)

2025-05-23 Thread Dan McGregor via cfe-commits
https://github.com/dankm updated https://github.com/llvm/llvm-project/pull/141250 >From 1478c326a7e60b270f2a81e373c390183d1483ed Mon Sep 17 00:00:00 2001 From: Dan McGregor Date: Fri, 23 May 2025 10:19:22 -0600 Subject: [PATCH] [Clang] Remap paths in OpenMP runtime calls Apply the debug prefix

[clang] [lld] [llvm] Adding Matching and Inference Functionality to Propeller (PR #139008)

2025-05-23 Thread Sriraman Tallam via cfe-commits
@@ -1688,6 +1688,11 @@ def fprofile_sample_accurate : Flag<["-"], "fprofile-sample-accurate">, as cold. Otherwise, treat callsites without profile samples as if we have no profile}]>, MarshallingInfoFlag>; +def fpropeller_profile_use_EQ : Join

[clang] 99f1f0e - [CIR] Upstream comparison ops for VectorType (#140597)

2025-05-23 Thread via cfe-commits
Author: Amr Hesham Date: 2025-05-23T20:54:42+02:00 New Revision: 99f1f0edb54895881bf6ebe5153673ac682092dd URL: https://github.com/llvm/llvm-project/commit/99f1f0edb54895881bf6ebe5153673ac682092dd DIFF: https://github.com/llvm/llvm-project/commit/99f1f0edb54895881bf6ebe5153673ac682092dd.diff LO

[clang] [CIR] Upstream comparison ops for VectorType (PR #140597)

2025-05-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/140597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Add an annotation for pointer conversion. (PR #141277)

2025-05-23 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/141277 This PR adds the WebKit checker support for [[clang::annotate_type("webkit.pointerconversion")]]. When this attribute is set on the return value of a function, the function is treated as safe to call anywhere an

[clang-tools-extra] [clang-doc] Avoid reading files in unit tests (PR #141269)

2025-05-23 Thread Paul Kirth via cfe-commits
ilovepi wrote: ### Merge activity * **May 23, 6:45 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/141269). https://github.com/llvm/llvm-project/pull/141269

[clang] [WebKit checkers] Add an annotation for pointer conversion. (PR #141277)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes This PR adds the WebKit checker support for [[clang::annotate_type("webkit.pointerconversion")]]. When this attribute is set on the return value of a function, the function is treated as saf

[clang] [lld] [llvm] Adding Matching and Inference Functionality to Propeller (PR #139008)

2025-05-23 Thread Rahman Lavaee via cfe-commits
@@ -1688,6 +1688,11 @@ def fprofile_sample_accurate : Flag<["-"], "fprofile-sample-accurate">, as cold. Otherwise, treat callsites without profile samples as if we have no profile}]>, MarshallingInfoFlag>; +def fpropeller_profile_use_EQ : Join

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-23 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: > It is concerning to me that we as a company are given **a week** to adjust to > the change and there is no discussion either about alternative approaches or > the scale of the changes needed to support this. We do rely on all kinds of > weird behaviors and side effects in Clan

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-23 Thread Volodymyr Sapsai via cfe-commits
vsapsai wrote: > Back to the original issue. Do you control the module map that specifies a header as private? Does it need to stay private? Personally, to me it looks like a bug that a private header is getting picked up [somewhat accidentally]. I'm not planning to fix this bug, just that re

[clang] [Clang] Remap paths in OpenMP runtime calls (#82541) (PR #141250)

2025-05-23 Thread Dan McGregor via cfe-commits
@@ -1370,10 +1375,14 @@ llvm::Value *CGOpenMPRuntime::emitUpdateLocation(CodeGenFunction &CGF, SrcLocStr = OMPBuilder.getOrCreateDefaultSrcLocStr(SrcLocStrSize); } else { std::string FunctionName; +std::string FileName; if (const auto *FD = dyn_cast_or_null(

[clang] [Clang][CMake][MSVC] Install PDBs alongside executables (PR #126961)

2025-05-23 Thread Miguel A. Arroyo via cfe-commits
https://github.com/mayanez updated https://github.com/llvm/llvm-project/pull/126961 >From ffb0e0cf837d78b38a4ad9ddebf8cd692682fdc5 Mon Sep 17 00:00:00 2001 From: Miguel Arroyo Date: Wed, 12 Feb 2025 11:35:10 -0800 Subject: [PATCH] [Clang][CMake][MSVC] Install PDBs alongside executables --- cl

[clang] [clang][bytecode] Check lifetime of all ptr bases in placement-new (PR #141272)

2025-05-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/141272 >From 9a8f1f46b1a4e9610b1c3e6d1124ba6321896da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 23 May 2025 19:41:59 +0200 Subject: [PATCH] [clang][bytecode] Check lifetime of all ptr bas

[clang] [llvm] change GlobPattern:Prefix from stringref to string. (PR #141270)

2025-05-23 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao edited https://github.com/llvm/llvm-project/pull/141270 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] fix names of conversions for template parameters (PR #140856)

2025-05-23 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/140856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 441b967 - [clang-doc] fix names of conversions for template parameters (#140856)

2025-05-23 Thread via cfe-commits
Author: Erick Velez Date: 2025-05-23T19:35:32Z New Revision: 441b967ad919de182f54929de701b945a69449c9 URL: https://github.com/llvm/llvm-project/commit/441b967ad919de182f54929de701b945a69449c9 DIFF: https://github.com/llvm/llvm-project/commit/441b967ad919de182f54929de701b945a69449c9.diff LOG: [

[clang] [llvm] [NFCI][Sanitizer] Convert Matcher::Globs from StringMap to vector. (PR #140964)

2025-05-23 Thread Vitaly Buka via cfe-commits
@@ -553,7 +553,10 @@ void WarningsSpecialCaseList::processSections(DiagnosticsEngine &Diags) { // Each section has a matcher with that section's name, attached to that // line. const auto &DiagSectionMatcher = Entry.SectionMatcher; -unsigned DiagLine = DiagSect

[clang] 795e889 - [Clang][CMake][MSVC] Install PDBs alongside executables (#126961)

2025-05-23 Thread via cfe-commits
Author: Miguel A. Arroyo Date: 2025-05-23T12:58:56-07:00 New Revision: 795e88903721e89e105338e1dd464a834156aac7 URL: https://github.com/llvm/llvm-project/commit/795e88903721e89e105338e1dd464a834156aac7 DIFF: https://github.com/llvm/llvm-project/commit/795e88903721e89e105338e1dd464a834156aac7.di

[clang] [Clang][CMake][MSVC] Install PDBs alongside executables (PR #126961)

2025-05-23 Thread Miguel A. Arroyo via cfe-commits
https://github.com/mayanez closed https://github.com/llvm/llvm-project/pull/126961 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (PR #141076)

2025-05-23 Thread Balázs Kéri via cfe-commits
https://github.com/balazske edited https://github.com/llvm/llvm-project/pull/141076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] be50ada - [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (#141076)

2025-05-23 Thread via cfe-commits
Author: Balázs Kéri Date: 2025-05-23T09:26:31+02:00 New Revision: be50ada9d008673a041a5e675f9d9d70a4572aaa URL: https://github.com/llvm/llvm-project/commit/be50ada9d008673a041a5e675f9d9d70a4572aaa DIFF: https://github.com/llvm/llvm-project/commit/be50ada9d008673a041a5e675f9d9d70a4572aaa.diff L

[clang] [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (PR #141076)

2025-05-23 Thread Balázs Kéri via cfe-commits
https://github.com/balazske closed https://github.com/llvm/llvm-project/pull/141076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Add diagnostic for 'factor' width mismatch in 'unroll partial' (PR #139986)

2025-05-23 Thread ALBIN BABU VARGHESE via cfe-commits
https://github.com/albus-droid updated https://github.com/llvm/llvm-project/pull/139986 >From 3cc8334092853442f85c5a17a3bd31e373f30da8 Mon Sep 17 00:00:00 2001 From: albus-droid Date: Wed, 14 May 2025 15:49:11 -0400 Subject: [PATCH 1/8] Added two conditions to check for width of the factor var

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-05-23 Thread via cfe-commits
cor3ntin wrote: I've been considering similar issues recently. e.g https://compiler-explorer.com/z/5xcKf8Kj1 A more general solution would be to emit diagnostics in system headers if one of the involved types/expressions names an entity declared outside of a system header. I haven't had a bri

[clang] [llvm] [clang][RISCV] Emit RISCV function-signature-based CFI label in llvm::Function metadata (PR #111661)

2025-05-23 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: Update: Rebased to `main` trunk; keep function signature in LLVM IR https://github.com/llvm/llvm-project/pull/111661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Add include mappings for (PR #141216)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Daan De Meyer (DaanDeMeyer) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141216.diff 2 Files Affected: - (modified) clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp (+1) - (modified

[clang] [KeyInstr][Clang] Switch stmt atom (PR #134643)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Switch stmt atom (PR #134643)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams ready_for_review https://github.com/llvm/llvm-project/pull/134643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Catch variable init atom (PR #134641)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134641 >From ae032c5dd3537662508d77bbb447808f52481f5d Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Tue, 1 Apr 2025 11:59:24 +0100 Subject: [PATCH 01/33] [KeyInstr][Clang] Add ApplyAtomGroup This is a sco

[clang] [llvm] [clang][RISCV] Emit RISCV function-signature-based CFI label in llvm::Function metadata (PR #111661)

2025-05-23 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/111661 >From b3a7b9f4bd6d65f837b3cc9e4a0e0bd6fdede6ab Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Fri, 31 May 2024 17:03:04 +0800 Subject: [PATCH] [clang][RISCV] Emit RISCV function-signature-based CFI label in

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread via cfe-commits
@@ -282,4 +283,25 @@ static_assert(S().SizeOfT() == sizeof(short *), ""); } // namespace GH68490 +namespace GH83608 { + +class single; + +class check_constructible { + // This makes it a non-aggregate in C++20+. cor3ntin wrote: ```suggestion // This make

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks https://github.com/llvm/llvm-project/pull/141207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add support for textDocument/rangesFormatting (PR #141208)

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

[clang-tools-extra] [clang-tidy] Disable bugprone-multi-level-pointer-conversion in C code (PR #141209)

2025-05-23 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp created https://github.com/llvm/llvm-project/pull/141209 It is deemed more of an annoyance than a help, since the patterns the check warns about are quite common and idiomatic in C, and there are no good alternatives. Thus, enable the check only for C++, where

[clang-tools-extra] [clang-tidy] Disable bugprone-multi-level-pointer-conversion in C code (PR #141209)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Carlos Galvez (carlosgalvezp) Changes It is deemed more of an annoyance than a help, since the patterns the check warns about are quite common and idiomatic in C, and there are no good alternatives. Thus, enable the check onl

[clang-tools-extra] [clang-tidy] Disable bugprone-multi-level-pointer-conversion in C code (PR #141209)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Carlos Galvez (carlosgalvezp) Changes It is deemed more of an annoyance than a help, since the patterns the check warns about are quite common and idiomatic in C, and there are no good alternatives. Thus, enable the check only for C

[clang] [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (PR #141076)

2025-05-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/18228 Her

[clang] 4f844e7 - [OpenCL] No need to check array of struct for kernel arguments (#138894)

2025-05-23 Thread via cfe-commits
Author: Jiefeng Wang Date: 2025-05-23T10:38:35+02:00 New Revision: 4f844e7881d86971cd31401d02a418235d18f456 URL: https://github.com/llvm/llvm-project/commit/4f844e7881d86971cd31401d02a418235d18f456 DIFF: https://github.com/llvm/llvm-project/commit/4f844e7881d86971cd31401d02a418235d18f456.diff

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread via cfe-commits
cor3ntin wrote: Does this fixes https://github.com/llvm/llvm-project/issues/62444 ? https://github.com/llvm/llvm-project/pull/141207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread via cfe-commits
@@ -282,4 +283,25 @@ static_assert(S().SizeOfT() == sizeof(short *), ""); } // namespace GH68490 +namespace GH83608 { + +class single; + +class check_constructible { + // This makes it a non-aggregate in C++20+. + check_constructible() = default; cor3ntin

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/141207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

2025-05-23 Thread via cfe-commits
cor3ntin wrote: @charan-003 Oliver told me you were happy with him taking over in #141148. Can you confirm? I apologize that we incorrectly identified this bug as a good first issue when it clearly wasn't. Were you able to find other issues to work on? https://github.com/llvm/llvm-project/pull

[clang] [KeyInstr][Clang] Member initalization atom (PR #134640)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tools-extra] Add include mappings for (PR #141216)

2025-05-23 Thread Daan De Meyer via cfe-commits
https://github.com/DaanDeMeyer created https://github.com/llvm/llvm-project/pull/141216 None >From a6dd3873ef01268f5466bdeebf2bdcc4c314158e Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 20 May 2025 15:46:29 +0200 Subject: [PATCH] [clang-tools-extra] Add include mappings for --- ..

[clang-tools-extra] [clang-tools-extra] Add include mappings for (PR #141216)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Daan De Meyer (DaanDeMeyer) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141216.diff 2 Files Affected: - (modified) clang-tools-extra/clang-include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp (+1)

[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: Sorry to all that were added... grappling with messed-up graphite internal state, GitHub enjoys adding reviewers for me when I change base. https://github.com/llvm/llvm-project/pull/134638 ___ cfe-commits mailing list cfe-commits@lists.

[clang] 5c3a997 - [KeyInstr][Clang] Member initalization atom (#134640)

2025-05-23 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-23T10:02:26+01:00 New Revision: 5c3a99760274a06f8cb7e7247ce69c2fde5fbf2a URL: https://github.com/llvm/llvm-project/commit/5c3a99760274a06f8cb7e7247ce69c2fde5fbf2a DIFF: https://github.com/llvm/llvm-project/commit/5c3a99760274a06f8cb7e7247ce69c2fde5fbf

[clang] [Clang] Fix the access checking for non-aggregates in default arguments (PR #141207)

2025-05-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/141207 We check the accessibility of constructors when initializing a default argument whose type is not an aggregate. Make sure the check is performed within the correct DeclContext. Otherwise, it will be delayed un

[clang] replace the extension with the right functions (PR #141110)

2025-05-23 Thread Ulrich Weigand via cfe-commits
https://github.com/uweigand approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/141110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (PR #141076)

2025-05-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/725 Here is the relevant

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2025-05-23 Thread Yingwei Zheng via cfe-commits
@@ -20,10 +20,10 @@ void test_add_template() { // CHECK: %call = call noundef <10 x float> @_Z3addIfLj2ELj5EEN8MyMatrixIT_XT0_EXT1_EE8matrix_tERS2_S4_(ptr noundef nonnull align 4 dereferenceable(40) %Mat1, ptr noundef nonnull align 4 dereferenceable(40) %Mat2) //

[clang-tools-extra] [clangd] Add support for textDocument/rangesFormatting (PR #141052)

2025-05-23 Thread Tom Praschan via cfe-commits
https://github.com/tom-anders closed https://github.com/llvm/llvm-project/pull/141052 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add support for textDocument/rangesFormatting (PR #141208)

2025-05-23 Thread Tom Praschan via cfe-commits
https://github.com/tom-anders created https://github.com/llvm/llvm-project/pull/141208 Sorry again about the 3rd PR for this now, but Github won't let me reopen the 2nd one now either... I think it's because I pushed from a different machine when fixing your comment about the `ranges`. The ne

[clang-tools-extra] [clangd] Add support for textDocument/rangesFormatting (PR #141208)

2025-05-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Tom Praschan (tom-anders) Changes Sorry again about the 3rd PR for this now, but Github won't let me reopen the 2nd one now either... I think it's because I pushed from a different machine when fixing your comment about the `

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-05-23 Thread via cfe-commits
higher-performance wrote: @efriedma-quic: I'm not sure what the appropriate way to test this is. The file [clang/test/SemaCXX/uninitialized.cpp](https://github.com/llvm/llvm-project/blob/main/clang/test/SemaCXX/uninitialized.cpp) doesn't include any system headers. Should I just add a system he

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2025-05-23 Thread Yingwei Zheng via cfe-commits
@@ -2916,9 +2916,30 @@ CodeGenFunction::EmitLoadOfReference(LValue RefLVal, llvm::LoadInst *Load = Builder.CreateLoad(RefLVal.getAddress(), RefLVal.isVolatile()); CGM.DecorateInstructionWithTBAA(Load, RefLVal.getTBAAInfo()); - return makeNaturalAddressForPointer(Load

[clang] [clang][analyzer] Refine modeling of 'getcwd' in StdCLibraryFunctions checker (PR #141076)

2025-05-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/3757 Here is the relevant piece

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-05-23 Thread Carlos Alberto Enciso via cfe-commits
CarlosAlbertoEnciso wrote: @tromey You added a note about a missing test for the case where a class is defined inside a function. That case is handled by `clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple-main.cpp` https://github.com/llvm/llvm-project/pull/130255

[clang] [KeyInstr] Complex assignment atoms (PR #134638)

2025-05-23 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   >