Loading ...
Sorry, an error occurred while loading the content.

static code analysis with VS2012

Expand Messages
  • Mike Williams
    Hi, In case anyone wants to have a play with this here is a patch for the makefile. It even works with VS2012 Express but it does not report as much as the
    Message 1 of 2 , May 19, 2013
    • 0 Attachment
      Hi,

      In case anyone wants to have a play with this here is a patch for the
      makefile. It even works with VS2012 Express but it does not report as
      much as the Professional and other paid for versions.


      diff -r 34f806b8147f src/Make_mvc.mak
      --- a/src/Make_mvc.mak Sat May 18 20:55:35 2013 +0200
      +++ b/src/Make_mvc.mak Sun May 19 11:54:11 2013 +0100
      @@ -113,6 +113,8 @@
      #
      # Visual C Version: MSVCVER=m.n (default derived from nmake if
      undefined)
      #
      +# Static Code Analysis: ANALYZE=yes (works with VS2012 only)
      +#
      # You can combine any of these interfaces
      #
      # Example: To build the non-debug, GUI version with Perl interface:
      @@ -479,6 +481,11 @@
      CFLAGS=$(CFLAGS) $(WP64CHECK)
      !endif

      +# Static code analysis generally available starting with VS2012
      +!if ("$(ANALYZE)" == "yes") && ("$(MSVCVER)" == "11.0")
      +CFLAGS=$(CFLAGS) /analyze
      +!endif
      +
      CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
      RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
      ! ifdef USE_MSVCRT



      Mike
      --
      The trouble with being punctual is that no one is there to appreciate it.

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... Thanks, I ll include it. -- Q: What kind of stuff do you do? A: I collect hobbies. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net
      Message 2 of 2 , May 19, 2013
      • 0 Attachment
        Mike Williams wrote:

        > In case anyone wants to have a play with this here is a patch for the
        > makefile. It even works with VS2012 Express but it does not report as
        > much as the Professional and other paid for versions.

        Thanks, I'll include it.

        --
        Q: What kind of stuff do you do?
        A: I collect hobbies.

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.