C ++ background code analyzer like Resharper for C #?

I understand that there are a number of tools that provide other R # amenities, but I'm looking specifically for a tool that will tell me if I have a compilation / link error before I actually try to build. Just like in C #, it should tell me if there is not enough semicolon, referring to the missing function, etc.

In R #, it has a nice red / green spot in the lower right corner that tells you if you have compilation issues.

I looked at CodeRush, but it was not clear to me whether this function would be for C ++.

It may be worth mentioning this for VS, although, of course, suggestions for working with other tools will be useful for those who read this.

+4
source share
2 answers

What version of Visual Studio are you using? Visual Studio 2010 and above should be able to check for syntax errors, undefined identifiers, etc.

Recent versions of Eclipse can also do this. (In fact, Eclipse code analysis checks for several potential problems, such as uninitialized member variables, which my compiler does not support.) Since Eclipse is a full-blown IDE, it will not integrate with Visual Studio, but there is nothing to prevent you from creating an Eclipse project. containing the same files as another IDE project, and using Eclipse for editing, and another IDE for building and debugging. (I use Eclipse with Embarcadero C ++ Builder because I prefer Eclipse as an IDE for Embarcadero C ++ Builder.)

Update: Visual C ++ apparently refers to this as an IntelliSense error message, and you can enable it under tools, options, text editor, C / C ++, Advanced, IntelliSense. There is additional information in this blog post .

+3
source

Take a look at Visual Assist X. It's not as advanced as Resharper, it just improves IntelliSense, but can simplify writing in C ++.

0
source

Source: https://habr.com/ru/post/1433783/


All Articles