[llvm-bugs] [Bug 38384] New: Incorrect formatting of long function arguments
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 31 03:54:39 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: twesterhout at protonmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180731/533bea9f/attachment.html>
More information about the llvm-bugs
mailing list