Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. PVS Studio is awsome!

PVS Studio is awsome!

Scheduled Pinned Locked Moved The Lounge
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ed welch
    wrote on last edited by
    #1

    I just tried this static code analyser and pretty impressed. Straight away it shows me an obvious bug in my code (with the warning message in plain english): "It is odd that the body of 'GetY2' function is fully equivalent to the body of 'GetX2' function. bitmapchar.h 37:"

    int GetX2() const
    {
    return m_x + m_width;
    }
    int GetY2() const
    {
    return m_x + m_width;
    }

    OriginalGriffO L 2 Replies Last reply
    0
    • E ed welch

      I just tried this static code analyser and pretty impressed. Straight away it shows me an obvious bug in my code (with the warning message in plain english): "It is odd that the body of 'GetY2' function is fully equivalent to the body of 'GetX2' function. bitmapchar.h 37:"

      int GetX2() const
      {
      return m_x + m_width;
      }
      int GetY2() const
      {
      return m_x + m_width;
      }

      OriginalGriffO Online
      OriginalGriffO Online
      OriginalGriff
      wrote on last edited by
      #2

      It sounds interesting, but... "Please write us to get a price for PVS-Studio. Please specify interesting license type. PVS-Studio (for 1-9 developers team, first year license) License Renewal (also one year): 80% of current base price" Which means even they think the price is too high! :laugh:

      Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      E L 2 Replies Last reply
      0
      • E ed welch

        I just tried this static code analyser and pretty impressed. Straight away it shows me an obvious bug in my code (with the warning message in plain english): "It is odd that the body of 'GetY2' function is fully equivalent to the body of 'GetX2' function. bitmapchar.h 37:"

        int GetX2() const
        {
        return m_x + m_width;
        }
        int GetY2() const
        {
        return m_x + m_width;
        }

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        ed welch wrote:

        I just tried this static code analyser and pretty impressed

        ..lots of spam starts like that these days :)

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          It sounds interesting, but... "Please write us to get a price for PVS-Studio. Please specify interesting license type. PVS-Studio (for 1-9 developers team, first year license) License Renewal (also one year): 80% of current base price" Which means even they think the price is too high! :laugh:

          Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

          E Offline
          E Offline
          ed welch
          wrote on last edited by
          #4

          I had similiar thoughts, they should just tell us the price

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            It sounds interesting, but... "Please write us to get a price for PVS-Studio. Please specify interesting license type. PVS-Studio (for 1-9 developers team, first year license) License Renewal (also one year): 80% of current base price" Which means even they think the price is too high! :laugh:

            Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            In October 2013 the price was 5,250 euro for standard edition (1-9 users) and 9,000 euro for site licence. If you have a problem with the high prices they are more than willing to provide some sort of discount (as they did for us based on the Rand/Euro exchange rate being so high at the time). We use PVS-Studio all the time and it has found many potential bugs in our code. Cheers, Brett

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups