Cleanup: ensure header guards come first

Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.
This commit is contained in:
Campbell Barton 2019-01-10 08:46:38 +11:00
parent f87b93a567
commit 5100e4419e
5 changed files with 14 additions and 17 deletions

@ -18,8 +18,8 @@
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef __CLOG_H__
#define __CLOG_H__
#ifndef __CLG_LOG_H__
#define __CLG_LOG_H__
/** \file clog/CLG_log.h
* \ingroup clog
@ -211,4 +211,4 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
}
#endif
#endif /* __CLOG_H__ */
#endif /* __CLG_LOG_H__ */

@ -24,16 +24,15 @@
* \ingroup GHOST
*/
#ifndef __GHOST_EVENTNDOF_H__
#define __GHOST_EVENTNDOF_H__
#ifndef WITH_INPUT_NDOF
# error NDOF code included in non-NDOF-enabled build
#endif
#ifndef __GHOST_EVENTNDOF_H__
#define __GHOST_EVENTNDOF_H__
#include "GHOST_Event.h"
class GHOST_EventNDOFMotion : public GHOST_Event
{
protected:

@ -21,16 +21,15 @@
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef __GHOST_NDOFMANAGER_H__
#define __GHOST_NDOFMANAGER_H__
#ifndef WITH_INPUT_NDOF
# error NDOF code included in non-NDOF-enabled build
#endif
#ifndef __GHOST_NDOFMANAGER_H__
#define __GHOST_NDOFMANAGER_H__
#include "GHOST_System.h"
// #define DEBUG_NDOF_MOTION
// #define DEBUG_NDOF_BUTTONS

@ -20,14 +20,14 @@
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef __BLI_ENDIAN_SWITCH_INLINE_H__
#define __BLI_ENDIAN_SWITCH_INLINE_H__
/* only include from header */
#ifndef __BLI_ENDIAN_SWITCH_H__
# error "this file isnt to be directly included"
#endif
#ifndef __BLI_ENDIAN_SWITCH_INLINE_H__
#define __BLI_ENDIAN_SWITCH_INLINE_H__
/** \file blender/blenlib/BLI_endian_switch_inline.h
* \ingroup bli
*/

@ -24,12 +24,11 @@
* \ingroup RNA
*/
#include "../blenlib/BLI_sys_types.h"
#ifndef __RNA_TYPES_H__
#define __RNA_TYPES_H__
#include "../blenlib/BLI_sys_types.h"
#ifdef __cplusplus
extern "C" {
#endif