04f93b9cf1 
								
							 
						 
						
							
							
								
								Update regex in scan-build for parsing statistics.  
							
							... 
							
							
							
							llvm-svn: 130347 
							
						 
						
							2011-04-27 23:43:27 +00:00  
				
					
						
							
							
								 
						
							
								f26109664e 
								
							 
						 
						
							
							
								
								Update scan-build to '-analyzer-checker debug.Stats' instead of the old '-analyzer-stats' -cc1 argument.  
							
							... 
							
							
							
							llvm-svn: 130320 
							
						 
						
							2011-04-27 18:53:08 +00:00  
				
					
						
							
							
								 
						
							
								13b5a2c2f8 
								
							 
						 
						
							
							
								
								Add Objective-C++ files to those accepted by ccc-analyzer.  
							
							... 
							
							
							
							llvm-svn: 129475 
							
						 
						
							2011-04-13 21:52:05 +00:00  
				
					
						
							
							
								 
						
							
								f62a279e4c 
								
							 
						 
						
							
							
								
								Provide options to explicitly enable/disable checkers in scan-build.  
							
							... 
							
							
							
							llvm-svn: 129393 
							
						 
						
							2011-04-12 21:47:00 +00:00  
				
					
						
							
							
								 
						
							
								79c4c2baa9 
								
							 
						 
						
							
							
								
								Enable C++ static analysis support in ccc-analyzer.  
							
							... 
							
							
							
							llvm-svn: 129392 
							
						 
						
							2011-04-12 21:46:57 +00:00  
				
					
						
							
							
								 
						
							
								75bb01b47d 
								
							 
						 
						
							
							
								
								Filter our experimental checks in scan-build's checker listing.  
							
							... 
							
							
							
							llvm-svn: 128865 
							
						 
						
							2011-04-05 00:21:49 +00:00  
				
					
						
							
							
								 
						
							
								c8e6f5110c 
								
							 
						 
						
							
							
								
								Don't store reports when scan-build's build command matches /autogen/ (same as configure).  
							
							... 
							
							
							
							llvm-svn: 128723 
							
						 
						
							2011-04-01 18:47:06 +00:00  
				
					
						
							
							
								 
						
							
								9acb346375 
								
							 
						 
						
							
							
								
								scan-build: only display analyzer intra-file progress when in "Verbose" mode.  
							
							... 
							
							
							
							llvm-svn: 128015 
							
						 
						
							2011-03-21 20:12:21 +00:00  
				
					
						
							
							
								 
						
							
								d4bcb4ffc1 
								
							 
						 
						
							
							
								
								Compress argument processing in ccc-analyzer.  No functionality change.  
							
							... 
							
							
							
							llvm-svn: 127758 
							
						 
						
							2011-03-16 21:10:42 +00:00  
				
					
						
							
							
								 
						
							
								339f7c3c58 
								
							 
						 
						
							
							
								
								Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments list.  
							
							... 
							
							
							
							llvm-svn: 127428 
							
						 
						
							2011-03-10 21:10:08 +00:00  
				
					
						
							
							
								 
						
							
								27fdf0feda 
								
							 
						 
						
							
							
								
								Enhance scan-build to print out available analyses using new checker registration model.  
							
							... 
							
							
							
							This isn't totally complete.  Right now scan-build uses some heuristics to determine
which checkers are enabled by default, but it cannot always tell which checkers
are not enabled.
llvm-svn: 126521 
							
						 
						
							2011-02-25 22:00:40 +00:00  
				
					
						
							
							
								 
						
							
								42ec914ff8 
								
							 
						 
						
							
							
								
								Begin overhaul of scan-build/ccc-analyzer's handling of checker options.  
							
							... 
							
							
							
							We now rely on 'clang --analyze' to provide the default set of checkers.  We're
still working on the new '-analyzer-checker <checker>' interface, and once
that's ready we'll wire it up to scan-build.
llvm-svn: 125712 
							
						 
						
							2011-02-17 02:28:30 +00:00  
				
					
						
							
							
								 
						
							
								fffba74477 
								
							 
						 
						
							
							
								
								No longer pass deprecated '-nodistribute' flag to xcodebuild.  
							
							... 
							
							
							
							llvm-svn: 125131 
							
						 
						
							2011-02-08 22:54:30 +00:00  
				
					
						
							
							
								 
						
							
								1dd5646da0 
								
							 
						 
						
							
							
								
								Enable the self-init checker in scan-build.  
							
							... 
							
							
							
							llvm-svn: 124696 
							
						 
						
							2011-02-01 22:36:11 +00:00  
				
					
						
							
							
								 
						
							
								51651089ab 
								
							 
						 
						
							
							
								
								Tweak scan-build to work with naked clang commands.  
							
							... 
							
							
							
							llvm-svn: 116651 
							
						 
						
							2010-10-16 00:29:16 +00:00  
				
					
						
							
							
								 
						
							
								ea7c48ccf7 
								
							 
						 
						
							
							
								
								Updated scan-build:  
							
							... 
							
							
							
							- Idempotent operations are on by default, to match --analyze in the driver.
- Integrated stats calculation based on parsing warnings emitted with the -analyzer-stats flag. The new -stats flag enables this.
- New -maxloop flag to pass down a maxloop value to the analyzer.
llvm-svn: 115123 
							
						 
						
							2010-09-30 01:12:05 +00:00  
				
					
						
							
							
								 
						
							
								a5f13c866c 
								
							 
						 
						
							
							
								
								Modified the ccc-analyzer script to print the compiler command when log level verbosity is enabled. This is handy for debugging.  
							
							... 
							
							
							
							llvm-svn: 115109 
							
						 
						
							2010-09-29 23:48:31 +00:00  
				
					
						
							
							
								 
						
							
								df44f74290 
								
							 
						 
						
							
							
								
								Forward -fno-builtin to clang, add .cp as a supported  
							
							... 
							
							
							
							extension if you otherwise configure scan-build
to do c++ static analysis.
OKed by Ted
llvm-svn: 107562 
							
						 
						
							2010-07-03 03:08:23 +00:00  
				
					
						
							
							
								 
						
							
								e869a182c2 
								
							 
						 
						
							
							
								
								Add ccc-analyzer support for '-imacros'.  Fixes PR 7204.  
							
							... 
							
							
							
							llvm-svn: 105624 
							
						 
						
							2010-06-08 18:27:55 +00:00  
				
					
						
							
							
								 
						
							
								7deb7050d5 
								
							 
						 
						
							
							
								
								Fix ccc-analyzer's handling of quoted arguments in the build command.  Fixes PR 6791.[B  
							
							... 
							
							
							
							llvm-svn: 100551 
							
						 
						
							2010-04-06 19:41:24 +00:00  
				
					
						
							
							
								 
						
							
								d76197a271 
								
							 
						 
						
							
							
								
								scan-build: set environment variable LDPLUSPLUS to 'c++-analyzer' to correctly link projects  
							
							... 
							
							
							
							with c++ code.
llvm-svn: 99684 
							
						 
						
							2010-03-27 00:20:01 +00:00  
				
					
						
							
							
								 
						
							
								adccbca23f 
								
							 
						 
						
							
							
								
								Don't enable static analysis support for C++ by default.  Users are  
							
							... 
							
							
							
							accidentally using it without realizing that it is nowhere close
to being generally usable and are reporting crashes that we
already know about.
llvm-svn: 97960 
							
						 
						
							2010-03-08 19:06:44 +00:00  
				
					
						
							
							
								 
						
							
								dde71b93da 
								
							 
						 
						
							
							
								
								Pass -m32 and -m64 to the static analyzer when using scan-build. Now we can  
							
							... 
							
							
							
							use scan-build with Wine, for example.
Ted, I hope this is OK.
llvm-svn: 97566 
							
						 
						
							2010-03-02 15:26:41 +00:00  
				
					
						
							
							
								 
						
							
								e9711db487 
								
							 
						 
						
							
							
								
								Two changes to scan-build:  
							
							... 
							
							
							
							(1) When no 'clang' is found with 'scan-build', remember the one from
the path as scan-build sees it, not the build system.  This prevents
us from finding different clangs during the build.
(2) Don't set LDPLUSPLUS when running xcodebuild; instead rely on the
clang driver to do the right thing.
llvm-svn: 95943 
							
						 
						
							2010-02-12 00:12:25 +00:00  
				
					
						
							
							
								 
						
							
								14015de619 
								
							 
						 
						
							
							
								
								Add comments.  
							
							... 
							
							
							
							llvm-svn: 95942 
							
						 
						
							2010-02-12 00:10:34 +00:00  
				
					
						
							
							
								 
						
							
								74cc62e161 
								
							 
						 
						
							
							
								
								Tweak output.  
							
							... 
							
							
							
							llvm-svn: 95676 
							
						 
						
							2010-02-09 18:51:44 +00:00  
				
					
						
							
							
								 
						
							
								8de7a0efd1 
								
							 
						 
						
							
							
								
								Add a check for a running Xcode before modifying its configuration files.  
							
							... 
							
							
							
							llvm-svn: 95675 
							
						 
						
							2010-02-09 18:46:58 +00:00  
				
					
						
							
							
								 
						
							
								e52f932f5f 
								
							 
						 
						
							
							
								
								Add some diagnostics for when we cannot update the original spec file.  
							
							... 
							
							
							
							llvm-svn: 95572 
							
						 
						
							2010-02-08 21:19:27 +00:00  
				
					
						
							
							
								 
						
							
								94c5349ef2 
								
							 
						 
						
							
							
								
								Add a Python script to change what version of Clang is used by Xcode for static analysis (and ONLY static analysis).  
							
							... 
							
							
							
							llvm-svn: 95569 
							
						 
						
							2010-02-08 20:54:01 +00:00  
				
					
						
							
							
								 
						
							
								6a93195783 
								
							 
						 
						
							
							
								
								Fix how scan-build finds c++-analyzer to work with checker builds.  
							
							... 
							
							
							
							llvm-svn: 95425 
							
						 
						
							2010-02-05 20:34:14 +00:00  
				
					
						
							
							
								 
						
							
								01a83104a2 
								
							 
						 
						
							
							
								
								Now that the -cc1 options for analyzer checks have a structured naming, add back scanning for analyzer checks to scan-build.  
							
							... 
							
							
							
							llvm-svn: 95349 
							
						 
						
							2010-02-05 02:18:39 +00:00  
				
					
						
							
							
								 
						
							
								2f2692f8ca 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.  
							
							... 
							
							
							
							llvm-svn: 95348 
							
						 
						
							2010-02-05 02:06:54 +00:00  
				
					
						
							
							
								 
						
							
								b6e400c87c 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'.  
							
							... 
							
							
							
							llvm-svn: 95347 
							
						 
						
							2010-02-05 01:59:21 +00:00  
				
					
						
							
							
								 
						
							
								61b506aa8f 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.  
							
							... 
							
							
							
							llvm-svn: 95346 
							
						 
						
							2010-02-05 01:57:44 +00:00  
				
					
						
							
							
								 
						
							
								2d8ef71ae6 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'.  
							
							... 
							
							
							
							llvm-svn: 95345 
							
						 
						
							2010-02-05 01:55:01 +00:00  
				
					
						
							
							
								 
						
							
								d519b83757 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'.  
							
							... 
							
							
							
							llvm-svn: 95343 
							
						 
						
							2010-02-05 01:52:40 +00:00  
				
					
						
							
							
								 
						
							
								ec5b3d45c1 
								
							 
						 
						
							
							
								
								Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'.  
							
							... 
							
							
							
							llvm-svn: 95342 
							
						 
						
							2010-02-05 01:50:36 +00:00  
				
					
						
							
							
								 
						
							
								c0895eb730 
								
							 
						 
						
							
							
								
								Add c++-analyzer symlink (which is used by scan-build)  
							
							... 
							
							
							
							llvm-svn: 91937 
							
						 
						
							2009-12-22 23:00:32 +00:00  
				
					
						
							
							
								 
						
							
								22a8a4bfb9 
								
							 
						 
						
							
							
								
								Compute the right extension for preprocessed Objective-C++ files.  
							
							... 
							
							
							
							llvm-svn: 91547 
							
						 
						
							2009-12-16 18:32:41 +00:00  
				
					
						
							
							
								 
						
							
								dca6816d6a 
								
							 
						 
						
							
							
								
								Add logic for computing preprocessor file extensions for C++ files.  
							
							... 
							
							
							
							llvm-svn: 91505 
							
						 
						
							2009-12-16 05:02:47 +00:00  
				
					
						
							
							
								 
						
							
								f65a0c6768 
								
							 
						 
						
							
							
								
								scan-build/ccc-analyzer: start analyzing C++ FTW.  
							
							... 
							
							
							
							llvm-svn: 91398 
							
						 
						
							2009-12-15 02:35:54 +00:00  
				
					
						
							
							
								 
						
							
								f5303fe492 
								
							 
						 
						
							
							
								
								scan-build: when the build command is 'make', override the CC and CXX options by passing them as arguments to make.  This fixes <rdar://problem/6790224>.  
							
							... 
							
							
							
							llvm-svn: 91179 
							
						 
						
							2009-12-11 23:22:52 +00:00  
				
					
						
							
							
								 
						
							
								f92b446dd4 
								
							 
						 
						
							
							
								
								Remove more old references to clang-cc.  
							
							... 
							
							
							
							llvm-svn: 91177 
							
						 
						
							2009-12-11 23:12:52 +00:00  
				
					
						
							
							
								 
						
							
								5c512e63f4 
								
							 
						 
						
							
							
								
								Convert scan-build and ccc-analyzer over to using 'clang -cc1' instead of using 'clang-cc'.  
							
							... 
							
							
							
							llvm-svn: 91172 
							
						 
						
							2009-12-11 22:44:53 +00:00  
				
					
						
							
							
								 
						
							
								7bea9a1672 
								
							 
						 
						
							
							
								
								Enable '-analyzer-opt-analyze-nested-blocks' by default for testing.  
							
							... 
							
							
							
							llvm-svn: 90812 
							
						 
						
							2009-12-07 22:26:14 +00:00  
				
					
						
							
							
								 
						
							
								cb58439f34 
								
							 
						 
						
							
							
								
								Tuck away scan-build related files into tools/scan-build  
							
							... 
							
							
							
							llvm-svn: 90215 
							
						 
						
							2009-12-01 06:52:01 +00:00