[llvm-bugs] [Bug 32946] New: ES2016 exponentiation operator not handled correctly

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 5 21:40:50 PDT 2017


            Bug ID: 32946
           Summary: ES2016 exponentiation operator not handled correctly
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: btolsch at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

clang-format treats `2**3` as if it were just two multiplication operators and
outputs `2 * * 3` when putting spaces between operators.  The space between the
asterisks makes it no longer work as an exponentiation operator and instead
generates a syntax error.

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/20170506/83cd64c5/attachment.html>

More information about the llvm-bugs mailing list