[llvm-bugs] [Bug 35518] New: clang-format: C++17 deduction guides are wrongly formatted

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 4 06:38:44 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35518

            Bug ID: 35518
           Summary: clang-format: C++17 deduction guides are wrongly
                    formatted
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: curdeius at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

The following snippet:

  template <class... Ts>
  S(Ts...) -> S<Ts...>;

is formatted to:

  template <class... Ts>
  S(Ts...)->S<Ts...>;

Which seems to me to be wrong as the spaces are missing around -> (arrow
operator).

Version: trunk from 2017-11-22.

-- 
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/20171204/f1fc1cf3/attachment.html>


More information about the llvm-bugs mailing list