Page MenuHomePhabricator

JohelEGP (Johel Ernesto Guerrero Peña)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 25 2020, 6:33 PM (143 w, 2 h)

Recent Activity

Nov 29 2022

JohelEGP added inline comments to D131395: [libc++] Implement `lexicographical_compare_three_way`.
Nov 29 2022, 4:14 PM · Restricted Project, Restricted Project

Oct 1 2022

JohelEGP added a comment to D134874: [Concepts] Fix Concepts on generic lambda in a VarTemplateSpecDecl.

I can confirm that, with this patch, Clang successfully compiles my actual code base.

Oct 1 2022, 9:28 AM · Restricted Project, Restricted Project

Aug 19 2022

JohelEGP requested changes to D131388: [docs] Add "Standard C++ Modules".
Aug 19 2022, 5:00 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
JohelEGP added inline comments to D131395: [libc++] Implement `lexicographical_compare_three_way`.
Aug 19 2022, 3:18 AM · Restricted Project, Restricted Project

Aug 18 2022

JohelEGP added inline comments to D131395: [libc++] Implement `lexicographical_compare_three_way`.
Aug 18 2022, 7:51 AM · Restricted Project, Restricted Project
JohelEGP added inline comments to D131395: [libc++] Implement `lexicographical_compare_three_way`.
Aug 18 2022, 7:24 AM · Restricted Project, Restricted Project

Aug 16 2022

JohelEGP added inline comments to D131395: [libc++] Implement `lexicographical_compare_three_way`.
Aug 16 2022, 1:47 PM · Restricted Project, Restricted Project

Jul 16 2022

JohelEGP accepted D129942: [clang-format] Indent TT_CtorInitializerColon after requires clauses.
Jul 16 2022, 3:53 PM · Restricted Project, Restricted Project, Restricted Project
JohelEGP accepted D129940: [clang-format] Fix misannotation of colon in presence of requires clause.
Jul 16 2022, 3:53 PM · Restricted Project, Restricted Project, Restricted Project

Mar 2 2022

JohelEGP accepted D120806: [clang-format] Recognize "if consteval"..

My few cases format consistently with the condition case:

diff
diff --git a/tests/integration/test.waarudo.io.dynamic.cpp b/tests/integration/test.waarudo.io.dynamic.cpp
index be5a626..e1265b9 100644
--- a/tests/integration/test.waarudo.io.dynamic.cpp
+++ b/tests/integration/test.waarudo.io.dynamic.cpp
@@ -21,7 +21,7 @@ public:
   }
Mar 2 2022, 8:18 AM · Restricted Project, Restricted Project, Restricted Project
JohelEGP added a comment to D120806: [clang-format] Recognize "if consteval"..

LFTM

Do we also need to consider this in the context of "AllowShortIfStatments"? (that would be in a different review in my view)

Mar 2 2022, 5:35 AM · Restricted Project, Restricted Project, Restricted Project

Feb 22 2022

JohelEGP accepted D120278: [clang-format] Don't break semi after requires clause regardless of the chosen style.
Feb 22 2022, 4:53 AM · Restricted Project, Restricted Project

Feb 16 2022

JohelEGP accepted D119893: [clang-format] Fixed handling of requires clauses followed by attributes.

Thank you.

Feb 16 2022, 5:01 AM · Restricted Project, Restricted Project

Dec 20 2021

JohelEGP added a comment to D116007: [clang-format] Fix BreakBeforeBraces: Attach ignored with trailing requires-expression of function..

Thank you for doing this.

Dec 20 2021, 6:11 AM · Restricted Project

Dec 28 2020

JohelEGP accepted D93839: [clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates.
Dec 28 2020, 1:27 PM · Restricted Project, Restricted Project

Dec 27 2020

JohelEGP requested changes to D93839: [clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates.
Dec 27 2020, 5:07 PM · Restricted Project, Restricted Project
JohelEGP added a comment to D93839: [clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates.

I have another case:
.clang-format:

BraceWrapping:
  AfterStruct: true
  SplitEmptyRecord: true
BreakBeforeBraces: Custom
Dec 27 2020, 5:06 PM · Restricted Project, Restricted Project
JohelEGP accepted D93839: [clang-format] PR48594 BraceWrapping: SplitEmptyRecord ignored for templates.

Thank you.

Dec 27 2020, 11:59 AM · Restricted Project, Restricted Project

Dec 4 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Yes, here's my reply: https://bugs.llvm.org/show_bug.cgi?id=47161#c2.

Dec 4 2020, 10:27 PM · Restricted Project, Restricted Project
JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

I was a bit late, but thanks for everything!

Dec 4 2020, 10:10 AM · Restricted Project, Restricted Project

Oct 20 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Could you do a rebase? The patch no longer applies:

Oct 20 2020, 6:23 PM · Restricted Project, Restricted Project

Aug 13 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

This is actually failing in the handling of parsing the <> in (parseAngle() actually parseBrace() inside of that), it is not really concepts specific except it may be seen now because of the presence of the ;

Aug 13 2020, 6:07 PM · Restricted Project, Restricted Project

Aug 10 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

I found another case. See how everything after the requires-clause is indented for constructors with just the constructor's name (it works otherwise, maybe because it looks like a function).

class [[nodiscard]] data_t
{
public:
    template <std::ranges::input_range R>
        requires std::same_as<std::ranges::range_value_t<R>, flippable_tile_id>
        /*explicit*/ data_t(R&& ids, const format_t f = encoding_t::csv)
          : format_t{f}, tile_ids_{ranges::to_vector(std::forward<R>(ids))}
        {
        }
Aug 10 2020, 5:46 PM · Restricted Project, Restricted Project

Jul 8 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Ah, that makes sense. The very definition of Allman is to always break before braces. I suppose I'll need to use BreakBeforeBraces: Custom and BraceWrapping:. I did some testing and noticed that the weird format comes with any of these:

Jul 8 2020, 12:32 AM · Restricted Project, Restricted Project

Jul 6 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Yes, it's valid C++ (is my hope). It's from WIP code, which I made available to show you: https://github.com/johelegp/jge.

Jul 6 2020, 4:11 PM · Restricted Project, Restricted Project

Jul 5 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Another weird formatting when direct-initializing a variable with a non-parenthesized requires-expression:

Jul 5 2020, 6:39 PM · Restricted Project, Restricted Project

Jul 4 2020

JohelEGP requested changes to D79773: [clang-format] Improve clang-formats handling of concepts.

Thank you. Everything I reported works fine now.

Jul 4 2020, 8:30 PM · Restricted Project, Restricted Project

Jul 1 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Using parameter packs within non-parenthesized requires-clauses results in weird formatting:

template <std::semiregular F, std::semiregular... Args>
    requires std::invocable < F, std::invoke_result_t<Args>
... > struct constant;

vs

template <std::semiregular F, std::semiregular... Args>
    requires(std::invocable<F, std::invoke_result_t<Args>...>)
struct constant;
Jul 1 2020, 7:58 PM · Restricted Project, Restricted Project
JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.

Just so I'm clear for this and your Allman coment would you show me what you are seeing and what you expect to see? just so I understand.

Jul 1 2020, 11:54 AM · Restricted Project, Restricted Project

Jun 30 2020

JohelEGP added a comment to D79773: [clang-format] Improve clang-formats handling of concepts.
constexpr plane(const plane& other) noexcept(
    (detail::default_allocator_is_nothrow &&
     std::is_nothrow_copy_constructible_v<T>)) requires(std::copyable<T>)
  : plane{to1d(other), other.sz.w}
{
}

Without the parentheses in trailing requires-clauses, all code following the constructor initializer list is further indented.

Jun 30 2020, 4:50 PM · Restricted Project, Restricted Project

Jun 25 2020

JohelEGP requested changes to D79773: [clang-format] Improve clang-formats handling of concepts.

BreakBeforeBraces: Allman isn't respected.

template <class D, class U, class Rep2>
friend constexpr auto
operator*(const size2d& l, const units::quantity<D, U, Rep2>& r) noexcept(
    noexcept(l.w* r)) requires(requires { l.w* r; }) //
{
    return size2d<decltype(l.w() * r)>{l.w * r, l.h * r};
}

When a trailing requires-clause is right before the function body, its opening brace should go on its own line, as dictated by my config file.

Jun 25 2020, 7:08 PM · Restricted Project, Restricted Project