Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.18
    • Fix Version/s: 6.19
    • Component/s: Rules
    • Labels:
      None

      Description

      For this rule, the behaviour of operator <=> should be the same as the behaviour of operator<.

      And issue messages need to be corrected in case of spaceship operator. For example:

      class A {
      public:
        std::strong_ordering operator<=>(const A &other) const;
      };
      
      void test(A a) {
        if (a < a) { // Current message: Identical sub-expressions on both sides of operator "<=>". 
          // When the issue message should be "Identical sub-expressions on both sides of operator "<". "
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arseniy.zaostrovnykh Arseniy Zaostrovnykh
                Reporter:
                loic.joly Loïc Joly
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: