DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sat, 18 Aug 2007 07:54:07 -0700,    posted on: microsoft.public.dotnet.languages.vc        back       

Thread Index
  1    unknown
          2    Carl Daniel [VC++ MVP] am


cl command for lint/splint   
Hello,
gnu g++ offers something similar to lint/splint for statically checking 
C programs with the following command:

g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast 
-Woverloaded-virtual -pedantic -Os -fno-exceptions -c

does cl.exe in windows offer something similar?

Thanks.
Date:Sat, 18 Aug 2007 07:54:07 -0700   Author:  

Re: cl command for lint/splint   
one2001boy@yahoo.com wrote:

> Hello,
> gnu g++ offers something similar to lint/splint for statically
> checking C programs with the following command:
>
> g++ -W -Wall -Wshadow -Wwrite-strings -Wold-style-cast
> -Woverloaded-virtual -pedantic -Os -fno-exceptions -c
>
> does cl.exe in windows offer something similar?


cl -Wall -Zs

....would be a good place to start. You'll get more errors/warnings if you 
remove -Zs (syntax check only) and let the compiler generate an OBJ file 
since many warnings/errors are raised in the compiler back end.  You'll 
frequently get warnings from an optimized build that you don't get from a 
debug build as well.

If you have Visual Studio team system, you can use

cl -analyze

to do extensive static checking on the code.

-cd
Date:Sat, 18 Aug 2007 16:59:38 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us