[llvm-bugs] [Bug 36363] New: Clang-format deletes whitespace between return-value attribute and return-value type
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 12 16:01:20 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36363
Bug ID: 36363
Summary: Clang-format deletes whitespace between return-value
attribute and return-value type
Product: clang
Version: 5.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: alex.druinsky at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
When I run clang-format on the file
#include <string>
__attribute__((warn_unused_result)) ::std::string foo() { return ""; }
__attribute__((warn_unused_result)) std::string bar() { return ""; }
The output is
#include <string>
__attribute__((warn_unused_result))::std::string foo() { return ""; }
__attribute__((warn_unused_result)) std::string bar() { return ""; }
In the foo function, clang-format deletes the space between the closing paren
and the colon. Is this a bug in the formatter?
--
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/20180213/e66ecc0c/attachment.html>
More information about the llvm-bugs
mailing list