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

            Bug ID: 31876
           Summary: clang-format removes space between "async" and arrow
                    function
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: rchlodni...@opera.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

clang-format (with default config) formats this JS code:
    const f1 = async () => {};
as:
    const f1 = async() => {};

I would rather expect for the space after async keyword not be removed as it
looks confusing (like a function call).

Other context where async can be used is for example class members:

class Foo {
  async foo() {}
}

Not really proving anything with this example...

-- 
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

Reply via email to