Do you recommend enabling code analysis for C / C ++ on the assembly?

I am using Visual Studio 2010, and in my C ++ / CLI project there are two code analysis options:

  • Enable build code analysis
  • Enable code analysis for C / C ++ during assembly

My question is about the second setting.

I turned it on, and it takes a long time to complete it, and it does not find much.

Do you recommend enabling this feature? Why?

+3
source share
3 answers

Never did anything for me. Theoretically, this should help catch logical errors, but I never found that he was not reporting anything.

+2
source

++ .

  • FXCop, .

  • PREFast, ++.

CA , . , :

  • , , .

  • , , .

  • , , .

, ++ SAL Annotations, , , - ! SAL , - !:)

+6

LINT ++ ( .Net, ++/CLI). , , , , .

LINT :

  • LINT ( CPP). , ( ), LDP .prot LINT.
  • . - , , .

What you could do additionally is to perform static code analysis on all the files that were bound to your version control system. For instance. in Subversion you can do this in trigger-trigger.

+2
source

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


All Articles