[llvm-bugs] [Bug 32016] New: When adding a comment at the end of a return type declaration, the function name is incorrectly indented
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 20 02:18:16 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=32016
Bug ID: 32016
Summary: When adding a comment at the end of a return type
declaration, the function name is incorrectly indented
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: sylvestre at debian.org
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
template<typename T> // Templates on own line.
static int // Return type on own line for top-level functions.
MyFunction(int a)
is converted by clang-format to
template<typename T> // Templates on own line.
static int // Return type on own line for top-level functions.
MyFunction(int a)
note the " " before "MyFunction"
--
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/20170220/bf08ed9f/attachment.html>
More information about the llvm-bugs
mailing list