[llvm-bugs] [Bug 37433] New: clang-format mistakes structured bindings for Objective-C

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 12 12:10:54 PDT 2018


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

            Bug ID: 37433
           Summary: clang-format mistakes structured bindings for
                    Objective-C
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at reupen.uk
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

ClangFormat mistakes the following C++ code for Objective-C (tested with
revision 332164):

void refresh_all_items()
{
    for (auto& [id, name] : m_items) {
        Sleep(100);
    }
}


The actual file I'm seeing this problem on is
https://github.com/reupen/columns_ui/blob/master/foo_ui_columns/drop_down_list_toolbar.h

Running clang-format on it yields:

Configuration file(s) do(es) not support Objective-C:
F:\foobar2000\columns_ui\foo_ui_columns\.clang-format


This is similar to https://bugs.llvm.org/show_bug.cgi?id=36248 (though the bugs
mentioned there are actually fixed).

-- 
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/20180512/af8113a8/attachment.html>


More information about the llvm-bugs mailing list