[llvm-bugs] [Bug 29165] New: Support ES6 Symbol's 'for' method differently than JavaScript 'for' loops

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 28 04:52:55 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: wuzzyview+llvm at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160828/69fc5802/attachment.html>


More information about the llvm-bugs mailing list