https://bugs.llvm.org/show_bug.cgi?id=51955
Bug ID: 51955
Summary: Incorrect formatting of template with less-than
operator
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: mats.nils...@zenseact.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
I think this is a bug with the clang-formatter, where the "<" should have
spaces around it, but it seems it is interpreted incorrectly.
Minimal example with default google style would be:
#include <cstdint>
class foo {
template <typename T, std::size_t dimension,
std::enable_if_t<dimension<4U, bool> = true> void foobar() {
// do something
}
}
I would have wanted this:
- std::enable_if_t<dimension<4U, bool> = true> void foobar() {
+ std::enable_if_t<dimension < 4U, bool> = true> void foobar() {
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs