[clang] [clang-repl] [codegen] Reduce the state in TBAA. NFC for static compilation. (PR #98138)

2024-07-27 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Hi @AaronBallman, could we move that forward? https://github.com/llvm/llvm-project/pull/98138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Reapply "[Clang] Implement resolution for CWG1835 (#92957, #98547)" (PR #100425)

2024-07-27 Thread Matheus Izvekov via cfe-commits
@@ -698,13 +685,15 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo, if (ErrorRecoveryLookup) return true; +#if 0 // If we didn't find anything during our lookup, try again with // ordinary name lookup, which can help us produce bette

[clang] [libcxx] Reapply "[Clang] Implement resolution for CWG1835 (#92957, #98547)" (PR #100425)

2024-07-27 Thread Matheus Izvekov via cfe-commits
@@ -767,6 +757,7 @@ bool Sema::BuildCXXNestedNameSpecifier(Scope *S, NestedNameSpecInfo &IdInfo, else Diag(IdInfo.IdentifierLoc, diag::err_undeclared_var_use) << IdInfo.Identifier; +#endif mizvekov wrote: You should probably remove these before

[clang] [CMake][Fuchsia] Include libunwind and libc++abi in baremetal build (PR #100908)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Petr Hosek (petrhosek) Changes These are needed for baremetal targets as well. --- Full diff: https://github.com/llvm/llvm-project/pull/100908.diff 1 Files Affected: - (modified) clang/cmake/caches/Fuchsia-stage2.cmake (+34-8) ``

[clang] [CMake][Fuchsia] Include libunwind and libc++abi in baremetal build (PR #100908)

2024-07-27 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/100908 These are needed for baremetal targets as well. >From 5177b4ac9ce9d1b45e80e0613e1cb3363e73bd39 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sat, 27 Jul 2024 17:10:01 -0700 Subject: [PATCH] [CMake][Fuchsia]

[clang] [clang-repl] [codegen] Reduce the state in TBAA. NFC for static compilation. (PR #98138)

2024-07-27 Thread Jeaye Wilkerson via cfe-commits
jeaye wrote: Thanks, Vassil! I'm following up to confirm that this does fix the hard crash I was seeing. Really hoping we can get this merged. https://github.com/llvm/llvm-project/pull/98138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-27 Thread Max Coplan via cfe-commits
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl Message-ID: In-Reply-To: https://github.com/vegerot converted_to_draft https://github.com/llvm/llvm-project/pull/97926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mai

[clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-27 Thread Max Coplan via cfe-commits
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl Message-ID: In-Reply-To: @@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT, _Traits>::__parse_character_escape( if (__hd == -1) __throw_regex_error(); __sum = 16 * __sum + static_cast(__hd); - // fall

[clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-27 Thread Max Coplan via cfe-commits
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl Message-ID: In-Reply-To: https://github.com/vegerot edited https://github.com/llvm/llvm-project/pull/97926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-27 Thread Max Coplan via cfe-commits
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl Message-ID: In-Reply-To: @@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT, _Traits>::__parse_character_escape( if (__hd == -1) __throw_regex_error(); __sum = 16 * __sum + static_cast(__hd); - // fall

[clang] Revert "Reland [clang][ASTImport] Add support for import of empty records" (PR #100903)

2024-07-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/100903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Reland [clang][ASTImport] Add support for import of empty records" (PR #100903)

2024-07-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/100903 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "Reland [clang][ASTImport] Add support for import of empty records" (PR #100903)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Michael Buch (Michael137) Changes This reverts commit 88e5206f2c96a34e23a4d63f0a38afb2db044f0a. The original change went in a while ago (last year) in https://reviews.llvm.org/D145057. The specific reason I'm proposing a revert is that th

[clang] Revert "Reland [clang][ASTImport] Add support for import of empty records" (PR #100903)

2024-07-27 Thread Michael Buch via cfe-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/100903 This reverts commit 88e5206f2c96a34e23a4d63f0a38afb2db044f0a. The original change went in a while ago (last year) in https://reviews.llvm.org/D145057. The specific reason I'm proposing a revert is that this

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-07-27 Thread Matheus Izvekov via cfe-commits
@@ -5346,7 +5346,6 @@ static EvalStmtResult EvaluateStmt(StmtResult &Result, EvalInfo &Info, const Expr *RetExpr = cast(S)->getRetValue(); FullExpressionRAII Scope(Info); if (RetExpr && RetExpr->isValueDependent()) { - EvaluateDependentExpr(RetExpr, Info); ---

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-07-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Avoid crashes in the stream checker (PR #100901)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (vabridgers) Changes This change avoids crashes in the stream checker when bifurcating the analysis state produces a non-null return value for opening a stream and does not produces a null return value because of co

[clang] [analyzer] Avoid crashes in the stream checker (PR #100901)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (vabridgers) Changes This change avoids crashes in the stream checker when bifurcating the analysis state produces a non-null return value for opening a stream and does not produces a null return value because of constraints found du

[clang] [analyzer] Avoid crashes in the stream checker (PR #100901)

2024-07-27 Thread via cfe-commits
https://github.com/vabridgers created https://github.com/llvm/llvm-project/pull/100901 This change avoids crashes in the stream checker when bifurcating the analysis state produces a non-null return value for opening a stream and does not produces a null return value because of constraints fou

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-07-27 Thread Matheus Izvekov via cfe-commits
@@ -5399,11 +5434,85 @@ static QualType GetImplicitObjectParameterType(ASTContext &Context, return Context.getLValueReferenceType(RawType); } +static TemplateDeductionResult FinishTemplateArgumentDeduction( +Sema &S, FunctionTemplateDecl *FTD, int ArgIdx, QualType P, Qu

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-07-27 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @MaskRay the latest version fixes libc++ regressions. Also abseil-cpp builds correctly on MacOS, according to those instructions. https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag updated https://github.com/llvm/llvm-project/pull/99564 >From 6b7ec7c95df16de5eb0fecf2d69befb5461d98a5 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Thu, 18 Jul 2024 18:48:47 +0300 Subject: [PATCH 1/7] clang/sema: disallow ownership_returns for functions that r

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-07-27 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/100692 >From 89e016886fd87ab54856ed61a0a419d25f7df9e5 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Wed, 24 Jul 2024 03:59:41 -0300 Subject: [PATCH] [clang] check deduction consistency when partial ordering fu

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
njames93 wrote: @5chmidti I decided to run this version of the check on llvm and clang https://gist.github.com/njames93/6f8863573972cb07c388ac19e8a20467 Seems like most of the warnings detected are when we are deliberately exceeding the bounds of a range when we know its a slice of a bigger ran

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/99917 >From c79951fdc4f866413f83a94b1eaa16f3ffb10aa4 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 23 Jul 2024 10:59:45 +0100 Subject: [PATCH] Create a new check to look for mis-use in calls that take iterat

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

2024-07-27 Thread Eli Friedman via cfe-commits
@@ -1185,6 +1189,9 @@ Currently, only the following parameter attributes are defined: value should be sign-extended to the extent required by the target's ABI (which is usually 32-bits) by the caller (for a parameter) or the callee (for a return value). +``noext``

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

2024-07-27 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Shafik contacted me offline about a libc++ test failure this PR causes. The test in question is `mem.res.eq/not_equal_pass.cpp`. I reduced it down to the following: ```cpp struct memory_resource { virtual ~memory_resource(); bool is_equal(const memory_resource &) const noexcep

[clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

2024-07-27 Thread Mark de Wever via cfe-commits
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl Message-ID: In-Reply-To: @@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT, _Traits>::__parse_character_escape( if (__hd == -1) __throw_regex_error(); __sum = 16 * __sum + static_cast(__hd); - // fall

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
njames93 wrote: Added some detection for trying to advance past the end or before the start of a range. https://github.com/llvm/llvm-project/pull/99917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/99917 >From e1c3086cf28f7c075d631c128c984bc25109cd81 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 23 Jul 2024 10:59:45 +0100 Subject: [PATCH] Create a new check to look for mis-use in calls that take iterat

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
yronglin wrote: Thanks for the review! Yes, there are three regressions, I've revert back the handling of an expression, and enable new interpreter in these three test. https://github.com/llvm/llvm-project/pull/100761 ___ cfe-commits mailing list cfe-

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
@@ -14,33 +14,29 @@ struct DelBase { constexpr DelBase() = delete; // expected-note {{'DelBase' has been explicitly marked deleted here}} yronglin wrote: Removed 2nd bullet. https://github.com/llvm/llvm-project/pull/100761 ___

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
@@ -122,22 +122,20 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + unsigned BaseIndex = 0; + const CXXRecordDecl *CD = dyn_cast(R->getDecl()); + for (const CXXBaseS

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

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

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
@@ -122,22 +122,20 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + unsigned BaseIndex = 0; + const CXXRecordDecl *CD = dyn_cast(R->getDecl()); + for (const CXXBaseS

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
@@ -122,22 +122,20 @@ static bool CheckFieldsInitialized(InterpState &S, SourceLocation Loc, } // Check Fields in all bases - for (const Record::Base &B : R->bases()) { + unsigned BaseIndex = 0; + const CXXRecordDecl *CD = dyn_cast(R->getDecl()); yrong

[clang-tools-extra] [clang-tidy] Only expand macros in modernize-use-std-format/print (PR #97911)

2024-07-27 Thread Mike Crowe via cfe-commits
mikecrowe wrote: @5chmidti wrote: > It'll be 1 week+ before I am back at my main machine to take a better look at > the macro question. Maybe this can just be landed, without that distinction. Thanks for letting me know and thanks for the review. I've pushed a new version to this PR with the t

[clang] [Clang][Interp] Fix the location of uninitialized base warning (PR #100761)

2024-07-27 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/100761 >From eb237d1b6434c16366f8095f47af1456cb776a27 Mon Sep 17 00:00:00 2001 From: yronglin Date: Fri, 26 Jul 2024 23:09:42 +0800 Subject: [PATCH 1/2] [Clang][Interp] Fix the location of uninitialized base warning

[clang-tools-extra] [clang-tidy] Only expand macros in modernize-use-std-format/print (PR #97911)

2024-07-27 Thread Mike Crowe via cfe-commits
https://github.com/mikecrowe updated https://github.com/llvm/llvm-project/pull/97911 >From f6c1a231681092189a621e2bc6af97300b2a7bfa Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Wed, 12 Jun 2024 21:06:26 +0100 Subject: [PATCH 1/6] [clang-tidy] Only expand macros in modernize-use-std-format/

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Pavel Skripkin via cfe-commits
https://github.com/pskrgag updated https://github.com/llvm/llvm-project/pull/99564 >From 6b7ec7c95df16de5eb0fecf2d69befb5461d98a5 Mon Sep 17 00:00:00 2001 From: Pavel Skripkin Date: Thu, 18 Jul 2024 18:48:47 +0300 Subject: [PATCH 1/6] clang/sema: disallow ownership_returns for functions that r

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Aaron Ballman via cfe-commits
@@ -231,6 +231,10 @@ Crash and bug fixes Improvements +- Improved the handling of the `ownership_returns` attribute. Now, Clang reports an + error if the attribute is attached to a function that returns a non-pointer value. AaronBallman wrote:

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Just a few minor nits, otherwise LGTM https://github.com/llvm/llvm-project/pull/99564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Aaron Ballman via cfe-commits
@@ -1481,6 +1481,15 @@ static void handleOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) { break; } + // Allow only pointers to be return type for functions with ownership_returns + // attribute. This matches with current OwnershipAttr::Takes semantics + if (K

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Aaron Ballman via cfe-commits
@@ -3330,6 +3330,8 @@ def err_attribute_invalid_implicit_this_argument : Error< "%0 attribute is invalid for the implicit this argument">; def err_ownership_type : Error< "%0 attribute only applies to %select{pointer|integer}1 arguments">; +def err_ownership_takes_return_ty

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/99564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Initialize DiagnoseHLSLAvailability members (PR #100778)

2024-07-27 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/100778 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-07-27 Thread Doug Wyatt via cfe-commits
@@ -4699,7 +4699,7 @@ class FunctionEffect { private: LLVM_PREFERRED_TYPE(Kind) - unsigned FKind : 3; + uint8_t FKind : 3; dougsonos wrote: That PR has been merged. https://github.com/llvm/llvm-project/pull/99656 _

[clang] [clang][dataflow] Fix bug in `buildContainsExprConsumedInDifferentBlock()`. (PR #100874)

2024-07-27 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/100874 This was missing a call to `ignoreCFGOmittedNodes()`. As a result, the function would erroneously conclude that a block did not contain an expression consumed in a different block if the expression in questi

[clang] [clang][dataflow] Fix bug in `buildContainsExprConsumedInDifferentBlock()`. (PR #100874)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes This was missing a call to `ignoreCFGOmittedNodes()`. As a result, the function would erroneously conclude that a block did not contain an expression consumed in a different block if the expression in question wa

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#100873 https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread Jacek Caban via cfe-commits
cjacek wrote: /cherry-pick ea98dc8b8f508b8393651992830e5e51d3876728 https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread Jacek Caban via cfe-commits
https://github.com/cjacek milestoned https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread via cfe-commits
llvmbot wrote: >/cherry-pick ea98dc8b8f508b8393651992830e5e51d3876728 Error: Command failed due to missing milestone. https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread Jacek Caban via cfe-commits
cjacek wrote: Thanks. I created #100872 for dllexport fix. https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread Jacek Caban via cfe-commits
cjacek wrote: /cherry-pick ea98dc8b8f508b8393651992830e5e51d3876728 https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Extend support for specifying languages and version in add_new_check.py (PR #100129)

2024-07-27 Thread Nathan James via cfe-commits
https://github.com/njames93 closed https://github.com/llvm/llvm-project/pull/100129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 154d00d - Extend support for specifying languages and version in add_new_check.py (#100129)

2024-07-27 Thread via cfe-commits
Author: Nathan James Date: 2024-07-27T14:13:21+01:00 New Revision: 154d00d5d0416c42388d6e82cac96fbc091101d2 URL: https://github.com/llvm/llvm-project/commit/154d00d5d0416c42388d6e82cac96fbc091101d2 DIFF: https://github.com/llvm/llvm-project/commit/154d00d5d0416c42388d6e82cac96fbc091101d2.diff

[clang-tools-extra] Extend support for specifying languages and version in add_new_check.py (PR #100129)

2024-07-27 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/100129 >From b76a506ad12f3923dbca13063b66bb83a336f0c2 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 23 Jul 2024 15:24:52 +0100 Subject: [PATCH] Extend support for specifying languages and version in add_new_

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
@@ -0,0 +1,756 @@ +//===--- IncorrectIteratorsCheck.cpp - clang-tidy -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang-tools-extra] Create a new check to look for mis-use in calls that take iterators (PR #99917)

2024-07-27 Thread Nathan James via cfe-commits
https://github.com/njames93 updated https://github.com/llvm/llvm-project/pull/99917 >From bbf32f3ca89e8950d82fe920b232fee4b82cb43e Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 23 Jul 2024 10:59:45 +0100 Subject: [PATCH] Create a new check to look for mis-use in calls that take iterat

[clang] ea98dc8 - [clang][ARM64EC] Add support for hybrid_patchable attribute. (#99478)

2024-07-27 Thread via cfe-commits
Author: Jacek Caban Date: 2024-07-27T14:29:05+02:00 New Revision: ea98dc8b8f508b8393651992830e5e51d3876728 URL: https://github.com/llvm/llvm-project/commit/ea98dc8b8f508b8393651992830e5e51d3876728 DIFF: https://github.com/llvm/llvm-project/commit/ea98dc8b8f508b8393651992830e5e51d3876728.diff L

[clang] [clang][ARM64EC] Add support for hybrid_patchable attribute. (PR #99478)

2024-07-27 Thread Jacek Caban via cfe-commits
https://github.com/cjacek closed https://github.com/llvm/llvm-project/pull/99478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CTAD][NFC] Unify transformTemplateParameter() (PR #100865)

2024-07-27 Thread Younan Zhang via cfe-commits
zyn0217 wrote: The flaky test `basic-project.test` failure is unrelated -- I didn't rebase my branch onto 88549cf4 https://github.com/llvm/llvm-project/pull/100865 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [Clang][CTAD][NFC] Unify transformTemplateParameter() (PR #100865)

2024-07-27 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/100865 >From 13724c6cd47c17b92b57f04436c544bd9d681070 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sat, 27 Jul 2024 18:52:23 +0800 Subject: [PATCH 1/2] [Clang][CTAD][NFC] Unify transformTemplateParameter() We end

[clang] [Clang][CTAD][NFC] Unify transformTemplateParameter() (PR #100865)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes We ended up having two transformTemplateParameter() after CTAD for type aliases was landed. This patch cleans them up and allows them to share one implementation. --- Full diff: https://github.com/llvm/llvm

[clang] [Clang][CTAD][NFC] Unify transformTemplateParameter() (PR #100865)

2024-07-27 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/100865 We ended up having two transformTemplateParameter() after CTAD for type aliases was landed. This patch cleans them up and allows them to share one implementation. >From 13724c6cd47c17b92b57f04436c544bd9d681070

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

2024-07-27 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/100757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-07-27 Thread Phoebe Wang via cfe-commits
@@ -1185,6 +1189,9 @@ Currently, only the following parameter attributes are defined: value should be sign-extended to the extent required by the target's ABI (which is usually 32-bits) by the caller (for a parameter) or the callee (for a return value). +``noext``

[clang] [clang-format] Fix the indent of the ternary operator when AlignOperands and BreakBeforeTernaryOperators is specified. (PR #100860)

2024-07-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Hirofumi Nakamura (hnakamura5) Changes Trying to fix https://github.com/llvm/llvm-project/issues/98559 . This PR modifies the ad-hoc tweaks introduced by https://reviews.llvm.org/D50078 . The change is limited to the case `AlignOpe

[clang] [clang-format] Fix the indent of the ternary operator when AlignOperands and BreakBeforeTernaryOperators is specified. (PR #100860)

2024-07-27 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 created https://github.com/llvm/llvm-project/pull/100860 Trying to fix https://github.com/llvm/llvm-project/issues/98559 . This PR modifies the ad-hoc tweaks introduced by https://reviews.llvm.org/D50078 . The change is limited to the case `AlignOperands ` and `B

[clang] [clang codegen] Emit int TBAA metadata on more FP math libcalls (PR #100302)

2024-07-27 Thread via cfe-commits
https://github.com/vfdff updated https://github.com/llvm/llvm-project/pull/100302 >From c750234674531788ee26958954a5f9a6b59ea866 Mon Sep 17 00:00:00 2001 From: zhongyunde 00443407 Date: Tue, 23 Jul 2024 23:10:42 -0400 Subject: [PATCH 1/3] [clang codegen] Emit int TBAA metadata on more FP math

[clang] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-27 Thread Pavel Skripkin via cfe-commits
pskrgag wrote: @AaronBallman sorry for Saturday ping, but could you, please, take a look? https://github.com/llvm/llvm-project/pull/99564 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

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

2024-07-27 Thread Matt Arsenault via cfe-commits
@@ -1185,6 +1189,9 @@ Currently, only the following parameter attributes are defined: value should be sign-extended to the extent required by the target's ABI (which is usually 32-bits) by the caller (for a parameter) or the callee (for a return value). +``noext``