[clang] [Clang][Sema] Add a test for move ctor calling for a base class. NFC (PR #97164)

2024-07-19 Thread Pavel Samolysov via cfe-commits
samolisov wrote: Gentle ping. I've addressed all the comments (thank you, @vitalybuka). https://github.com/llvm/llvm-project/pull/97164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-19 Thread via cfe-commits
https://github.com/antangelo updated https://github.com/llvm/llvm-project/pull/98788 >From 3f0dfdfdbad3921da42be23fb0bbf1f1f00a42fb Mon Sep 17 00:00:00 2001 From: antangelo Date: Sat, 1 Jun 2024 13:15:40 -0400 Subject: [PATCH 1/4] [clang] Implement P2582R1: CTAD from inherited constructors --

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-19 Thread via cfe-commits
@@ -2157,17 +2157,19 @@ CXXDeductionGuideDecl *CXXDeductionGuideDecl::Create( ASTContext &C, DeclContext *DC, SourceLocation StartLoc, ExplicitSpecifier ES, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, SourceLocation EndLocation, CXXConstr

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-19 Thread via cfe-commits
@@ -980,19 +986,69 @@ getRHSTemplateDeclAndArgs(Sema &SemaRef, TypeAliasTemplateDecl *AliasTemplate) { return {Template, AliasRhsTemplateArgs}; } +// Build the type for a deduction guide generated from an inherited constructor +// [over.match.class.deduct]p1.10: +// ... the

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-19 Thread via cfe-commits
@@ -1254,8 +1341,221 @@ void DeclareImplicitDeductionGuidesForTypeAlias( ->getDeductionCandidateKind() == DeductionCandidate::Aggregate) continue; -BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc); +BuildDeductionGuideForTypeAlias(SemaR

[clang] c248d05 - [Clang] make SVE types known to device targets too (#99446)

2024-07-19 Thread via cfe-commits
Author: Emanuele Rocca Date: 2024-07-19T08:25:38+01:00 New Revision: c248d05c6807baba34ff4fb254176e300922ea72 URL: https://github.com/llvm/llvm-project/commit/c248d05c6807baba34ff4fb254176e300922ea72 DIFF: https://github.com/llvm/llvm-project/commit/c248d05c6807baba34ff4fb254176e300922ea72.diff

[clang] [Clang] make SVE types known to device targets too (PR #99446)

2024-07-19 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm closed https://github.com/llvm/llvm-project/pull/99446 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] make SVE types known to device targets too (PR #99446)

2024-07-19 Thread via cfe-commits
github-actions[bot] wrote: @ema Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build, you

[clang] [clang] Fix static analyzer concerns in #embed code (PR #99331)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/99331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c813667 - [clang] Fix static analyzer concerns in #embed code (#99331)

2024-07-19 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2024-07-19T09:33:35+02:00 New Revision: c81366709574bb95bad86011a44e80a7f97f2c56 URL: https://github.com/llvm/llvm-project/commit/c81366709574bb95bad86011a44e80a7f97f2c56 DIFF: https://github.com/llvm/llvm-project/commit/c81366709574bb95bad86011a44e80a7f97f2c

[clang] [clang] Limit alignment for emitted vectors (PR #98629)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: Closing since https://github.com/llvm/llvm-project/pull/99257 fixed the problem without side effects. Thank you very much @efriedma-quic https://github.com/llvm/llvm-project/pull/98629 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [clang][dataflow] Handle CXXInheritedCtorInitExpr in ResultObjectVisitor. (PR #99616)

2024-07-19 Thread Pasquale Riello via cfe-commits
https://github.com/Pask00 created https://github.com/llvm/llvm-project/pull/99616 `CXXInheritedCtorInitExpr` is another of the node kinds that should be considered an "original initializer". An assertion failure in `assert(Children.size() == 1)` happens without this fix. >From 0c26f09117baa3

[clang] [clang][dataflow] Handle CXXInheritedCtorInitExpr in ResultObjectVisitor. (PR #99616)

2024-07-19 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] [clang][dataflow] Handle CXXInheritedCtorInitExpr in ResultObjectVisitor. (PR #99616)

2024-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis @llvm/pr-subscribers-clang Author: Pasquale Riello (Pask00) Changes `CXXInheritedCtorInitExpr` is another of the node kinds that should be considered an "original initializer". An assertion failure in `assert(Children.size() == 1)` happ

[clang] [ExprConstant] Handle shift overflow the same way as other kinds of overflow (PR #99579)

2024-07-19 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I think I am bit surprised more tests are not affected by this change considering you modified the handling in several places. It seems we should be adding more test coverage with this change. https://github.com/llvm/llvm-project/pull/99579

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-19 Thread Clement Courbet via cfe-commits
legrosbuffle wrote: Thanks for the comments. I went for a disabled-by-default option as that seems to be the consensus. https://github.com/llvm/llvm-project/pull/99477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] Fix diagnostics-dsym.test on mac-arm64 (PR #99399)

2024-07-19 Thread via cfe-commits
https://github.com/zeroomega closed https://github.com/llvm/llvm-project/pull/99399 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Authenticate function pointers in UBSan type checks (PR #99590)

2024-07-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 approved this pull request. https://github.com/llvm/llvm-project/pull/99590 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang-new][OpenMP] Add bitcode files for AMD GPU OpenMP (PR #96742)

2024-07-19 Thread Dominik Adamski via cfe-commits
@@ -333,6 +333,9 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args, StringRef Val = A->getValue(); CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val)); } + + const ToolChain &TC = getToolChain(); + TC.addClangTargetOptions(Args, CmdArgs, Actio

[clang] [flang] [Flang-new][OpenMP] Add bitcode files for AMD GPU OpenMP (PR #96742)

2024-07-19 Thread Dominik Adamski via cfe-commits
https://github.com/DominikAdamski edited https://github.com/llvm/llvm-project/pull/96742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libcxx] [libunwind] [llvm] [openmp] [cmake] switch to CMake's native `check_{compiler,linker}_flag` (PR #96171)

2024-07-19 Thread Ryan Prichard via cfe-commits
rprichard wrote: Sorry, I didn't notice the ping until just now. The CMake feature testing seems broken, on Android at least. Here's a representative error from `build/android-ndk-21-def-x86/CMakeFiles/CMakeError.log`: ``` Performing C++ SOURCE FILE Test CXX_SUPPORTS_NOSTDLIBXX_FLAG failed wi

[clang] Fix diagnostics-dsym.test on mac-arm64 (PR #99399)

2024-07-19 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida approved this pull request. Thank you for looking into & resolving this again! https://github.com/llvm/llvm-project/pull/99399 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] 39185da - [Clang][AArch64] Add missing SME/SVE2.1 feature macros (#98285)

2024-07-19 Thread via cfe-commits
Author: SpencerAbson Date: 2024-07-19T09:54:52+01:00 New Revision: 39185da16228efb4a09a30d6825a6f508c4755a3 URL: https://github.com/llvm/llvm-project/commit/39185da16228efb4a09a30d6825a6f508c4755a3 DIFF: https://github.com/llvm/llvm-project/commit/39185da16228efb4a09a30d6825a6f508c4755a3.diff

[clang] [Clang][AArch64] Add missing SME/SVE2.1 feature macros (PR #98285)

2024-07-19 Thread via cfe-commits
github-actions[bot] wrote: @SpencerAbson Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a b

[clang] [llvm] [openmp] [Clang][OpenMP] Add interchange directive (PR #93022)

2024-07-19 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur closed https://github.com/llvm/llvm-project/pull/93022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang-new][OpenMP] Add bitcode files for AMD GPU OpenMP (PR #96742)

2024-07-19 Thread Dominik Adamski via cfe-commits
DominikAdamski wrote: > > Would it be possible for you to investigate that? It really shouldn't be > > required if we can't help it. > > +1 Fixed in PR https://github.com/llvm/llvm-project/pull/99002 https://github.com/llvm/llvm-project/pull/96742 _

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-19 Thread Vikash Gupta via cfe-commits
vg0204 wrote: PING! https://github.com/llvm/llvm-project/pull/95750 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Ensure functions are anchored in the global namespace (for cert-err-33) (PR #99380)

2024-07-19 Thread via cfe-commits
https://github.com/matthew-f edited https://github.com/llvm/llvm-project/pull/99380 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [test][PAC][clang] Add missing tests against linux triples (PR #99482)

2024-07-19 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 closed https://github.com/llvm/llvm-project/pull/99482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-19 Thread Clement Courbet via cfe-commits
https://github.com/legrosbuffle updated https://github.com/llvm/llvm-project/pull/99477 >From b423b26cba90288912b3377c39ab4207c9fc95dc Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Thu, 18 Jul 2024 11:47:56 + Subject: [PATCH 1/2] [clang-tidy][cppcoreguidelines-missing-std-forward] Do

[clang] [llvm] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: None (yingopq) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/99615.diff 6 Files Affected: - (modified) clang/include/clang/Basic/CodeGenOptions.def (+2) - (modified) clang/include/clang/Driver/Options.td (+6-

[clang] [clang] Limit alignment for emitted vectors (PR #98629)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/98629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang-new][OpenMP] Add bitcode files for AMD GPU OpenMP (PR #96742)

2024-07-19 Thread Dominik Adamski via cfe-commits
@@ -8024,7 +8024,7 @@ def source_date_epoch : Separate<["-"], "source-date-epoch">, // CUDA Options //===--===// -let Visibility = [CC1Option] in { +let Visibility = [CC1Option, FC1Option] in { -

[clang] 2df9fd7 - Fix diagnostics-dsym.test on mac-arm64 (#99399)

2024-07-19 Thread via cfe-commits
Author: Haowei Date: 2024-07-19T00:03:12-07:00 New Revision: 2df9fd7edb73c1c2b27bda433ae0795bc8076dd3 URL: https://github.com/llvm/llvm-project/commit/2df9fd7edb73c1c2b27bda433ae0795bc8076dd3 DIFF: https://github.com/llvm/llvm-project/commit/2df9fd7edb73c1c2b27bda433ae0795bc8076dd3.diff LOG: F

[clang] e5df657 - [Sema] Fix assertion error in Sema::FindInstantiatedDecl (#96509)

2024-07-19 Thread via cfe-commits
Author: Alejandro Álvarez Ayllón Date: 2024-07-19T11:00:30+02:00 New Revision: e5df657bbf38f8fcd9dd8c9e79262ca184f2598b URL: https://github.com/llvm/llvm-project/commit/e5df657bbf38f8fcd9dd8c9e79262ca184f2598b DIFF: https://github.com/llvm/llvm-project/commit/e5df657bbf38f8fcd9dd8c9e79262ca184f

[clang] [Sema] Fix assertion error in Sema::FindInstantiatedDecl (PR #96509)

2024-07-19 Thread via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?=, Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: https://github.com/Sirraide closed https://github.com/llvm/llvm-project/pull/96509

[clang] [llvm] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-07-19 Thread via cfe-commits
https://github.com/yingopq created https://github.com/llvm/llvm-project/pull/99615 None >From 1ef0b65fd7adc7a588de6d818eb1e6ab532a3869 Mon Sep 17 00:00:00 2001 From: Ying Huang Date: Fri, 19 Jul 2024 04:19:09 -0400 Subject: [PATCH] [clang] Support -Wa, options -mmsa and -mno-msa --- clang/in

[clang] a1d77ca - [test][PAC][clang] Add missing tests against linux triples (#99482)

2024-07-19 Thread via cfe-commits
Author: Daniil Kovalev Date: 2024-07-19T09:47:47+03:00 New Revision: a1d77caaabbb5279b734c061dab36b2138ec476d URL: https://github.com/llvm/llvm-project/commit/a1d77caaabbb5279b734c061dab36b2138ec476d DIFF: https://github.com/llvm/llvm-project/commit/a1d77caaabbb5279b734c061dab36b2138ec476d.diff

[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

2024-07-19 Thread Clement Courbet via cfe-commits
@@ -129,15 +129,19 @@ void MissingStdForwardCheck::registerMatchers(MatchFinder *Finder) { unless(anyOf(hasAncestor(typeLoc()), hasAncestor(expr(hasUnevaluatedContext()); + auto StaticCast = cxxStaticCastExpr( + hasSourceExpression(declRefEx

[clang] [Clang][AArch64] Add missing SME/SVE2.1 feature macros (PR #98285)

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

[clang] [clang][analyzer] MmapWriteExecChecker improvements (PR #97078)

2024-07-19 Thread Balázs Kéri via cfe-commits
@@ -21,30 +21,55 @@ #include "clang/StaticAnalyzer/Core/PathSensitive/CallDescription.h" #include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h" #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" +#include "clang/StaticAnalyzer/Core/PathSensitive/Checker

[clang] [Clang][AArch64] Add missing SME/SVE2.1 feature macros (PR #98285)

2024-07-19 Thread via cfe-commits
https://github.com/SpencerAbson closed https://github.com/llvm/llvm-project/pull/98285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-19 Thread via cfe-commits
@@ -153,6 +153,8 @@ void g() { namespace cwg2881 { // cwg2881: 19 ready 2024-06-26 #if __cplusplus >= 202302L +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Winaccessible-base" Sirraide wrote: This seems rather strange to me. Why are we tu

[clang] [libcxx] [Clang] Add __common_type builtin (PR #99473)

2024-07-19 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/99473 >From 22513d53967ac32ae4112499c33c7c481b52b2fd Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 16 Jul 2024 14:48:10 +0200 Subject: [PATCH] [Clang] Add __common_type builtin --- clang/include/clang/

[clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

2024-07-19 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/99287 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [docs] [MSVC] Add sections on `__forceinline` and intrinsic behaviour differences between Clang and MSVC (PR #99426)

2024-07-19 Thread Max Winkler via cfe-commits
@@ -154,3 +154,133 @@ a hint suggesting how to fix the problem. As of this writing, Clang is able to compile a simple ATL hello world application. There are still issues parsing WRL headers for modern Windows 8 MaxEW707 wrote: Ya its on my todo list to clean t

[clang] 3b78dfa - [libc][libcxx] Support for building libc++ against LLVM libc (#99287)

2024-07-19 Thread via cfe-commits
Author: Petr Hosek Date: 2024-07-18T22:17:42-07:00 New Revision: 3b78dfa10c4b77581cc29c4510aefe919ae660ba URL: https://github.com/llvm/llvm-project/commit/3b78dfa10c4b77581cc29c4510aefe919ae660ba DIFF: https://github.com/llvm/llvm-project/commit/3b78dfa10c4b77581cc29c4510aefe919ae660ba.diff LO

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-19 Thread via cfe-commits
https://github.com/Sirraide commented: The CWG2881 tests LGTM except for one comment. Imo it’d be better for e.g. @Endilll to approve the pr as a whole since I don’t have much experience experience w/ managing DR-related tests. https://github.com/llvm/llvm-project/pull/97200 __

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

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

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-07-19 Thread Matheus Izvekov via cfe-commits
@@ -1254,8 +1341,221 @@ void DeclareImplicitDeductionGuidesForTypeAlias( ->getDeductionCandidateKind() == DeductionCandidate::Aggregate) continue; -BuildDeductionGuideForTypeAlias(SemaRef, AliasTemplate, F, Loc); +BuildDeductionGuideForTypeAlias(SemaR

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

2024-07-19 Thread via cfe-commits
https://github.com/Sirraide commented: The implementation in and of itself lgtm, except for two minor comments. That said, I have never heard of this attribute before, and our documentation seems to be rather lacking in this respect. Maybe @AaronBallman has an idea as to who might know more ab

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

2024-07-19 Thread via cfe-commits
https://github.com/Sirraide 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] [Clang][Sema] Disallow applying `onwership_returns` to functions that return non-pointers (PR #99564)

2024-07-19 Thread via cfe-commits
@@ -1308,6 +1308,10 @@ Crash and bug fixes Improvements +- Improved handling of ``__attribute__((ownership_returns(class, idx)))``. Now clang + reports an error if attribute is attached to a function that returns non-pointer + value Sirraide w

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

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

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99545)

2024-07-19 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: This still fails on Windows, see the buildkite errors. I believe the `filename(..., style::posix)` does not do what you intend, it actually assumes the inputs are in posix format, which is not the case on Windows. You want to use the native style https://github.com/llvm/ll

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99545)

2024-07-19 Thread Ilya Biryukov via cfe-commits
@@ -60,13 +75,29 @@ bool compileFromString(StringRef Code, StringRef Standard, StringRef FileName) { return Compiler.ExecuteAction(Action); } +std::string GetMetadata(json::Object *Event) { + std::string Metadata; + llvm::raw_string_ostream OS(Metadata); + if (json::Obje

[clang-tools-extra] [clangd] fix crash in include cleaner (PR #99514)

2024-07-19 Thread Yuxuan Shui via cfe-commits
https://github.com/yshui updated https://github.com/llvm/llvm-project/pull/99514 >From 6e5d8d8e04678d80b3139c6d6129da88df57c945 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 18 Jul 2024 16:07:45 +0100 Subject: [PATCH] [clangd] [IncludeCleaner] Use correct file ID --- clang-tools-extra/

[clang] [llvm] [CVP] Infer range return attribute (PR #99620)

2024-07-19 Thread Nikita Popov via cfe-commits
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/99620 We already infer this in IPSCCP, but as that pass runs very early, it cannot make use of simplifications (in particular post-inline simplifications). This fixes most cases from https://github.com/llvm/llvm-project/

[clang] [llvm] [CVP] Infer range return attribute (PR #99620)

2024-07-19 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/99620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Add __common_type builtin (PR #99473)

2024-07-19 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/99473 >From d11417d4addd7a5da5436e9fb406748a3059e17c Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 16 Jul 2024 14:48:10 +0200 Subject: [PATCH] [Clang] Add __common_type builtin --- clang/include/clang/

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99545)

2024-07-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/99545 >From 1047bd2fad795c33c6d228ed117b75025422ddb9 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 18 Jul 2024 17:52:10 + Subject: [PATCH 1/3] Reapply "Add source file name for template instantiations in -

[clang] [llvm] Reapply "Add source file name for template instantiations in -ftime-trace" (PR #99545)

2024-07-19 Thread Utkarsh Saxena via cfe-commits
@@ -60,13 +75,29 @@ bool compileFromString(StringRef Code, StringRef Standard, StringRef FileName) { return Compiler.ExecuteAction(Action); } +std::string GetMetadata(json::Object *Event) { + std::string Metadata; + llvm::raw_string_ostream OS(Metadata); + if (json::Obje

[clang] 5a45fed - [clang][NFC] Fix typo in `-Ofast` deprecation warning

2024-07-19 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2024-07-19T12:43:52+03:00 New Revision: 5a45fed188dce2ae6c4da23ba61c9b8df87f08f4 URL: https://github.com/llvm/llvm-project/commit/5a45fed188dce2ae6c4da23ba61c9b8df87f08f4 DIFF: https://github.com/llvm/llvm-project/commit/5a45fed188dce2ae6c4da23ba61c9b8df87f08f4.

[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

2024-07-19 Thread Vlad Serebrennikov via cfe-commits
@@ -442,6 +442,10 @@ def warn_drv_deprecated_arg : Warning< def warn_drv_deprecated_arg_no_relaxed_template_template_args : Warning< "argument '-fno-relaxed-template-template-args' is deprecated">, InGroup; +def warn_drv_deprecated_arg_ofast : Warning< + "argument '-Ofast'

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/99622 None >From 0fdc7b5dd850c522a7b485d7b6ba8a890739e604 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 19 Jul 2024 11:42:44 +0200 Subject: [PATCH] [clang] Add `std::span` to the default gsl pointer annotation

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/99622.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaAttr.cpp (+1) ``diff diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/99622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: Hmm. Can/should we also make these const? https://github.com/llvm/llvm-project/pull/99622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CVP] Infer range return attribute (PR #99620)

2024-07-19 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/99620 >From 23bdf84091020df916441b3ed2d2cc74f4059e37 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 19 Jul 2024 11:02:56 +0200 Subject: [PATCH] [CVP] Infer range return attribute We already infer this in IPSCCP,

[clang] [WIP][CLANG][AArch64] Add the modal 8 bit floating-point scalar type (PR #97277)

2024-07-19 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97277 >From fbeca5c357b1a5589757bbb2cac8208f8c9027ab Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Mon, 24 Jun 2024 09:59:24 + Subject: [PATCH 1/3] [WIP][CLANG][AArch64] Add the modal 8 bit float

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

2024-07-19 Thread Jacek Caban via cfe-commits
https://github.com/cjacek updated https://github.com/llvm/llvm-project/pull/99478 >From 31584aa0b95dd88df8518bf334fb3e24086b1bdb Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 3 May 2024 00:27:20 +0200 Subject: [PATCH] [clang][ARM64EC] Add support for hybrid_patchable attribute. --- cl

[clang] [clang] Fix assertion failure in `injectEmbedTokens` (PR #99624)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/99624 It seems for C++ lexer has some caching ability which doesn't expect injecting "new" tokens in the middle of the cache. Technically #embed tokens are not completely new since they have already been read from t

[clang] [CLANG][AArch64] Add the modal 8 bit floating-point scalar type (PR #97277)

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

[clang] [clang] Fix assertion failure in `injectEmbedTokens` (PR #99624)

2024-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes It seems for C++ lexer has some caching ability which doesn't expect injecting "new" tokens in the middle of the cache. Technically #embed tokens are not completely new since they have already bee

[clang] [clang] Fix assertion failure in `injectEmbedTokens` (PR #99624)

2024-07-19 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/99624 ___ 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-19 Thread Jacek Caban via cfe-commits
@@ -4027,6 +4030,12 @@ def SelectAny : InheritableAttr { let SimpleHandler = 1; } +def HybridPatchable : DeclOrTypeAttr, TargetSpecificAttr { + let Spellings = [Declspec<"hybrid_patchable">, GCC<"hybrid_patchable">]; cjacek wrote: Yes, I was thinking mostl

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

2024-07-19 Thread Jacek Caban via cfe-commits
@@ -477,6 +477,9 @@ def TargetELF : TargetSpec { def TargetELFOrMachO : TargetSpec { let ObjectFormats = ["ELF", "MachO"]; } +def TargetArm64EC : TargetSpec { cjacek wrote: I renamed it to `TargetWindowsArm64EC` in the new version. https://github.com/llvm/l

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-19 Thread Vlad Serebrennikov via cfe-commits
@@ -153,6 +153,8 @@ void g() { namespace cwg2881 { // cwg2881: 19 ready 2024-06-26 #if __cplusplus >= 202302L +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Winaccessible-base" Endilll wrote: Yes, we shouldn't be using `#pragma clang diagn

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

2024-07-19 Thread Jacek Caban via cfe-commits
@@ -4027,6 +4030,12 @@ def SelectAny : InheritableAttr { let SimpleHandler = 1; } +def HybridPatchable : DeclOrTypeAttr, TargetSpecificAttr { cjacek wrote: Right, I don't remember why I did it like that. I changed it in the new version. https://github.com/

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

2024-07-19 Thread Jacek Caban via cfe-commits
@@ -6886,6 +6886,13 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) { } } + if (HybridPatchableAttr *Attr = ND.getAttr()) { +if (!ND.isExternallyVisible()) { + S.Diag(Attr->getLocation(), + diag::warn_attribute_hybrid_patchable_n

[clang] [NFC] [Clang] Some core issues have changed status from tentatively ready -> ready / review (PR #97200)

2024-07-19 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/97200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-19 Thread Matt Arsenault via cfe-commits
@@ -1981,6 +1981,23 @@ static bool OpenCLBuiltinToAddr(Sema &S, unsigned BuiltinID, CallExpr *Call) { return false; } +// In OpenCL, __builtin_alloca_* should return a pointer to address space +// that corresponds to the stack address space i.e private address space. +stati

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-19 Thread Matt Arsenault via cfe-commits
@@ -1981,6 +1981,29 @@ static bool OpenCLBuiltinToAddr(Sema &S, unsigned BuiltinID, CallExpr *Call) { return false; } +// In OpenCL, __builtin_alloca_* should return a pointer to address space +// that corresponds to the stack address space i.e private address space. +stati

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-19 Thread Matt Arsenault via cfe-commits
@@ -1981,6 +1981,23 @@ static bool OpenCLBuiltinToAddr(Sema &S, unsigned BuiltinID, CallExpr *Call) { return false; } +// In OpenCL, __builtin_alloca_* should return a pointer to address space +// that corresponds to the stack address space i.e private address space. +stati

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread Haojian Wu via cfe-commits
hokein wrote: > Hmm. Can/should we also make these const? Yes, I will change them in a follow-up patch. https://github.com/llvm/llvm-project/pull/99622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] 42a7c42 - [clang] Add `std::span` to the default gsl pointer annotation list. (#99622)

2024-07-19 Thread via cfe-commits
Author: Haojian Wu Date: 2024-07-19T13:03:40+02:00 New Revision: 42a7c424b65050c5522e7055ab1486b572d86b69 URL: https://github.com/llvm/llvm-project/commit/42a7c424b65050c5522e7055ab1486b572d86b69 DIFF: https://github.com/llvm/llvm-project/commit/42a7c424b65050c5522e7055ab1486b572d86b69.diff LO

[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)

2024-07-19 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/99622 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e404eed - [clang] Add the `const` to all default lists in SemaAttr.cpp, NFC

2024-07-19 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-07-19T13:13:01+02:00 New Revision: e404eed24bebd5e3e04fc153eb330bae7d92107f URL: https://github.com/llvm/llvm-project/commit/e404eed24bebd5e3e04fc153eb330bae7d92107f DIFF: https://github.com/llvm/llvm-project/commit/e404eed24bebd5e3e04fc153eb330bae7d92107f.diff LO

[clang] [BoundsSafety] Add `-fexperimental-bounds-safety` CC1 and language option and use it to tweak `counted_by`'s semantics (PR #92623)

2024-07-19 Thread Dan Liew via cfe-commits
https://github.com/delcypher updated https://github.com/llvm/llvm-project/pull/92623 >From 4af270878cb243832f5aeb47c785efa263ba8c78 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Fri, 17 May 2024 17:15:48 -0700 Subject: [PATCH] [Bounds Safety] Add `-fexperimental-bounds-safety` CC1 and language

[clang] [BoundsSafety] Add `-fexperimental-bounds-safety` CC1 and language option and use it to tweak `counted_by`'s semantics (PR #92623)

2024-07-19 Thread Dan Liew via cfe-commits
delcypher wrote: @AaronBallman Thanks for approving. I've rebased this patch and tweaked the commit message to give the context for this change. Landing now. https://github.com/llvm/llvm-project/pull/92623 ___ cfe-commits mailing list cfe-commits@list

[clang] [clang][NFC] Move Bounds Safety Sema code to `SemaBoundsSafety.cpp` (PR #99330)

2024-07-19 Thread Dan Liew via cfe-commits
https://github.com/delcypher updated https://github.com/llvm/llvm-project/pull/99330 >From 951a2a3bdf2857e789cf484caf9c27633a715cc8 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Wed, 17 Jul 2024 14:53:52 +0100 Subject: [PATCH] [Bounds Safety][NFC] Move Bounds Safety Sema code to `SemaBoundsSaf

[clang] [clang][NFC] Move Bounds Safety Sema code to `SemaBoundsSafety.cpp` (PR #99330)

2024-07-19 Thread Dan Liew via cfe-commits
delcypher wrote: Rebased due to the conflict caused by landing #92623 https://github.com/llvm/llvm-project/pull/99330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 176bf50 - [clang][NFC] Move Bounds Safety Sema code to `SemaBoundsSafety.cpp` (#99330)

2024-07-19 Thread via cfe-commits
Author: Dan Liew Date: 2024-07-19T13:06:26+01:00 New Revision: 176bf50cd244505e38f8838a55568060dd3913e8 URL: https://github.com/llvm/llvm-project/commit/176bf50cd244505e38f8838a55568060dd3913e8 DIFF: https://github.com/llvm/llvm-project/commit/176bf50cd244505e38f8838a55568060dd3913e8.diff LOG:

[clang] [clang][NFC] Move Bounds Safety Sema code to `SemaBoundsSafety.cpp` (PR #99330)

2024-07-19 Thread Dan Liew via cfe-commits
https://github.com/delcypher closed https://github.com/llvm/llvm-project/pull/99330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix underlying type of EmbedExpr (PR #99050)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: > The one with alignof/typeof asserts for C++ (not for C) and I'd like to make > a fix and add this test in a separate PR Posted https://github.com/llvm/llvm-project/pull/99624 to fix the assertion https://github.com/llvm/llvm-project/pull/99050 ___

[clang] [libcxx] [Clang] Add __common_type builtin (PR #99473)

2024-07-19 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/99473 >From f034248ddb55ff2184662e0558c078f8109c0e00 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 16 Jul 2024 14:48:10 +0200 Subject: [PATCH] [Clang] Add __common_type builtin --- clang/include/clang/

[clang] [clang] Fix underlying type of EmbedExpr (PR #99050)

2024-07-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/99050 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose use of deprecated template alias (PR #97619)

2024-07-19 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/97619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7122b70 - [clang] Fix underlying type of EmbedExpr (#99050)

2024-07-19 Thread via cfe-commits
Author: Mariya Podchishchaeva Date: 2024-07-19T14:24:05+02:00 New Revision: 7122b70cfc8e23a069410215c363da76d842bda4 URL: https://github.com/llvm/llvm-project/commit/7122b70cfc8e23a069410215c363da76d842bda4 DIFF: https://github.com/llvm/llvm-project/commit/7122b70cfc8e23a069410215c363da76d842bd

[clang] [clang] Fix underlying type of EmbedExpr (PR #99050)

2024-07-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon closed https://github.com/llvm/llvm-project/pull/99050 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >