[llvm-bugs] [Bug 42150] New: Bad -> formatting if macro is used in trailing return function
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 6 00:32:52 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42150
Bug ID: 42150
Summary: Bad -> formatting if macro is used in trailing return
function
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: reznak at cadwork.cz
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Hello,
if I use macro instead of "auto", arrow has no space before and after.
Tested here with 6.0.1 version: https://zed0.co.uk/clang-format-configurator/
Tested on Windows with clang-format version 8.0.0 (tags/RELEASE_800/final)
#define fn [[nodiscard]] auto
fn foo() -> Opt<Error> {
return {};
}
auto bar() -> Opt<Error> {
return {};
}
Is formatted as:
#define fn [[nodiscard]] auto
fn foo()->Opt<Error> {
return {};
}
auto bar() -> Opt<Error> {
return {};
}
Thank you
--
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/20190606/7055b729/attachment.html>
More information about the llvm-bugs
mailing list