diff options
| author | Matt Wozniski | 2012-09-17 01:42:29 -0400 |
|---|---|---|
| committer | Matt Wozniski | 2012-09-17 01:53:39 -0400 |
| commit | f29c898443d65cc3fe2f040e700c64bba907288e (patch) | |
| tree | 359dc25f686e2204fd169dd6983fbcdc2ee65c84 /projects | |
| parent | fc1baac7f591e7d161fb7f2f30db33da51f94cb6 (diff) | |
| download | catch3-f29c898443d65cc3fe2f040e700c64bba907288e.tar.gz | |
Normalize include guards for all *.h and *.hpp
Some files had include guards that didn't match the file name, and
others were missing the include guards entirely.
Standardized this so that every include file has an include guard, and
all the guards are of the form TWOBLUECUBES_<FILENAME>_<EXT>_INCLUDED
Diffstat (limited to 'projects')
| -rw-r--r-- | projects/XCode3/OCTest/CatchOCTestCase.h | 6 | ||||
| -rw-r--r-- | projects/XCode3/OCTest/TestObj.h | 4 | ||||
| -rw-r--r-- | projects/XCode4/OCTest/OCTest/CatchOCTestCase.h | 6 | ||||
| -rw-r--r-- | projects/XCode4/OCTest/OCTest/TestObj.h | 4 | ||||
| -rw-r--r-- | projects/XCode4/iOSTest/iOSTest/TestObj.h | 4 | ||||
| -rw-r--r-- | projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h | 6 | ||||
| -rw-r--r-- | projects/runners/iTchRunner/internal/iTchRunnerMainView.h | 4 | ||||
| -rw-r--r-- | projects/runners/iTchRunner/internal/iTchRunnerReporter.h | 5 |
8 files changed, 36 insertions, 3 deletions
diff --git a/projects/XCode3/OCTest/CatchOCTestCase.h b/projects/XCode3/OCTest/CatchOCTestCase.h index 823f97aa..bd26239a 100644 --- a/projects/XCode3/OCTest/CatchOCTestCase.h +++ b/projects/XCode3/OCTest/CatchOCTestCase.h @@ -7,6 +7,8 @@ // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED +#define TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED #include "catch.hpp" @@ -18,4 +20,6 @@ TestObj* obj; } -@end
\ No newline at end of file +@end + +#endif // TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED diff --git a/projects/XCode3/OCTest/TestObj.h b/projects/XCode3/OCTest/TestObj.h index 26e59286..c39aaa03 100644 --- a/projects/XCode3/OCTest/TestObj.h +++ b/projects/XCode3/OCTest/TestObj.h @@ -7,6 +7,8 @@ // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef TWOBLUECUBES_TESTOBJ_H_INCLUDED +#define TWOBLUECUBES_TESTOBJ_H_INCLUDED #import <Cocoa/Cocoa.h> @@ -19,3 +21,5 @@ @property (nonatomic, assign ) int int_val; @end + +#endif // TWOBLUECUBES_TESTOBJ_H_INCLUDED diff --git a/projects/XCode4/OCTest/OCTest/CatchOCTestCase.h b/projects/XCode4/OCTest/OCTest/CatchOCTestCase.h index 823f97aa..bd26239a 100644 --- a/projects/XCode4/OCTest/OCTest/CatchOCTestCase.h +++ b/projects/XCode4/OCTest/OCTest/CatchOCTestCase.h @@ -7,6 +7,8 @@ // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED +#define TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED #include "catch.hpp" @@ -18,4 +20,6 @@ TestObj* obj; } -@end
\ No newline at end of file +@end + +#endif // TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED diff --git a/projects/XCode4/OCTest/OCTest/TestObj.h b/projects/XCode4/OCTest/OCTest/TestObj.h index be0a4141..8443921f 100644 --- a/projects/XCode4/OCTest/OCTest/TestObj.h +++ b/projects/XCode4/OCTest/OCTest/TestObj.h @@ -7,6 +7,8 @@ // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef TWOBLUECUBES_TESTOBJ_H_INCLUDED +#define TWOBLUECUBES_TESTOBJ_H_INCLUDED #import <Foundation/Foundation.h> @@ -22,3 +24,5 @@ @property (nonatomic, assign ) int int_val; @end + +#endif // TWOBLUECUBES_TESTOBJ_H_INCLUDED diff --git a/projects/XCode4/iOSTest/iOSTest/TestObj.h b/projects/XCode4/iOSTest/iOSTest/TestObj.h index 388e9a8d..de672502 100644 --- a/projects/XCode4/iOSTest/iOSTest/TestObj.h +++ b/projects/XCode4/iOSTest/iOSTest/TestObj.h @@ -7,6 +7,8 @@ // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#ifndef TWOBLUECUBES_TESTOBJ_H_INCLUDED +#define TWOBLUECUBES_TESTOBJ_H_INCLUDED #import <Foundation/Foundation.h> @@ -19,3 +21,5 @@ @property (nonatomic, assign ) int int_val; @end + +#endif // TWOBLUECUBES_TESTOBJ_H_INCLUDED diff --git a/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h b/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h index 4f83286d..a98b45d5 100644 --- a/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h +++ b/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h @@ -6,6 +6,8 @@ * Copyright 2011 Two Blue Cubes Ltd. All rights reserved. * */ +#ifndef TWOBLUECUBES_ITCHRUNNERAPPDELEGATE_H_INCLUDED +#define TWOBLUECUBES_ITCHRUNNERAPPDELEGATE_H_INCLUDED #import "iTchRunnerMainView.h" @@ -107,4 +109,6 @@ -@end
\ No newline at end of file +@end + +#endif // TWOBLUECUBES_ITCHRUNNERAPPDELEGATE_H_INCLUDED diff --git a/projects/runners/iTchRunner/internal/iTchRunnerMainView.h b/projects/runners/iTchRunner/internal/iTchRunnerMainView.h index f4e64be2..12f9c5db 100644 --- a/projects/runners/iTchRunner/internal/iTchRunnerMainView.h +++ b/projects/runners/iTchRunner/internal/iTchRunnerMainView.h @@ -6,6 +6,8 @@ * Copyright 2011 Two Blue Cubes Ltd. All rights reserved. * */ +#ifndef TWOBLUECUBES_ITCHRUNNERMAINVIEW_H_INCLUDED +#define TWOBLUECUBES_ITCHRUNNERMAINVIEW_H_INCLUDED #include "internal/catch_config.hpp" #include "internal/catch_runner_impl.hpp" @@ -143,3 +145,5 @@ @end + +#endif // TWOBLUECUBES_ITCHRUNNERMAINVIEW_H_INCLUDED diff --git a/projects/runners/iTchRunner/internal/iTchRunnerReporter.h b/projects/runners/iTchRunner/internal/iTchRunnerReporter.h index eb89e85a..08bd1aac 100644 --- a/projects/runners/iTchRunner/internal/iTchRunnerReporter.h +++ b/projects/runners/iTchRunner/internal/iTchRunnerReporter.h @@ -6,6 +6,9 @@ * Copyright 2011 Two Blue Cubes Ltd. All rights reserved. * */ +#ifndef TWOBLUECUBES_ITCHRUNNERREPORTER_H_INCLUDED +#define TWOBLUECUBES_ITCHRUNNERREPORTER_H_INCLUDED + #include "catch.hpp" @protocol iTchRunnerDelegate @@ -106,3 +109,5 @@ namespace Catch id<iTchRunnerDelegate> m_delegate; }; } + +#endif // TWOBLUECUBES_ITCHRUNNERREPORTER_H_INCLUDED |