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 Require Clause fails to break correctly when using parenthesis. #51743
Comments
assigned to @HazardyKnusperkeks |
I noticed this website is wrapping the text for us. Maybe if you view source you'll see it isn't wrapping.
|
I put the sizeof... first and it wrapped on the && though it seemed confused till I removed the
|
workaround in previous example should of been this I forgot the > 0U though it would probably still work with out.
|
I'm working on it. |
Review link: https://reviews.llvm.org/D113319 |
Pushed |
Extended Description
related to: #31513
It seems to have some basic formatting that works okay as long as you don't use parenthesis. If I wrap the Requires clause in parenthesis the whole thing and the following line will be combined into one line. At least in some of my testing.
I'm using the ClangFormat built into Clion it appears to be ClangFormat 13.
The one below here requires the parathesis because it has two conditions. See how the function type and function name are forced to be on the same line as the last condition?
The text was updated successfully, but these errors were encountered: