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. General Programming
  3. C / C++ / MFC
  4. which tool do more strictly check code than c++compiler.

which tool do more strictly check code than c++compiler.

Scheduled Pinned Locked Moved C / C++ / MFC
c++
8 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.
  • D Offline
    D Offline
    derek7
    wrote on last edited by
    #1

    lint seem to be complex. it is commerical software.

    E 2 Replies Last reply
    0
    • D derek7

      lint seem to be complex. it is commerical software.

      E Offline
      E Offline
      El Corazon
      wrote on last edited by
      #2

      depending on your compiler, you can just adjust the warning level up a notch, this gives "valid but potentially unsafe" operations a warning number to let you try to fix them. These are not all errors, though some may be. But this is a good place to start. After that you might want to peek here [^] and see if anything is what you are looking for. I personally like lint, I have used splint, GNU lint, and PC-Lint in times past with good luck. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

      D L 2 Replies Last reply
      0
      • E El Corazon

        depending on your compiler, you can just adjust the warning level up a notch, this gives "valid but potentially unsafe" operations a warning number to let you try to fix them. These are not all errors, though some may be. But this is a good place to start. After that you might want to peek here [^] and see if anything is what you are looking for. I personally like lint, I have used splint, GNU lint, and PC-Lint in times past with good luck. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

        D Offline
        D Offline
        derek7
        wrote on last edited by
        #3

        good , do you have msn messenger? I wanna talk to you:)

        1 Reply Last reply
        0
        • E El Corazon

          depending on your compiler, you can just adjust the warning level up a notch, this gives "valid but potentially unsafe" operations a warning number to let you try to fix them. These are not all errors, though some may be. But this is a good place to start. After that you might want to peek here [^] and see if anything is what you are looking for. I personally like lint, I have used splint, GNU lint, and PC-Lint in times past with good luck. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

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

          I've used Splint a bit and it had a number of vagaries. PC-Lint seems to be much better maintained and the price isn't bad. The tigress is here :-D

          E 1 Reply Last reply
          0
          • L Lost User

            I've used Splint a bit and it had a number of vagaries. PC-Lint seems to be much better maintained and the price isn't bad. The tigress is here :-D

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #5

            Trollslayer wrote:

            I've used Splint a bit and it had a number of vagaries. PC-Lint seems to be much better maintained and the price isn't bad.

            This was basically why we moved to PC-Lint. Although I have used various others, small to large and did the work (some more than others) to learn to work, eventually I just decided it was too much work to good success and switched to PC-Lint. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

            1 Reply Last reply
            0
            • D derek7

              lint seem to be complex. it is commerical software.

              E Offline
              E Offline
              El Corazon
              wrote on last edited by
              #6

              derek7 wrote:

              lint seem to be complex

              This might make PC-Lint easier to use: http://www.riverblade.co.uk/products/visual_lint/index.html[^] I have not used it yet, though considered it several times since I learned of it. Of course it too is commercial. Basically if you want to use the free lints, it will take some work. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

              D 2 Replies Last reply
              0
              • E El Corazon

                derek7 wrote:

                lint seem to be complex

                This might make PC-Lint easier to use: http://www.riverblade.co.uk/products/visual_lint/index.html[^] I have not used it yet, though considered it several times since I learned of it. Of course it too is commercial. Basically if you want to use the free lints, it will take some work. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                D Offline
                D Offline
                derek7
                wrote on last edited by
                #7

                I read link document, dive into many options and disapear. could you give me some frequently used option? for example : detect all un-initialized variable or something good.

                1 Reply Last reply
                0
                • E El Corazon

                  derek7 wrote:

                  lint seem to be complex

                  This might make PC-Lint easier to use: http://www.riverblade.co.uk/products/visual_lint/index.html[^] I have not used it yet, though considered it several times since I learned of it. Of course it too is commercial. Basically if you want to use the free lints, it will take some work. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                  D Offline
                  D Offline
                  derek7
                  wrote on last edited by
                  #8

                  if I am not indicate a head file is a library header file, what wrong will arise?

                  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