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: unassignedclangb...@nondot.org
          Reporter: pawel_sik...@zoho.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to