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 mis-format braces of class template specializations #92350

Closed
owenca opened this issue May 16, 2024 · 1 comment · Fixed by #92352
Closed

clang-format mis-format braces of class template specializations #92350

owenca opened this issue May 16, 2024 · 1 comment · Fixed by #92352

Comments

@owenca
Copy link
Contributor

owenca commented May 16, 2024

$ clang-format -version
clang-format version 19.0.0git (https://github.com/llvm/llvm-project b11a6607cb6522c58dfbd5f54239e7daa281368e)
$ echo 'template <> struct is_void<void> : std::true_type {};' | clang-format
template <> struct is_void<void> : std::true_type{};
$ 

18.1.5 (and expected) output:
template <> struct is_void<void> : std::true_type {};

@llvmbot
Copy link
Collaborator

llvmbot commented May 16, 2024

@llvm/issue-subscribers-clang-format

Author: Owen Pan (owenca)

``` $ clang-format -version clang-format version 19.0.0git (https://github.com/llvm/llvm-project b11a660) $ echo 'template <> struct is_void<void> : std::true_type {};' | clang-format template <> struct is_void<void> : std::true_type{}; $ ``` 18.1.5 (and expected) output: `template <> struct is_void<void> : std::true_type {};`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants