https://llvm.org/bugs/show_bug.cgi?id=26890
Bug ID: 26890 Summary: Clang-format bad formatting of expression in template argument Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: aizat...@chromium.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified The following function is formatted very badly by clang-format: template <int N, typename TupleT> typename std::enable_if< N < std::tuple_size<TupleT>::value, bool>::type UnpackImpl(const uint8_t *Data, size_t Size, TupleT *Tuple) { size_t NewSize = UnpackSingle(Data, Size, &std::get<N>(*Tuple)); if (NewSize == Size) { return false; } return UnpackImpl<N + 1, TupleT>(Data + (Size - NewSize), NewSize, Tuple); } It seems to be confused by N < ... expression inside enable_if. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs