[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -369,24 +393,48 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, const auto *ReferrerStackSpace = ReferrerMemSpace->getAs(); + if (!ReferrerStackSpace) return false; - if (ReferredMemSpace->getStackFrame() == Pop

[clang] Changed readme.txt on clang directory to readme.md (PR #106192)

2024-08-27 Thread Tarık Çelik via cfe-commits
https://github.com/tarik-celik created https://github.com/llvm/llvm-project/pull/106192 None From 1d478a25dc59cf727f77ea87f71ef1b3e92effd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tar=C4=B1k=20=C3=87elik?= <141952517+tarik-ce...@users.noreply.github.com> Date: Tue, 27 Aug 2024 09:59:58 +0300 S

[clang] Changed readme.txt on clang directory to readme.md (PR #106192)

2024-08-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto updated https://github.com/llvm/llvm-project/pull/106048 >From 7d5ae515f7727de98e7e8ce2f259e579a1f24463 Mon Sep 17 00:00:00 2001 From: Arseniy Zaostrovnykh Date: Tue, 20 Aug 2024 17:31:11 +0200 Subject: [PATCH 1/7] [analyzer] Report violations of the "returns_nonnull"

[clang] Changed readme.txt on clang directory to readme.md (PR #106192)

2024-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tarık Çelik (tarik-celik) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/106192.diff 2 Files Affected: - (removed) clang/README.txt (-26) - (added) clang/readme.md (+25) ``diff diff --git a/clang/README.tx

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -588,8 +588,8 @@ Warns when a null pointer is passed to a pointer which has a _Nonnull type. .. _nullability-NullReturnedFromNonnull: -nullability.NullReturnedFromNonnull (ObjC) -"" +nullability.NullReturnedFromNonnull +

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto updated https://github.com/llvm/llvm-project/pull/106048 >From 7d5ae515f7727de98e7e8ce2f259e579a1f24463 Mon Sep 17 00:00:00 2001 From: Arseniy Zaostrovnykh Date: Tue, 20 Aug 2024 17:31:11 +0200 Subject: [PATCH 1/8] [analyzer] Report violations of the "returns_nonnull"

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -51,3 +54,15 @@ int *cannot_return_null() { __attribute__((returns_nonnull)) int *passthrough(int *p) { return p; // no-warning: we have no evidence that `p` is null, i.e., violating the contract } + +__attribute__((noreturn)) +void exit(int); necto wrote

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto updated https://github.com/llvm/llvm-project/pull/105648 >From 991f176c5545fedae2ba8b5c1b357734abe68ac7 Mon Sep 17 00:00:00 2001 From: Arseniy Zaostrovnykh Date: Tue, 20 Aug 2024 11:16:10 +0200 Subject: [PATCH 1/2] [analyzer] Detect leaks on top-level via output params,

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -369,24 +393,48 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, const auto *ReferrerStackSpace = ReferrerMemSpace->getAs(); + if (!ReferrerStackSpace) return false; - if (ReferredMemSpace->getStackFrame() == Pop

[clang-tools-extra] b45527d - [clang-tidy] Add UseUpperCaseLiteralSuffix option to readability-implicit-bool-conversion (#104882)

2024-08-27 Thread via cfe-commits
Author: Da-Viper Date: 2024-08-27T09:24:48+02:00 New Revision: b45527da23ed64a503cc0fd18f63692eb3589748 URL: https://github.com/llvm/llvm-project/commit/b45527da23ed64a503cc0fd18f63692eb3589748 DIFF: https://github.com/llvm/llvm-project/commit/b45527da23ed64a503cc0fd18f63692eb3589748.diff LOG:

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

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

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

2024-08-27 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Thanks, merged! I've edited the commit message a bit to better reflect the content of the patch, as well as mark a related issue as fixed. https://github.com/llvm/llvm-project/pull/104882 ___ cfe-commits mailing list cfe-commits@l

[clang] [Clang][AST] Add Test Cases for Reference Qualifiers in Opr Overload (PR #102878)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/102878 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Catch missing format attributes (PR #105479)

2024-08-27 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec closed https://github.com/llvm/llvm-project/pull/105479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin commented: Looking pretty good but I had a few suggestions. Thanks! https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
@@ -198,4 +198,33 @@ namespace lambdas { } } -// FIXME: by-value array copies +namespace by_value_array_copy { + struct explicit_copy { +explicit_copy() = default; // expected-note 2{{candidate constructor not viable: requires 0 arguments, but 1 was provided}} +exp

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
@@ -4091,6 +4091,16 @@ void InitializationSequence::AddParenthesizedListInitStep(QualType T) { Steps.push_back(S); } +void InitializationSequence::AddUnwrapInitListAtTheBeginning( cor3ntin wrote: ```suggestion void InitializationSequence::AddUnwrapInitList

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
@@ -1384,6 +1384,11 @@ class InitializationSequence { void AddParenthesizedListInitStep(QualType T); + /// Only used when initializing array-typed structured bindings with + /// direct-list-initialization. Unwrap the initializer list to get the array + /// for array copy

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
@@ -302,6 +302,8 @@ Bug Fixes to C++ Support template depth than the friend function template. (#GH98258) - Clang now rebuilds the template parameters of out-of-line declarations and specializations in the context of the current instantiation in all cases. +- Clang now cor

[clang] Changed readme.txt on clang directory to readme.md (PR #106192)

2024-08-27 Thread via cfe-commits
cor3ntin wrote: Can you `git rename` to do that change? It would help better keep track of the history. Thanks! https://github.com/llvm/llvm-project/pull/106192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [Clang] Add [[clang::no_specializations]] (PR #101469)

2024-08-27 Thread via cfe-commits
cor3ntin wrote: I did think about it more, and I think it would be more consistent to support the attribute on any sort of specializable entity, including functions - regardless of STL needs @AaronBallman @ldionne https://github.com/llvm/llvm-project/pull/101469 ___

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread Rajveer Singh Bharadwaj via cfe-commits
Rajveer100 wrote: Only windows failed. https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Changed readme.txt on clang directory to readme.md (PR #106192)

2024-08-27 Thread Tarık Çelik via cfe-commits
https://github.com/tarik-celik closed https://github.com/llvm/llvm-project/pull/106192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-08-27 Thread Tarık Çelik via cfe-commits
https://github.com/tarik-celik created https://github.com/llvm/llvm-project/pull/106198 None From a8580078b6d74421095a6d7b2be803577fb859f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tar=C4=B1k=20=C3=87elik?= <141952517+tarik-ce...@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:00:37 +0300 S

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-08-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Updated and renamed README.txt to README.md (PR #106198)

2024-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tarık Çelik (tarik-celik) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/106198.diff 2 Files Affected: - (added) clang/README.md (+25) - (removed) clang/README.txt (-26) ``diff diff --git a/clang/README.md

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-27 Thread Justin Bogner via cfe-commits
https://github.com/bogner commented: I think this looks basically reasonable, though some parts are a bit hard to decipher without the actual attributed types present yet. We probably need someone familar with the clang AST, Sema, and serialization to take a look as well - maybe @AaronBallman?

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-27 Thread Justin Bogner via cfe-commits
@@ -6155,6 +6155,63 @@ class BTFTagAttributedType : public Type, public llvm::FoldingSetNode { } }; +class HLSLAttributedResourceType : public Type, public llvm::FoldingSetNode { +public: + struct Attributes { +// This is where data gathered from HLSL resource attribut

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-27 Thread Justin Bogner via cfe-commits
@@ -2048,6 +2049,17 @@ void TypePrinter::printBTFTagAttributedAfter(const BTFTagAttributedType *T, printAfter(T->getWrappedType(), OS); } +void TypePrinter::printHLSLAttributedResourceBefore( +const HLSLAttributedResourceType *T, raw_ostream &OS) { + printBefore(T->get

[clang] [HLSL] Add HLSLAttributedResourceType (PR #106181)

2024-08-27 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/106181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread Rajveer Singh Bharadwaj via cfe-commits
https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/96301 >From 387e83880994ddd71898680e421bc4590a3dbd63 Mon Sep 17 00:00:00 2001 From: Rajveer Date: Fri, 21 Jun 2024 18:26:36 +0530 Subject: [PATCH] [clang] Allow class with anonymous union member to be const-default

[clang-tools-extra] [clang-tidy] Use upper case letters for bool conversion suffix (PR #104882)

2024-08-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `clang-tools-extra` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/2399 H

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin commented: Here are more tests to consider https://godbolt.org/z/M6fj5zTfq Thanks! https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailm

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread via cfe-commits
@@ -1125,7 +1128,11 @@ void CXXRecordDecl::addedMember(Decl *D) { data().DefaultedCopyConstructorIsDeleted = true; } -if (!Field->hasInClassInitializer() && !Field->isMutable()) { +if (isUnion() && !Field->isMutable()) { + if (Field->hasInClassInitiali

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread via cfe-commits
@@ -318,6 +318,9 @@ Bug Fixes to C++ Support of the current instantiation in all cases. - Fix evaluation of the index of dependent pack indexing expressions/types specifiers (#GH105900) - Correctly handle subexpressions of an immediate invocation in the presence of implicit

[clang] `__noop` not marked as constexpr #102064 (PR #105983)

2024-08-27 Thread via cfe-commits
AdiSin123 wrote: I am sorry, I couldn't make much headway in the last weeks because I was still understanding the codebase. Please feel free to reassign. I will attempt to take on issues in the future when I am much more prepared. On Tue, 27 Aug, 2024, 7:38 am Younan Zhang, ***@***.***> wrote:

[clang] [clang] Catch missing format attributes (PR #105479)

2024-08-27 Thread Budimir Aranđelović via cfe-commits
https://github.com/budimirarandjelovichtec reopened https://github.com/llvm/llvm-project/pull/105479 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)

2024-08-27 Thread via cfe-commits
dmasloff wrote: @mydeveloperday sorry for tagging, I hope it could save some time for out team as in this [issue](https://github.com/llvm/llvm-project/issues/102582) you seemed positive about new contributors https://github.com/llvm/llvm-project/pull/106145

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/105648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. Thanks for the clarification, the change LGTM now. https://github.com/llvm/llvm-project/pull/105648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Donát Nagy via cfe-commits
@@ -305,6 +305,14 @@ static const MemSpaceRegion *getStackOrGlobalSpaceRegion(const MemRegion *R) { return nullptr; } +const MemRegion *getOriginBaseRegion(const MemRegion *Referrer) { + Referrer = Referrer->getBaseRegion(); + while (const auto *SymReg = dyn_cast(Referrer

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Donát Nagy via cfe-commits
@@ -424,6 +481,9 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, for (const auto &P : Cb.V) { const MemRegion *Referrer = P.first->getBaseRegion(); const MemRegion *Referred = P.second; +if (Cb.ExcludedRegions.contains(getOriginBaseRegion(R

[clang] fac484c - [clang-format-diff.py][NFC] Document _stderr as unused

2024-08-27 Thread via cfe-commits
Author: MarcoFalke Date: 2024-08-27T11:07:17+02:00 New Revision: fac484ccc60d148b1893bfae843c6c416a57a870 URL: https://github.com/llvm/llvm-project/commit/fac484ccc60d148b1893bfae843c6c416a57a870 DIFF: https://github.com/llvm/llvm-project/commit/fac484ccc60d148b1893bfae843c6c416a57a870.diff LO

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Donát Nagy via cfe-commits
@@ -369,24 +393,48 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, const auto *ReferrerStackSpace = ReferrerMemSpace->getAs(); + if (!ReferrerStackSpace) return false; - if (ReferredMemSpace->getStackFrame() == Pop

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Donát Nagy via cfe-commits
@@ -692,6 +692,14 @@ void NullabilityChecker::checkPreStmt(const ReturnStmt *S, NullConstraint Nullness = getNullConstraint(*RetSVal, State); Nullability RequiredNullability = getNullabilityAnnotation(RequiredRetType); + if (const auto *FunDecl = C.getLocationContext()->g

[clang] [analyzer] Moving TaintPropagation checker out of alpha (PR #67352)

2024-08-27 Thread Daniel Krupp via cfe-commits
https://github.com/dkrupp edited https://github.com/llvm/llvm-project/pull/67352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread Rajveer Singh Bharadwaj via cfe-commits
https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/96301 >From dfc44453e9168048d60071ba6e28e7b01be22114 Mon Sep 17 00:00:00 2001 From: Rajveer Date: Fri, 21 Jun 2024 18:26:36 +0530 Subject: [PATCH] [clang] Allow class with anonymous union member to be const-default

[clang] [analyzer] Moving TaintPropagation checker out of alpha (PR #67352)

2024-08-27 Thread Daniel Krupp via cfe-commits
https://github.com/dkrupp edited https://github.com/llvm/llvm-project/pull/67352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Donát Nagy via cfe-commits
@@ -10,3 +12,42 @@ void block_arity_mismatch() { void(^b)() = ^(int a, int b) { }; b(1); // no-crash expected-warning {{Block taking 2 arguments is called with fewer (1)}} } + +int *nonnull_return_annotation_indirect() __attribute__((returns_nonnull)); +int *nonnull_retur

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/106048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Moving TaintPropagation checker out of alpha (PR #67352)

2024-08-27 Thread Daniel Krupp via cfe-commits
https://github.com/dkrupp updated https://github.com/llvm/llvm-project/pull/67352 >From 11b85a494bfc844d9474efd2c9679cc5c0f4f889 Mon Sep 17 00:00:00 2001 From: Daniel Krupp Date: Thu, 15 Aug 2024 14:24:35 +0200 Subject: [PATCH 1/2] [analyzer] Moving TaintPropagation and GenericTaint checkers o

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH] [ARM] musttail fixes Backend: - Caller and callee arguments no longe

[clang] [Clang] Support initializing array-typed structured bindings with direct-list-initialization (PR #102581)

2024-08-27 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis updated https://github.com/llvm/llvm-project/pull/102581 >From 9d5d8d99db6f7fa0b6973fe55582de9d34740b19 Mon Sep 17 00:00:00 2001 From: Yanzuo Liu Date: Fri, 9 Aug 2024 15:45:40 +0800 Subject: [PATCH 1/5] Support non-reference structured bindings with braced array as in

[clang] [analyzer] Moving TaintPropagation checker out of alpha (PR #67352)

2024-08-27 Thread Daniel Krupp via cfe-commits
dkrupp wrote: @steakhal now the commit is rebased and the results in the description are also refreshed (not broken). All the earlier problematic reports related to tainted integers (memset, malloc, memcpy ...) are not present now as these were removed from this checker as generic sinks by ea

[clang] [analyzer] Report violations of the "returns_nonnull" attribute (PR #106048)

2024-08-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. Looks good to me now, thanks :smile:. Feel free to merge this / I can help with merging if you don't have commit access yet. https://github.com/llvm/llvm-project/pull/106048 ___ cfe-commits mail

[clang] [Clang] Support initializing structured bindings from an array with direct-list-initialization (PR #102581)

2024-08-27 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support initializing structured bindings from an array with direct-list-initialization (PR #102581)

2024-08-27 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-08-27 Thread Malay Sanghi via cfe-commits
@@ -45,6 +45,14 @@ bool SemaX86::CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall) { case X86::BI__builtin_ia32_vcvttsh2si64: MalaySanghi wrote: @phoebewang These don't have sis32/64 either. I'm not sure what is the convention here. https://gi

[clang] [Clang] Support initializing structured bindings from an array with direct-list-initialization (PR #102581)

2024-08-27 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis updated https://github.com/llvm/llvm-project/pull/102581 >From 9d5d8d99db6f7fa0b6973fe55582de9d34740b19 Mon Sep 17 00:00:00 2001 From: Yanzuo Liu Date: Fri, 9 Aug 2024 15:45:40 +0800 Subject: [PATCH 1/5] Support non-reference structured bindings with braced array as in

[clang] a2088a2 - [ARM] musttail fixes

2024-08-27 Thread via cfe-commits
Author: Kiran Date: 2024-08-27T10:44:06+01:00 New Revision: a2088a24dad31ebe44c93751db17307fdbe1f0e2 URL: https://github.com/llvm/llvm-project/commit/a2088a24dad31ebe44c93751db17307fdbe1f0e2 DIFF: https://github.com/llvm/llvm-project/commit/a2088a24dad31ebe44c93751db17307fdbe1f0e2.diff LOG: [A

[clang] 1a908c6 - Seperate frontend changes, add debug directives, remove redundant stuff from tests

2024-08-27 Thread via cfe-commits
Author: Kiran Date: 2024-08-27T10:44:06+01:00 New Revision: 1a908c6be3317bbbac73e6a6fc52cabefbdebf7d URL: https://github.com/llvm/llvm-project/commit/1a908c6be3317bbbac73e6a6fc52cabefbdebf7d DIFF: https://github.com/llvm/llvm-project/commit/1a908c6be3317bbbac73e6a6fc52cabefbdebf7d.diff LOG: Se

[clang] ad468da - Revert "Seperate frontend changes, add debug directives, remove redundant stuff from tests"

2024-08-27 Thread via cfe-commits
Author: Kiran Date: 2024-08-27T10:46:18+01:00 New Revision: ad468da03815478ceab7c553e651c1a39a479738 URL: https://github.com/llvm/llvm-project/commit/ad468da03815478ceab7c553e651c1a39a479738 DIFF: https://github.com/llvm/llvm-project/commit/ad468da03815478ceab7c553e651c1a39a479738.diff LOG: Re

[clang] Fix #104794: Fixed sret bugs with `clang::musttail` on 32 bit targets (PR #104795)

2024-08-27 Thread via cfe-commits
kiran-isaac wrote: Accidentally pushed changes to this PR to main. Have reverted. https://github.com/llvm/llvm-project/pull/104795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/4] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/3] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
kiran-isaac wrote: Accidentally pushed changes to this PR to main. Have reverted. see 1a908c6be3317bbbac73e6a6fc52cabefbdebf7d. I meant to push to my fork. Have now done so. Whoops https://github.com/llvm/llvm-project/pull/102896 ___ cfe-commits mail

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/2] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
kiran-isaac wrote: Force push to remove revert commit, rather than reverting the revert. https://github.com/llvm/llvm-project/pull/102896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-SATCVT-DS new instructions. (PR #102592)

2024-08-27 Thread Phoebe Wang via cfe-commits
@@ -45,6 +45,14 @@ bool SemaX86::CheckBuiltinRoundingOrSAE(unsigned BuiltinID, CallExpr *TheCall) { case X86::BI__builtin_ia32_vcvttsh2si64: phoebewang wrote: We don't have a VCVTTSH2SIS instruction. The general convention is to use the instruction name dire

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-27 Thread Jonas Paulsson via cfe-commits
https://github.com/JonPsson1 updated https://github.com/llvm/llvm-project/pull/100757 >From 834d8bcd0077f0691ab33983cc72697ff6e65793 Mon Sep 17 00:00:00 2001 From: Jonas Paulsson Date: Mon, 11 Oct 2021 19:08:42 +0200 Subject: [PATCH] VerifyIntegerArgs() i8 test. LangRef text. tests IP Tests pa

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/2] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-27 Thread Jonas Paulsson via cfe-commits
JonPsson1 wrote: Patch rebased. Tests failing as before: ``` Failed Tests (44): Clang :: CodeGenObjC 1 fail Clang :: Interpreter 15 fails Clang-Unit :: Interpreter18 fails LLVM-Unit :: ExecutionEngine/Orc/./

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/2] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
kiran-isaac wrote: Really made a mess of it here. For anyone trying to understand what on earth happened: - I pushed a commit to main rather than pushing to the branch on my fork. Lesson learned to always use git in the command line rather than pressing the "sync" button on vscode - I reverted

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
@@ -1,3 +1,4 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 ; RUN: llc -mtriple armv7 -target-abi aapcs -float-abi soft -O0 -o - < %s \ ; RUN: | FileCheck %s -check-prefix CHECK-SOFT -check-prefix CHECK

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
@@ -540,6 +540,8 @@ class CCState { }); } + void dump() const; kiran-isaac wrote: Have added https://github.com/llvm/llvm-project/pull/102896 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang] [analyzer][NFC] Add tests for and refactor StackAddrEscapeChecker 1/3 (PR #105652)

2024-08-27 Thread Gábor Horváth via cfe-commits
@@ -374,13 +395,13 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, // Generate a report for this bug. const StringRef CommonSuffix = -"upon returning to the caller. This will be a dangling reference"; +" upon returning to the ca

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From 24806b179d34b4afb21832e4a2150c13995b59e0 Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/2] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

2024-08-27 Thread Gábor Horváth via cfe-commits
@@ -393,11 +392,9 @@ static void visitFunctionCallArguments(IndirectLocalPath &Path, Expr *Call, Path.push_back({IndirectLocalPathEntry::LifetimeBoundCall, Arg, D}); if (Arg->isGLValue()) visitLocalsRetainedByReferenceBinding(Path, Arg, RK_ReferenceBinding, -

[clang] c50d11e - Revert "[ARM] musttail fixes"

2024-08-27 Thread via cfe-commits
Author: Kiran Date: 2024-08-27T11:17:17+01:00 New Revision: c50d11e6d95a7d6b9bfe126ca35d4831928c3f69 URL: https://github.com/llvm/llvm-project/commit/c50d11e6d95a7d6b9bfe126ca35d4831928c3f69 DIFF: https://github.com/llvm/llvm-project/commit/c50d11e6d95a7d6b9bfe126ca35d4831928c3f69.diff LOG: Re

[clang] [clang] Remove the EnableLifetimeWarnings flag in lifetime analysis. (PR #105884)

2024-08-27 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. Thanks, this is a nice cleanup, but I'd prefer either the PR to be split up, or renamed to emphasize the bug fix aspect of the PR. https://github.com/llvm/llvm-project/pull/105884 ___ cfe-commi

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
https://github.com/kiran-isaac updated https://github.com/llvm/llvm-project/pull/102896 >From eb7551e83618d8452f5dadae1be4aff8f6c9d23c Mon Sep 17 00:00:00 2001 From: Kiran Date: Thu, 8 Aug 2024 13:07:24 +0100 Subject: [PATCH 1/2] [ARM] musttail fixes Backend: - Caller and callee arguments no l

[clang] [llvm] [ARM] musttail fixes (PR #102896)

2024-08-27 Thread via cfe-commits
kiran-isaac wrote: never let me use git again. Forgot to revert one of my commits to main, causing merge conflicts. https://github.com/llvm/llvm-project/pull/102896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [Clang] Support initializing structured bindings from an array with direct-list-initialization (PR #102581)

2024-08-27 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Suggestions are applied. Thank you for your review! I don't have commit accees. Please help me merge this PR if it's ready. https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [analyzer] Detect leak of a stack address through output arguments 2/3 (PR #105653)

2024-08-27 Thread Gábor Horváth via cfe-commits
@@ -297,20 +314,31 @@ std::optional printReferrer(const MemRegion *Referrer) { return "global"; assert(isa(Space)); return "stack"; - }(Referrer->getMemorySpace()); - - // We should really only have VarRegions here. - // Anything else is really surprising, and

[clang] [llvm] [AArch64] Split FeatureLS64 to LS64_ACCDATA and LS64_V. (PR #101712)

2024-08-27 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/101712 >From 2fe8ef63846989952a1c72b83114aabe6f36637a Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Fri, 2 Aug 2024 17:32:23 +0100 Subject: [PATCH] [AArch64] Split FeatureLS64 to LS64_ACCDATA and LS64_V.

[clang] [llvm] target ABI: improve call parameters extensions handling (PR #100757)

2024-08-27 Thread Valentin Churavy via cfe-commits
vchuravy wrote: The JIT tests should be fixed so that they reflect what a front-end developer should actually emit as LLVM IR. https://github.com/llvm/llvm-project/pull/100757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [Clang] Support initializing structured bindings from an array with direct-list-initialization (PR #102581)

2024-08-27 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/102581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-08-27 Thread Rajveer Singh Bharadwaj via cfe-commits
Rajveer100 wrote: @cor3ntin CI looks good. https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Detect leaks of stack addresses via output params, indirect globals 3/3 (PR #105648)

2024-08-27 Thread Gábor Horváth via cfe-commits
@@ -348,12 +357,27 @@ void StackAddrEscapeChecker::checkEndFunction(const ReturnStmt *RS, ExplodedNode *Node = Ctx.getPredecessor(); + bool ExitingTopFrame = + Ctx.getPredecessor()->getLocationContext()->inTopFrame(); + + if (ExitingTopFrame && Node->getLocation().g

[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

2024-08-27 Thread Kim Gräsman via cfe-commits
https://github.com/kimgr closed https://github.com/llvm/llvm-project/pull/97197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] RFC: [cmake] Export CLANG_RESOURCE_DIR in ClangConfig (PR #97197)

2024-08-27 Thread Kim Gräsman via cfe-commits
kimgr wrote: https://github.com/llvm/llvm-project/pull/103388 was merged, I think I know how to work this now. Thanks everyone for helping! https://github.com/llvm/llvm-project/pull/97197 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

RE: cfe-commits Digest, Vol 206, Issue 2070

2024-08-27 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 20:21:39 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2070?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2071

2024-08-27 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 20:46:37 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2071?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2072

2024-08-27 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 20:56:04 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2072?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2073

2024-08-27 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 21:20:44 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2073?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

RE: cfe-commits Digest, Vol 206, Issue 2074

2024-08-27 Thread via cfe-commits
7762 -Original Message- From: Sent: Mon, 26 Aug 2024 22:11:52 -0700 To: 5103850...@txt.att.net Subject: =?utf-8?q?cfe-commits_Digest=2C_Vol_206=2C_Issue_2074?= >Send cfe-commits mailing list submissions to > cfe-commits@lists.llvm.org > >To subscribe or unsubscribe via the

  1   2   3   4   5   6   >