[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-10 Thread via cfe-commits
cor3ntin wrote: This breaks the build, I'll push a fix shortly. https://github.com/llvm/llvm-project/pull/91199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

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

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/91199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-09 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/91199 >From dbc1c6296e943a3b9eff921e762cca641734dd3d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 6 May 2024 14:55:54 +0200 Subject: [PATCH 1/2] [Clang] Implement __reference_converts_from_temporary This

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-09 Thread Erich Keane via cfe-commits
@@ -5627,6 +5627,77 @@ static bool EvaluateUnaryTypeTrait(Sema , TypeTrait UTT, static bool EvaluateBinaryTypeTrait(Sema , TypeTrait BTT, const TypeSourceInfo *Lhs, const TypeSourceInfo *Rhs, SourceLocation KeyLoc); +static ExprResult

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread Erich Keane via cfe-commits
@@ -1779,9 +1779,8 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, tok::kw___is_union, tok::kw___is_unsigned, tok::kw___is_void, - tok::kw___is_volatile, - tok::kw___reference_binds_to_temporary, -

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread via cfe-commits
@@ -1779,9 +1779,8 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, tok::kw___is_union, tok::kw___is_unsigned, tok::kw___is_void, - tok::kw___is_volatile, - tok::kw___reference_binds_to_temporary, -

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @cjdb said he had discarded the implementation of this intrinsic in  https://reviews.llvm.org/D135341 because he thought this was not as trivial as the `construct` version. Given that we have lost all the Phab histories, I think it'd be better to invite @cjdb to take a look at

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread Erich Keane via cfe-commits
@@ -1779,9 +1779,8 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, tok::kw___is_union, tok::kw___is_unsigned, tok::kw___is_void, - tok::kw___is_volatile, - tok::kw___reference_binds_to_temporary, -

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/91199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Seems reasonable to me. Curious about 1 change though. https://github.com/llvm/llvm-project/pull/91199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 3a3bdd8fb63ffb49741a9c32b3a5a789ce4c3b91 dbc1c6296e943a3b9eff921e762cca641734dd3d --

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes This completes the required language support for P2255R2. --- Full diff: https://github.com/llvm/llvm-project/pull/91199.diff 9 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+4-1) -

[clang] [Clang] Implement __reference_converts_from_temporary (PR #91199)

2024-05-06 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/91199 This completes the required language support for P2255R2. >From dbc1c6296e943a3b9eff921e762cca641734dd3d Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Mon, 6 May 2024 14:55:54 +0200 Subject: [PATCH]