Skip to content

Commit

Permalink
[cleanup] clang-format version 16 fixes bug about `bool operator< (RH…
Browse files Browse the repository at this point in the history
…S& rhs)`
  • Loading branch information
Jarod42 committed Aug 3, 2024
1 parent 56d11ce commit 665867c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/lib/game/data/units/id.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ struct sID

bool operator== (const sID& ID) const;
bool operator!= (const sID& rhs) const { return !(*this == rhs); }
// clang-format off
// See https://github.com/llvm/llvm-project/issues/61911
bool operator< (const sID& rhs) const { return less_vehicleFirst (rhs); }
// clang-format on
bool less_vehicleFirst (const sID& ID) const;
bool less_buildingFirst (const sID& ID) const;

Expand Down
3 changes: 0 additions & 3 deletions src/lib/utility/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ class cVersion
bool operator== (const cVersion& other) const;
bool operator!= (const cVersion& other) const;

// clang-format off
// See https://github.com/llvm/llvm-project/issues/61911
bool operator< (const cVersion& other) const;
// clang-format on
bool operator<= (const cVersion& other) const;
bool operator> (const cVersion& other) const;
bool operator>= (const cVersion& other) const;
Expand Down
3 changes: 0 additions & 3 deletions src/ui/sound/soundmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ class cSoundManager
sStoredSound (sStoredSound&&) = default;
sStoredSound& operator= (sStoredSound&&) = default;

// clang-format off
// See https://github.com/llvm/llvm-project/issues/61911
bool operator< (const sStoredSound&) const;
// clang-format on

std::shared_ptr<cSoundEffect> sound;
unsigned int startGameTime;
Expand Down

0 comments on commit 665867c

Please sign in to comment.