[llvm-bugs] [Bug 45218] New: [regression] clang-format / broken c++ for(...) syntax.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 16 13:50:45 PDT 2020


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

            Bug ID: 45218
           Summary: [regression] clang-format / broken c++ for(...)
                    syntax.
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pawel_sikora at zoho.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

hi,
the clang-format-10-rcX introduces a c++ syntax error in shift-right
expression:

         unsigned long long v = static_cast< unsigned long long >( t );
-        for ( unsigned i = 0; i< nbits; ++i, bIt.next(), v = v >> 1 )
+        for ( unsigned i = 0; i< nbits; ++i, bIt.next(), v = v > > 1 )

-- 
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/20200316/53789869/attachment.html>


More information about the llvm-bugs mailing list