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

            Bug ID: 29165
           Summary: Support ES6 Symbol's 'for' method differently than
                    JavaScript 'for' loops
           Product: clang
           Version: 3.9
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Consider the following output of clang-format 3.9 on JavaScript code using
ES6/ES2015 Symbol:

const S = Symbol.for ('sym');

Notice the extraneous space between 'for' and '('sym')'. Is clang-format
treating this method named 'for' [1] as a for loop?

[1]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to