[llvm-bugs] [Bug 35263] New: Excessive space before template angle bracket in nested template

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 9 04:12:05 PST 2017


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

            Bug ID: 35263
           Summary: Excessive space before template angle bracket in
                    nested template
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mikhail.matrosov at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Format this code with default settings:

    auto
attachments(boost::copy_range<std::vector<std::reference_wrapper<Mold_NS::Attachment>>(
      Scene_NS::children<Mold_NS::Attachment>(i_jaw, 2) |
boost::adaptors::filtered(isStartByPrescription)));

Output is:

auto attachments(boost::copy_range <
                 std::vector<std::reference_wrapper<Mold_NS::Attachment>>(
                     Scene_NS::children<Mold_NS::Attachment>(i_jaw, 2) |
                     boost::adaptors::filtered(isStartByPrescription)));

Note extra space between boost::copy_range and <. No such space is inserted for
other templates in this expression.

-- 
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/20171109/246337e2/attachment.html>


More information about the llvm-bugs mailing list