https://bugs.llvm.org/show_bug.cgi?id=38384
Bug ID: 38384
Summary: Incorrect formatting of long function arguments
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: twesterh...@protonmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
The following piece of code is (I think) incorrectly formatted:
```
#define SOME_MACRO
\
auto a_very_very_very_very_very_very_long_function_name(
\
AndAType<WithSomeTemplates, AndSomeMoreTemplates> const a,
\
int b)
noexcept->int \
{
\
return 123;
\
}
```
I think the correct formatting would be something like this:
```
auto a_very_very_very_very_very_very_long_function_name(
\
AndAType<WithSomeTemplates, AndSomeMoreTemplates> const a,
\
int b) noexcept->int
\
```
Just removing the extra spaces before b aligns the backslashes which I think is
the intended behaviour.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs