5

I use IntelliJ Idea CE for Java and I like its features like it tells which of the declared parameters has never been used, simplification of code, auto-including libraries for methods selected from suggestions, etc.

Is there a free IDE for C language which can give me such kind of features. I need to mostly work with pointers. It will be good if the IDE tells me things like the pointer is never freed, etc.

I currently use Visual Studio Code on Windows 10. It doesn't suggest me functions from the libraries I haven't included.

1
  • Please don't forget to let us know which you choose, as that will help others who read this question in future. It is ok to post & accept your own answer
    – Mawg
    Commented Aug 24, 2019 at 7:05

1 Answer 1

4

Eclipse CDT is a free C/C++ IDE which has a key combination (Ctrl+Shift+O, IIRC) which will remove unused #include and add those which are missing.

Most modern compilers (such as GCC) will warn you of unused parameters.

As a general topic, look at static code analysis tools, such as Lint .

See also (list of free static code analysis tools).

I recommend the free Splint, but there are many more

3
  • 1
    Thanks for answering, I have chosen CLion because I personally like JetBrains IDEs and I got it for free as I am a student. Commented Aug 24, 2019 at 7:11
  • I have to agree with you :-) JeytBrains are absolutely the best for IDEs. Anyone doing Python should use the their excelletnt, and free (even for commercial use) PyCharm community edition. Thank you for accepting my answer. You could also post & accept your own answer, if you don't just say "CLion", but list some great features. Don't forget that the debugger is your best friend. If you don't master that then you cannot call yourself a developer. Btw, Eclipse is the industry standard DIE for C/C++. If you code those at work, you will use it
    – Mawg
    Commented Aug 24, 2019 at 7:15
  • 1
    CLion uses CMake as build tool; but CDT supports CMake, Make & GNU Autotools as build tool. Commented Aug 26, 2019 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.