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. Tools to refactor C++ code - Rad studio

Tools to refactor C++ code - Rad studio

Scheduled Pinned Locked Moved C / C++ / MFC
c++toolshelpcode-review
4 Posts 4 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.
  • P Offline
    P Offline
    ptr_Electron
    wrote on last edited by
    #1

    Hi 1) I have huge C++ code, that I need to refactor. I am using RAD Studio- code gear Please advise free Tool to refactor C++ code. Thanks you 2)The code is very bad. it has around 3000 compiler warning. I know it is bad to automate fixing the warnings :( but Is there any tool, or automated process to fix the warnings Thanks you!!

    L M S 3 Replies Last reply
    0
    • P ptr_Electron

      Hi 1) I have huge C++ code, that I need to refactor. I am using RAD Studio- code gear Please advise free Tool to refactor C++ code. Thanks you 2)The code is very bad. it has around 3000 compiler warning. I know it is bad to automate fixing the warnings :( but Is there any tool, or automated process to fix the warnings Thanks you!!

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

      It is most unlikely that any tool could do this. You will need to get your "code analysis head" on and knuckle down to a few days (or weeks) of hard work.

      1 Reply Last reply
      0
      • P ptr_Electron

        Hi 1) I have huge C++ code, that I need to refactor. I am using RAD Studio- code gear Please advise free Tool to refactor C++ code. Thanks you 2)The code is very bad. it has around 3000 compiler warning. I know it is bad to automate fixing the warnings :( but Is there any tool, or automated process to fix the warnings Thanks you!!

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        The best tool is Elbow Grease and Visual Studio Level 4 warning level and "Stop on Warning" .

        I'd rather be phishing!

        1 Reply Last reply
        0
        • P ptr_Electron

          Hi 1) I have huge C++ code, that I need to refactor. I am using RAD Studio- code gear Please advise free Tool to refactor C++ code. Thanks you 2)The code is very bad. it has around 3000 compiler warning. I know it is bad to automate fixing the warnings :( but Is there any tool, or automated process to fix the warnings Thanks you!!

          S Offline
          S Offline
          Stefan_Lang
          wrote on last edited by
          #4

          A warning typically means that while the code is legitmate with respect to the C++ syntax, the compiler suspects that it might be doing something else than what the programmer intended. Since the computer can't guess what's in the head of the programmer, there's no safe way for it to automatically fix it. If you have so many warnings, it's probably best to watch out for very common types of warnings, pick one of these, and focus on fixing that warning everywhere in the code, ignoring other warnings. Most of the time you'll quickly be able to spot certain patterns, and fixing these errors should therefore be possible almost without thinking after a while. It will still take time, but that way it's probably a lot faster than working on all warnings by order of occurrence. P.S.: if your goal is refactoring the entire code, then eliminating warnings is the last of your concerns! First you need tests, to ensure that the refactored code really produces the same results. Then you need to start with the lowest level functions, and then work your way up. Chances are, that changes in your low level functions require adjustments higher up, and that could very well affect code that currently issues warnings. It would be pointless to fix warnings first and then change that same code again due to low-level refactoring, so you better don't do that so early!

          GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

          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