Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang-format] Space after std::enable_if_t #105939

Open
louwers opened this issue Aug 24, 2024 · 1 comment
Open

[clang-format] Space after std::enable_if_t #105939

louwers opened this issue Aug 24, 2024 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior clang-format

Comments

@louwers
Copy link

louwers commented Aug 24, 2024

This doesn't look right. clang-format v18.1.8

    template <std::size_t I = 0, typename... Tp>
        inline typename std::enable_if_t <
        I<sizeof...(Tp), void> set(std::size_t i, std::tuple<Tp...> tuple, std::size_t tupleIndex) {
        if (tupleIndex == 0) {
            set(i, std::get<I>(tuple).a1);
        } else {
            set<I + 1, Tp...>(i, tuple, tupleIndex - 1);
        }
    }

There should not be a space between std::enable_if_t and the < after it.

@owenca owenca added the bug Indicates an unexpected problem or unintended behavior label Sep 22, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Sep 22, 2024

@llvm/issue-subscribers-bug

Author: Bart Louwers (louwers)

This doesn't look right. clang-format v18.1.8
    template &lt;std::size_t I = 0, typename... Tp&gt;
        inline typename std::enable_if_t &lt;
        I&lt;sizeof...(Tp), void&gt; set(std::size_t i, std::tuple&lt;Tp...&gt; tuple, std::size_t tupleIndex) {
        if (tupleIndex == 0) {
            set(i, std::get&lt;I&gt;(tuple).a1);
        } else {
            set&lt;I + 1, Tp...&gt;(i, tuple, tupleIndex - 1);
        }
    }

There should not be a space between std::enable_if_t and the &lt; after it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior clang-format
Projects
None yet
Development

No branches or pull requests

3 participants