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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui