mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
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
This commit is contained in:
@@ -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
|
||||
@end
|
||||
|
||||
#endif // TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
@end
|
||||
|
||||
#endif // TWOBLUECUBES_CATCHOCTESTCASE_H_INCLUDED
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
@end
|
||||
|
||||
#endif // TWOBLUECUBES_ITCHRUNNERAPPDELEGATE_H_INCLUDED
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user