Xcode-iOS/SDLtest/SDL2test.xcodeproj/project.pbxproj
author Ryan C. Gordon
Mon, 05 Jan 2015 01:41:42 -0500
changeset 9306 817656bd36ec
parent 8982 a41a6b334028
child 10340 5724f5087acd
permissions -rw-r--r--
Clang static analysis builds should use C runtime directly.

This is a little macro magic to use malloc() directly instead of SDL_malloc(),
etc, so static analysis tests that know about the C runtime can function
properly, and understand that we are dealing with heap allocations, etc.

This changed our static analysis report from 5 outstanding bugs to 30.

5x as many bugs were hidden by SDL_malloc() not being recognized as malloc()
by the static analyzer!
     1 // !$*UTF8*$!
     2 {
     3 	archiveVersion = 1;
     4 	classes = {
     5 	};
     6 	objectVersion = 46;
     7 	objects = {
     8 
     9 /* Begin PBXBuildFile section */
    10 		AA1EE462176059AB0029C7A5 /* SDL_test_common.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE454176059AB0029C7A5 /* SDL_test_common.c */; };
    11 		AA1EE463176059AB0029C7A5 /* SDL_test_compare.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE455176059AB0029C7A5 /* SDL_test_compare.c */; };
    12 		AA1EE464176059AB0029C7A5 /* SDL_test_crc32.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE456176059AB0029C7A5 /* SDL_test_crc32.c */; };
    13 		AA1EE465176059AB0029C7A5 /* SDL_test_font.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE457176059AB0029C7A5 /* SDL_test_font.c */; };
    14 		AA1EE466176059AB0029C7A5 /* SDL_test_fuzzer.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE458176059AB0029C7A5 /* SDL_test_fuzzer.c */; };
    15 		AA1EE467176059AB0029C7A5 /* SDL_test_harness.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE459176059AB0029C7A5 /* SDL_test_harness.c */; };
    16 		AA1EE468176059AB0029C7A5 /* SDL_test_imageBlit.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45A176059AB0029C7A5 /* SDL_test_imageBlit.c */; };
    17 		AA1EE469176059AB0029C7A5 /* SDL_test_imageBlitBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45B176059AB0029C7A5 /* SDL_test_imageBlitBlend.c */; };
    18 		AA1EE46A176059AB0029C7A5 /* SDL_test_imageFace.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45C176059AB0029C7A5 /* SDL_test_imageFace.c */; };
    19 		AA1EE46B176059AB0029C7A5 /* SDL_test_imagePrimitives.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45D176059AB0029C7A5 /* SDL_test_imagePrimitives.c */; };
    20 		AA1EE46C176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45E176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c */; };
    21 		AA1EE46D176059AB0029C7A5 /* SDL_test_log.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */; };
    22 		AA1EE46E176059AB0029C7A5 /* SDL_test_md5.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */; };
    23 		AA1EE46F176059AB0029C7A5 /* SDL_test_random.c in Sources */ = {isa = PBXBuildFile; fileRef = AA1EE461176059AB0029C7A5 /* SDL_test_random.c */; };
    24 /* End PBXBuildFile section */
    25 
    26 /* Begin PBXFileReference section */
    27 		AA1EE4461760589B0029C7A5 /* libSDL2test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDL2test.a; sourceTree = BUILT_PRODUCTS_DIR; };
    28 		AA1EE454176059AB0029C7A5 /* SDL_test_common.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_common.c; path = ../../src/test/SDL_test_common.c; sourceTree = "<group>"; };
    29 		AA1EE455176059AB0029C7A5 /* SDL_test_compare.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_compare.c; path = ../../src/test/SDL_test_compare.c; sourceTree = "<group>"; };
    30 		AA1EE456176059AB0029C7A5 /* SDL_test_crc32.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_crc32.c; path = ../../src/test/SDL_test_crc32.c; sourceTree = "<group>"; };
    31 		AA1EE457176059AB0029C7A5 /* SDL_test_font.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_font.c; path = ../../src/test/SDL_test_font.c; sourceTree = "<group>"; };
    32 		AA1EE458176059AB0029C7A5 /* SDL_test_fuzzer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_fuzzer.c; path = ../../src/test/SDL_test_fuzzer.c; sourceTree = "<group>"; };
    33 		AA1EE459176059AB0029C7A5 /* SDL_test_harness.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_harness.c; path = ../../src/test/SDL_test_harness.c; sourceTree = "<group>"; };
    34 		AA1EE45A176059AB0029C7A5 /* SDL_test_imageBlit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_imageBlit.c; path = ../../src/test/SDL_test_imageBlit.c; sourceTree = "<group>"; };
    35 		AA1EE45B176059AB0029C7A5 /* SDL_test_imageBlitBlend.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_imageBlitBlend.c; path = ../../src/test/SDL_test_imageBlitBlend.c; sourceTree = "<group>"; };
    36 		AA1EE45C176059AB0029C7A5 /* SDL_test_imageFace.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_imageFace.c; path = ../../src/test/SDL_test_imageFace.c; sourceTree = "<group>"; };
    37 		AA1EE45D176059AB0029C7A5 /* SDL_test_imagePrimitives.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_imagePrimitives.c; path = ../../src/test/SDL_test_imagePrimitives.c; sourceTree = "<group>"; };
    38 		AA1EE45E176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_imagePrimitivesBlend.c; path = ../../src/test/SDL_test_imagePrimitivesBlend.c; sourceTree = "<group>"; };
    39 		AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_log.c; path = ../../src/test/SDL_test_log.c; sourceTree = "<group>"; };
    40 		AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_md5.c; path = ../../src/test/SDL_test_md5.c; sourceTree = "<group>"; };
    41 		AA1EE461176059AB0029C7A5 /* SDL_test_random.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_test_random.c; path = ../../src/test/SDL_test_random.c; sourceTree = "<group>"; };
    42 /* End PBXFileReference section */
    43 
    44 /* Begin PBXFrameworksBuildPhase section */
    45 		AA1EE4431760589B0029C7A5 /* Frameworks */ = {
    46 			isa = PBXFrameworksBuildPhase;
    47 			buildActionMask = 2147483647;
    48 			files = (
    49 			);
    50 			runOnlyForDeploymentPostprocessing = 0;
    51 		};
    52 /* End PBXFrameworksBuildPhase section */
    53 
    54 /* Begin PBXGroup section */
    55 		AA1EE43D1760589B0029C7A5 = {
    56 			isa = PBXGroup;
    57 			children = (
    58 				AA1EE453176059770029C7A5 /* Library Source */,
    59 				AA1EE4471760589B0029C7A5 /* Products */,
    60 			);
    61 			sourceTree = "<group>";
    62 		};
    63 		AA1EE4471760589B0029C7A5 /* Products */ = {
    64 			isa = PBXGroup;
    65 			children = (
    66 				AA1EE4461760589B0029C7A5 /* libSDL2test.a */,
    67 			);
    68 			name = Products;
    69 			sourceTree = "<group>";
    70 		};
    71 		AA1EE453176059770029C7A5 /* Library Source */ = {
    72 			isa = PBXGroup;
    73 			children = (
    74 				AA1EE454176059AB0029C7A5 /* SDL_test_common.c */,
    75 				AA1EE455176059AB0029C7A5 /* SDL_test_compare.c */,
    76 				AA1EE456176059AB0029C7A5 /* SDL_test_crc32.c */,
    77 				AA1EE457176059AB0029C7A5 /* SDL_test_font.c */,
    78 				AA1EE458176059AB0029C7A5 /* SDL_test_fuzzer.c */,
    79 				AA1EE459176059AB0029C7A5 /* SDL_test_harness.c */,
    80 				AA1EE45A176059AB0029C7A5 /* SDL_test_imageBlit.c */,
    81 				AA1EE45B176059AB0029C7A5 /* SDL_test_imageBlitBlend.c */,
    82 				AA1EE45C176059AB0029C7A5 /* SDL_test_imageFace.c */,
    83 				AA1EE45D176059AB0029C7A5 /* SDL_test_imagePrimitives.c */,
    84 				AA1EE45E176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c */,
    85 				AA1EE45F176059AB0029C7A5 /* SDL_test_log.c */,
    86 				AA1EE460176059AB0029C7A5 /* SDL_test_md5.c */,
    87 				AA1EE461176059AB0029C7A5 /* SDL_test_random.c */,
    88 			);
    89 			name = "Library Source";
    90 			sourceTree = "<group>";
    91 		};
    92 /* End PBXGroup section */
    93 
    94 /* Begin PBXHeadersBuildPhase section */
    95 		AA1EE4441760589B0029C7A5 /* Headers */ = {
    96 			isa = PBXHeadersBuildPhase;
    97 			buildActionMask = 2147483647;
    98 			files = (
    99 			);
   100 			runOnlyForDeploymentPostprocessing = 0;
   101 		};
   102 /* End PBXHeadersBuildPhase section */
   103 
   104 /* Begin PBXNativeTarget section */
   105 		AA1EE4451760589B0029C7A5 /* SDL2test */ = {
   106 			isa = PBXNativeTarget;
   107 			buildConfigurationList = AA1EE44A1760589B0029C7A5 /* Build configuration list for PBXNativeTarget "SDL2test" */;
   108 			buildPhases = (
   109 				AA1EE4421760589B0029C7A5 /* Sources */,
   110 				AA1EE4431760589B0029C7A5 /* Frameworks */,
   111 				AA1EE4441760589B0029C7A5 /* Headers */,
   112 			);
   113 			buildRules = (
   114 			);
   115 			dependencies = (
   116 			);
   117 			name = SDL2test;
   118 			productName = SDL2test;
   119 			productReference = AA1EE4461760589B0029C7A5 /* libSDL2test.a */;
   120 			productType = "com.apple.product-type.library.static";
   121 		};
   122 /* End PBXNativeTarget section */
   123 
   124 /* Begin PBXProject section */
   125 		AA1EE43E1760589B0029C7A5 /* Project object */ = {
   126 			isa = PBXProject;
   127 			attributes = {
   128 				LastUpgradeCheck = 0460;
   129 				ORGANIZATIONNAME = "Sam Lantinga";
   130 			};
   131 			buildConfigurationList = AA1EE4411760589B0029C7A5 /* Build configuration list for PBXProject "SDL2test" */;
   132 			compatibilityVersion = "Xcode 3.2";
   133 			developmentRegion = English;
   134 			hasScannedForEncodings = 0;
   135 			knownRegions = (
   136 				en,
   137 			);
   138 			mainGroup = AA1EE43D1760589B0029C7A5;
   139 			productRefGroup = AA1EE4471760589B0029C7A5 /* Products */;
   140 			projectDirPath = "";
   141 			projectRoot = "";
   142 			targets = (
   143 				AA1EE4451760589B0029C7A5 /* SDL2test */,
   144 			);
   145 		};
   146 /* End PBXProject section */
   147 
   148 /* Begin PBXSourcesBuildPhase section */
   149 		AA1EE4421760589B0029C7A5 /* Sources */ = {
   150 			isa = PBXSourcesBuildPhase;
   151 			buildActionMask = 2147483647;
   152 			files = (
   153 				AA1EE462176059AB0029C7A5 /* SDL_test_common.c in Sources */,
   154 				AA1EE463176059AB0029C7A5 /* SDL_test_compare.c in Sources */,
   155 				AA1EE464176059AB0029C7A5 /* SDL_test_crc32.c in Sources */,
   156 				AA1EE465176059AB0029C7A5 /* SDL_test_font.c in Sources */,
   157 				AA1EE466176059AB0029C7A5 /* SDL_test_fuzzer.c in Sources */,
   158 				AA1EE467176059AB0029C7A5 /* SDL_test_harness.c in Sources */,
   159 				AA1EE468176059AB0029C7A5 /* SDL_test_imageBlit.c in Sources */,
   160 				AA1EE469176059AB0029C7A5 /* SDL_test_imageBlitBlend.c in Sources */,
   161 				AA1EE46A176059AB0029C7A5 /* SDL_test_imageFace.c in Sources */,
   162 				AA1EE46B176059AB0029C7A5 /* SDL_test_imagePrimitives.c in Sources */,
   163 				AA1EE46C176059AB0029C7A5 /* SDL_test_imagePrimitivesBlend.c in Sources */,
   164 				AA1EE46D176059AB0029C7A5 /* SDL_test_log.c in Sources */,
   165 				AA1EE46E176059AB0029C7A5 /* SDL_test_md5.c in Sources */,
   166 				AA1EE46F176059AB0029C7A5 /* SDL_test_random.c in Sources */,
   167 			);
   168 			runOnlyForDeploymentPostprocessing = 0;
   169 		};
   170 /* End PBXSourcesBuildPhase section */
   171 
   172 /* Begin XCBuildConfiguration section */
   173 		AA1EE4481760589B0029C7A5 /* Debug */ = {
   174 			isa = XCBuildConfiguration;
   175 			buildSettings = {
   176 				ALWAYS_SEARCH_USER_PATHS = NO;
   177 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
   178 				CLANG_CXX_LIBRARY = "libc++";
   179 				CLANG_WARN_CONSTANT_CONVERSION = YES;
   180 				CLANG_WARN_EMPTY_BODY = YES;
   181 				CLANG_WARN_ENUM_CONVERSION = YES;
   182 				CLANG_WARN_INT_CONVERSION = YES;
   183 				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
   184 				COPY_PHASE_STRIP = NO;
   185 				GCC_C_LANGUAGE_STANDARD = gnu99;
   186 				GCC_DYNAMIC_NO_PIC = NO;
   187 				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
   188 				GCC_OPTIMIZATION_LEVEL = 0;
   189 				GCC_PREPROCESSOR_DEFINITIONS = (
   190 					"DEBUG=1",
   191 					"$(inherited)",
   192 				);
   193 				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
   194 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
   195 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   196 				GCC_WARN_UNINITIALIZED_AUTOS = YES;
   197 				GCC_WARN_UNUSED_VARIABLE = YES;
   198 				MACOSX_DEPLOYMENT_TARGET = 10.8;
   199 				ONLY_ACTIVE_ARCH = YES;
   200 				SDKROOT = iphoneos;
   201 			};
   202 			name = Debug;
   203 		};
   204 		AA1EE4491760589B0029C7A5 /* Release */ = {
   205 			isa = XCBuildConfiguration;
   206 			buildSettings = {
   207 				ALWAYS_SEARCH_USER_PATHS = NO;
   208 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
   209 				CLANG_CXX_LIBRARY = "libc++";
   210 				CLANG_WARN_CONSTANT_CONVERSION = YES;
   211 				CLANG_WARN_EMPTY_BODY = YES;
   212 				CLANG_WARN_ENUM_CONVERSION = YES;
   213 				CLANG_WARN_INT_CONVERSION = YES;
   214 				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
   215 				COPY_PHASE_STRIP = YES;
   216 				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
   217 				GCC_C_LANGUAGE_STANDARD = gnu99;
   218 				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
   219 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
   220 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
   221 				GCC_WARN_UNINITIALIZED_AUTOS = YES;
   222 				GCC_WARN_UNUSED_VARIABLE = YES;
   223 				MACOSX_DEPLOYMENT_TARGET = 10.8;
   224 				SDKROOT = iphoneos;
   225 			};
   226 			name = Release;
   227 		};
   228 		AA1EE44B1760589B0029C7A5 /* Debug */ = {
   229 			isa = XCBuildConfiguration;
   230 			buildSettings = {
   231 				EXECUTABLE_PREFIX = lib;
   232 				HEADER_SEARCH_PATHS = ../../include;
   233 				PRODUCT_NAME = "$(TARGET_NAME)";
   234 			};
   235 			name = Debug;
   236 		};
   237 		AA1EE44C1760589B0029C7A5 /* Release */ = {
   238 			isa = XCBuildConfiguration;
   239 			buildSettings = {
   240 				EXECUTABLE_PREFIX = lib;
   241 				HEADER_SEARCH_PATHS = ../../include;
   242 				PRODUCT_NAME = "$(TARGET_NAME)";
   243 			};
   244 			name = Release;
   245 		};
   246 /* End XCBuildConfiguration section */
   247 
   248 /* Begin XCConfigurationList section */
   249 		AA1EE4411760589B0029C7A5 /* Build configuration list for PBXProject "SDL2test" */ = {
   250 			isa = XCConfigurationList;
   251 			buildConfigurations = (
   252 				AA1EE4481760589B0029C7A5 /* Debug */,
   253 				AA1EE4491760589B0029C7A5 /* Release */,
   254 			);
   255 			defaultConfigurationIsVisible = 0;
   256 			defaultConfigurationName = Release;
   257 		};
   258 		AA1EE44A1760589B0029C7A5 /* Build configuration list for PBXNativeTarget "SDL2test" */ = {
   259 			isa = XCConfigurationList;
   260 			buildConfigurations = (
   261 				AA1EE44B1760589B0029C7A5 /* Debug */,
   262 				AA1EE44C1760589B0029C7A5 /* Release */,
   263 			);
   264 			defaultConfigurationIsVisible = 0;
   265 			defaultConfigurationName = Release;
   266 		};
   267 /* End XCConfigurationList section */
   268 	};
   269 	rootObject = AA1EE43E1760589B0029C7A5 /* Project object */;
   270 }