Skip to content

[regression] clang-format / broken c++ for(...) syntax. #44563

@pawelsopensource

Description

@pawelsopensource
Bugzilla Link 45218
Resolution FIXED
Resolved on Sep 08, 2020 10:05
Version 10.0
OS Linux
Blocks #43900 #46070
Attachments fornat description., fornat description.
CC @zmodem,@mydeveloperday,@owenca,@rjmansfield
Fixed by commit(s) c81dd3d

Extended Description

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 )
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions