Title: [171247] trunk
Revision
171247
Author
[email protected]
Date
2014-07-18 15:39:39 -0700 (Fri, 18 Jul 2014)

Log Message

Add a new 'analyze' target to the makefile. This will make use of a new
'PATH_TO_SCAN_BUILD' which, if set will wrap xcodebuild in the clang
static analyzer.
https://bugs.webkit.org/show_bug.cgi?id=135057
<rdar://problem/10193187>

Reviewed by David Kilzer.

* Makefile:
* Makefile.shared:
* Source/Makefile:

Modified Paths

Diff

Modified: trunk/ChangeLog (171246 => 171247)


--- trunk/ChangeLog	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/ChangeLog	2014-07-18 22:39:39 UTC (rev 171247)
@@ -1,3 +1,17 @@
+2014-07-18  Dana Burkart  <[email protected]>
+
+        Add a new 'analyze' target to the makefile. This will make use of a new
+        'PATH_TO_SCAN_BUILD' which, if set will wrap xcodebuild in the clang
+        static analyzer.
+        https://bugs.webkit.org/show_bug.cgi?id=135057
+        <rdar://problem/10193187>
+
+        Reviewed by David Kilzer.
+
+        * Makefile:
+        * Makefile.shared:
+        * Source/Makefile:
+
 2014-07-15  Ryuan Choi  <[email protected]>
 
         [CMAKE] ENABLE_ENCRYPTED_MEDIA_V2 should depend on ENABLE_VIDEO

Modified: trunk/Makefile (171246 => 171247)


--- trunk/Makefile	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/Makefile	2014-07-18 22:39:39 UTC (rev 171247)
@@ -12,6 +12,10 @@
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
 
+analyze:
+	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
+	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
+
 clean:
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done

Modified: trunk/Makefile.shared (171246 => 171247)


--- trunk/Makefile.shared	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/Makefile.shared	2014-07-18 22:39:39 UTC (rev 171247)
@@ -36,6 +36,14 @@
 	$(SCRIPTS_PATH)/set-webkit-configuration --release
 	( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
 
+analyze:
+	$(SCRIPTS_PATH)/set-webkit-configuration --release
+ifndef PATH_TO_SCAN_BUILD
+	( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) RUN_CLANG_STATIC_ANALYZER=YES | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
+else
+	( $(SET_COLOR_DIAGNOSTICS_ARG); $(PATH_TO_SCAN_BUILD) xcodebuild $(OTHER_OPTIONS) $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
+endif
+
 clean:
 	( $(SET_COLOR_DIAGNOSTICS_ARG); xcodebuild $(OTHER_OPTIONS) -alltargets clean $(XCODE_OPTIONS) | $(OUTPUT_FILTER) && exit $${PIPESTATUS[0]} )
 

Modified: trunk/Source/Makefile (171246 => 171247)


--- trunk/Source/Makefile	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/Source/Makefile	2014-07-18 22:39:39 UTC (rev 171247)
@@ -18,6 +18,10 @@
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
 
+analyze:
+	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
+	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
+
 clean:
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done

Modified: trunk/Tools/ChangeLog (171246 => 171247)


--- trunk/Tools/ChangeLog	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/Tools/ChangeLog	2014-07-18 22:39:39 UTC (rev 171247)
@@ -1,3 +1,15 @@
+2014-07-18  Dana Burkart  <[email protected]>
+
+        Add a new 'analyze' target to the makefile. This will make use of a new
+        'PATH_TO_SCAN_BUILD' which, if set will wrap xcodebuild in the clang
+        static analyzer.
+        https://bugs.webkit.org/show_bug.cgi?id=135057
+        <rdar://problem/10193187>
+
+        Reviewed by David Kilzer.
+
+        * Makefile:
+
 2014-07-18  Filip Pizlo  <[email protected]>
 
         Fix EFL+GTK.

Modified: trunk/Tools/Makefile (171246 => 171247)


--- trunk/Tools/Makefile	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/Tools/Makefile	2014-07-18 22:39:39 UTC (rev 171247)
@@ -16,6 +16,10 @@
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
 
+analyze:
+	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
+	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done
+
 clean:
 	@for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
 	if [ $$exit_status -ne 0 ]; then exit $$exit_status; fi; done

Modified: trunk/WebKitLibraries/ChangeLog (171246 => 171247)


--- trunk/WebKitLibraries/ChangeLog	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/WebKitLibraries/ChangeLog	2014-07-18 22:39:39 UTC (rev 171247)
@@ -1,3 +1,17 @@
+2014-07-18  Dana Burkart  <[email protected]>
+
+        Add a new 'analyze' target to the makefile. This will make use of a new
+        'PATH_TO_SCAN_BUILD' which, if set will wrap xcodebuild in the clang
+        static analyzer.
+        https://bugs.webkit.org/show_bug.cgi?id=135057
+        <rdar://problem/10193187>
+
+        Reviewed by David Kilzer.
+
+        * Makefile:
+        * Makefile.shared:
+        * Source/Makefile:
+
 2014-07-10  Alex Christensen  <[email protected]>
 
         Enable same features on all Windows ports.

Modified: trunk/WebKitLibraries/Makefile (171246 => 171247)


--- trunk/WebKitLibraries/Makefile	2014-07-18 22:24:36 UTC (rev 171246)
+++ trunk/WebKitLibraries/Makefile	2014-07-18 22:39:39 UTC (rev 171247)
@@ -18,3 +18,6 @@
 	$(SCRIPTS_PATH)/set-webkit-configuration --release
 	@$(MAKE) libs
 
+analyze:
+	$(SCRIPTS_PATH)/set-webkit-configuration --release
+	@$(MAKE) libs
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to