aboutsummaryrefslogtreecommitdiff
path: root/GTMDefines.h
Commit message (Collapse)AuthorAge
* GTMDefines.h - fix typo.Gravatar David Phillip Oster2020-01-29
|
* Avoid nullability compiler/clang-tidy warnings in _GTMDevAssert.Gravatar Michael Wyman2020-01-21
| | | | The string parameters in NSAssertionHandler's -handleFailureInFunction:… method are declared nonnull, but converting __PRETTY_FUNCTION__ and __FILE__ to NSString (via +[NSString stringWithUTF8String:] returns nullable, leading to warnings.
* Remove GTM_FOREACH_* macros. (#201)Gravatar dmaclach2018-11-13
| | | These have been useless since macOS 10.5.
* Added -Wreserved-id-macro and but exclude existing nonconforming macros (#141)Gravatar brian-intuit2017-05-23
| | | | Added -Wreserved-id-macro and but exclude existing nonconforming macros
* First pass removing all deprecated uses of GTM_IPHONE_USE_SENTEST.Gravatar Thomas Van Lenten2016-12-05
| | | | SENTEST as a framework doesn't exist anymore so there's no point in supporting it.
* First cut at pruning things/updating things.Gravatar dmaclach2016-10-07
| | | | | | | | | | | | | | | Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
* Fixes minor typo in comment.Gravatar Thomas Van Lenten2016-09-16
|
* Keep GTM building after clang r251041 when targeting 10.6Gravatar Thomas Van Lenten2015-11-03
|
* Use _Static_assert if supportedGravatar Thomas Van Lenten2015-09-08
|
* Add support for XCTest (as opposed to OCUnit) to GTM. Define ↵Gravatar gtm.daemon2014-06-02
| | | | | | GTM_USING_XCTEST to 1 to use it. DELTA=486 (352 added, 0 deleted, 134 changed) DELTA_BY_EXTENSION=h=467,m=15,mm=1,txt=3
* Comment on the difference between GTMCFAutorelease and iOS 7's ↵Gravatar gtm.daemon2014-04-26
| | | | | | CFAutorelease. Update GTM's definition of the standard OS X/iOS version macros. Remove GTMDefines dependency from GTMNSString+URLArguments and GTMURITemplate. DELTA=38 (27 added, 4 deleted, 7 changed) DELTA_BY_EXTENSION=h=23,m=11
* More support for allowing GTM to compile with -Wundef.Gravatar gtm.daemon2014-02-24
| | | DELTA=8 (8 added, 0 deleted, 0 changed)
* Fix up some cases of GTM not compiling with -Wundef on.Gravatar gtm.daemon2014-02-21
| | | DELTA=23 (16 added, 0 deleted, 7 changed)
* Fix build of Mac GTM project with static analyzer. Remove ↵Gravatar gtm.daemon2013-12-19
| | | | | GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton. DELTA=447 (49 added, 296 deleted, 102 changed)
* Fix nonnull detection on older GCC.Gravatar gtm.daemon2013-01-31
| | | DELTA=6 (4 added, 0 deleted, 2 changed)
* Fix GTM_NONNULL macro to properly support multiple non-null parameters, like ↵Gravatar gtm.daemon2013-01-31
| | | | | __attribute__((nonnull(1,2,3))) DELTA=5 (4 added, 0 deleted, 1 changed)
* [Author: thomasvl]Gravatar gtm.daemon2013-01-02
| | | | | | | | Remove the GC support code. Add the needed images for the iOS unittests under iOS 6.0. Add a workspace file for the iPhone project. R=dmaclach DELTA=215 (85 added, 122 deleted, 8 changed)
* [Author: dpb]Gravatar gtm.daemon2012-08-14
| | | | | | | | Avoid warning of dead store to self when using GTMInvalidateInitializer with ARC. R=dmaclach APPROVED=dmaclach DELTA=1 (1 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-07-24
| | | | | | Clean up all of our format string issues amongst some other fun stuff. R=thomasvl DELTA=167 (90 added, 8 deleted, 69 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-06-14
| | | | | | Pile of fixes for trunk version of clang. R=dmaclach DELTA=59 (26 added, 0 deleted, 33 changed)
* [Author: levai]Gravatar gtm.daemon2012-05-17
| | | | | | | Macro for invalidating initializers. R=dmaclach APPROVED=dmaclach DELTA=18 (18 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-01-03
| | | | | | | | Add the 10.7 SDK for unit testing support. Add SDK support for iOS unit testing. Map 'arch' to "iPhone"/"iPad" to allow different images/states based on the unit testing form factor. R=dmaclach
* [Author: thomasvl]Gravatar gtm.daemon2011-11-29
| | | | | | | | | | | | | | | Move a bunch of tests over onto the GTM test base class. Fetch some test images from the bundle the test is compiled into instead of assuming main app. Change the default iOS logging directory to just be the documents directory since it should work for all iOS versions. Add initial support for using SenTestingKit instead of our custom version to allow the Xcode 4 UI for unittesting. Add a target for using SenTestingKit. Add a shell app for the TEST_HOST for SenTestingKit usage (since there are UI tests, we need to use a real app and not the octest binary). R=dmaclach DELTA=517 (482 added, 9 deleted, 26 changed)
* [Author: dmaclach]Gravatar gtm.daemon2011-09-09
| | | | | | Clean up clang issues in GTM. The one in GTMABAddressBook is a weird one, that I'll try and file a bug on. R=thomasvl DELTA=92 (53 added, 6 deleted, 33 changed)
* [Author: thomasvl]Gravatar gtm.daemon2011-08-23
| | | | | | | | | | | | | | | This will need followup, but this is a quick and dirty to fix the things that have gone very stale. - Stop setting mac min sdk for iOS, there is an iOS version now (and setting it can cause linker errors on newer xcodes). - Add iOS xcconfigs that use the current SDK and have projects set their min version as that's how Apple wants things. - Add new config that uses the current SDK to make development workable. - Block codesigning on the iOS unittests for now. - Block format string warnings on logger until we can sort out a way to shut it up for gcc 4.2 or actually make it work. R=dmaclach DELTA=289 (277 added, 3 deleted, 9 changed)
* [Author: thomasvl]Gravatar gtm.daemon2010-09-30
| | | | | | Fix up endif to match. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-09-30
| | | | | | | GTM_PROPERTY Macro defined to make working with willChangeValueForKey: and didChangeValueForKey: safer. R=thomasvl DELTA=13 (13 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-09-02
| | | | | | Add a GTM_UNUSED macro to deal with issue on the mailing lists. R=thomasvl DELTA=7 (7 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-08-27
| | | | | | | Initial look at GTMServiceManagement. Added tests and project changes. R=thomasvl DELTA=844 (840 added, 0 deleted, 4 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-08-26
| | | | | | Add CF_FORMAT_* Support. R=thomasvl DELTA=11 (11 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-07-13
| | | | | | | | Put a guard around the protocol definitions for Chromium who want to be able to control them. Also needed for QSB due to bringing in GTMDefines from a variety of sources. R=grobbins DELTA=3 (1 added, 0 deleted, 2 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-07-01
| | | | | | Fix up GTMiPhone Unit test issue with tests never starting. DELTA=64 (63 added, 0 deleted, 1 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-06-15
| | | | | | | Fix up the script so that we can build the iPhone target independent of the Mac target so that we can clean up the pulse config files to only build the one target without building multiple projects. DELTA=649 (626 added, 6 deleted, 17 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-06-02
| | | | | | | | | Cleans up builds of GTM on Snow Leopard with gcc 4.2. Cleans up iPhone configs Adds libgcov for Snow Leopard Fixes up some small bugs. R=thomasvl DELTA=2028 (972 added, 990 deleted, 66 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-05-14
| | | | | | | | | There are still a couple of errors occurring, but this fixes up the majority of stuff. I figured I'd send it out to you now to take a look at in the morning, and then we can clean up the last couple of issues. Not quite sure what to do about the naming of data files so that we can encompass ranges of system version (e.g. this file applies to 10.5 and 10.6 but not 10.4 or 10.7. R=thomasvl DELTA=10598 (10211 added, 70 deleted, 317 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-05-06
| | | | | | | So I can get around warnings on CoverStory on SnowLeopard. Hopefully Apple will fix this on their end and we can drop back to NSLocalizedString in future SDKs. R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2010-02-24
| | | | | | | Some stuff we don't need in GTM right now, but will be useful in QSB, and seemed to make sense as part of the lower level toolkit. R=thomasvl DELTA=26 (26 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2010-02-02
| | | | | | Added GTM_NSSTRINGIFY_MACRO for turning other macros into NSStrings. R=thomasvl DELTA=10 (10 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-08-11
| | | | | | | | | | Fixed up GTMGoogleSearch so that it actually works on the iPhone Device. Fixed up some GTMNSObject+KVO issues on the iPhone Device. Fixed up GTMObjC2Runtime so that it actually compiles on the device. Added debugging capabilities to KVO with GTM. Removed unnecessary GTM_* system version macros from GTMDefines.h R=thomasvl DELTA=185 (153 added, 19 deleted, 13 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-06-03
| | | | | | Get rid of GTM_MACOS_WEAK as it is only used in one place and we can code around that. DELTA=6 (1 added, 4 deleted, 1 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-05-06
| | | | | | | Made GTMABAddressBook work on both the iPhone and the Desktop, giving you a single interface to both. DELTA=2539 (2173 added, 79 deleted, 287 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-04-29
| | | | | | Fixes up GTMDefines so that it can be parsed by headerdoc. OCL=10963680 TBR=thomasvl CC=gtm-eng
* - allow target_os_iphone to be defined to zero (like some new headers do).Gravatar thomasvl@gmail.com2009-03-05
| | | | - move the include of system headers up for safety.
* Dropping the Fetcher and ProgressMonitorInputStream, leaving pointers to theGravatar thomasvl@gmail.com2009-02-27
| | | | | GData Obj-C client ones since they are pretty much matches and keeps us from having to maintain two copies of the same basic things.
* a few fixes (and bug fix) found by clangGravatar thomasvl@gmail.com2009-02-27
|
* - turned off _debug framework support in tests since we now capture a lot moreGravatar thomasvl@gmail.com2009-01-09
| | | | | | | | | | | | in log validation. - Added GTM_SUPPORT_GC for controlling the inclusion of GC related code. - If you are using GTMUnitTestDevLog, it also tries to capture logs from NSAssert. - Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses FastEnumeration. - GTMNSWorkspace+Running gives a variety of ways of determining the attributes of running processes.
* - Updated some tests for 10.5.6.Gravatar thomasvl@gmail.com2008-12-29
| | | | | | - Updated some tests for debug vs. release differences. (added help on log validation for this). - Some fixes build issues w/ different os versions.
* - GTMStackTrace works on 10.5+ (and iPhone) using NSThread to build the call ↵Gravatar thomasvl@gmail.com2008-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | stack. - Added GTM_EXTERN that makes it easier to mix and match objc and objc++ code. - Added GTMHotKeysTextField for display and editing of hot key settings. - Added GTMCarbonEvent for dealing with Carbon Events and HotKeys in a ObjC like way. - Backported the Atomic Barrier Swap functions for Objective C back to Tiger. - Added a variety of new functions to GTMUnitTestingUtilities for checking if the screensaver is in the way, waiting on user events, and generating keystrokes. - If you are using any Carbon routines that log (DebugStr, AssertMacros.h) and use GTMUnitTestDevLog, the log routines now go through _GTMDevLog so that they can be caught in GTMUnitTestDevLog and verified like any _GTMDevLog calls you may make. For an example of this in action see GTMCarbonEventTest.m. - Added GTMFileSystemKQueue. It provides a simple wrapper for kqueuing something in the file system and tracking changes to it. - RunIPhoneUnitTest.sh now cleans up the user home directory and creates a documents directory within it, used when requesting a NSDocumentDirectory. - Added GTMNSFileManager+Carbon which contains routines for path <-> Alias conversion and path <-> FSRef conversion. - Added GTMNSArray+Merge for merging one array into another with or without a custom merging function, returning a new array with the merged contents.
* - Added has ability to check if a script has an open handler to ↵Gravatar thomasvl@gmail.com2008-11-04
| | | | | | | | | GTMNSAppleScript+Handler. - GTMStackTrace support for building a trace from the call stack in an NSException (for 10.5+ and iPhone). - Added GTMUIFont+LineHeight. - Cleaned up some OS version checks to use constants instead of numbers directly.
* - GTM_INLINE will make sure a function gets inlined, and provides a consistentGravatar thomasvl@gmail.com2008-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | way for all GTM code to do it. - Added GTMDebugThreadValidation to allow you to enforce the fact that your code must run in the main thread in DEBUG builds. - Updated some internals of the iPhone unittesting so it doesn't double print the test descriptions, file names, or lines numbers of a test failure line. Also includes the test names in the error output. - Changed the xcconfigs so that know it's easier to set different settings at the different levels and not accidentally overwrite settings set at lower levels in the "settings collapse". Also tightened up warnings significantly. - Changed how gtm_unitTestExposedBindingsTestValues works. If you have an implementation of gtm_unitTestExposedBindingsTestValues in your own code you will need to update to the new way of calling. See implementations in GTMNSObject+BindingUnitTesting.m for details. - Added support for grabbing the build number for a particular OS in GTMSystemVersion and easily comparing it to known build numbers, and switched some types from in GTMSystemVersion from "int" to SInt32 to make 64 bit work better. - Added support for SnowLeopard (10A96). We build cleanly with the 10.6 SDKs and all radar checks were updated accordingly. Build All script was also updated to build on SnowLeopard if you have the SDK available. - Turned off building ppc64 GTM because the SnowLeopard SDK currently doesn't have ppc64 support, so SenTestCase isn't defined. This makes it impossible to build the ppc64 10.5 config on SnowLeopard. We have left the setting in the xcconfig for those of you who need it, but have disabled it in the GTM project settings. - Turned on stack smashing protection on the debug builds for all Leopard and above. - Added ability to easily do leak checking by defining the GTM_ENABLE_LEAKS environment variable. It isn't on by default because several of Apple's frameworks leak. You can work around these false positives by using the GTM_LEAKS_SYMBOLS_TO_IGNORE environment variable. Also if you turn on leaks make sure to turn off zombies by defining the GTM_DISABLE_ZOMBIES variable, otherwise every memory allocation you do will look like a leak.