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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs