Cleanup: ensure header guards come first
authorCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jan 2019 21:46:38 +0000 (08:46 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 9 Jan 2019 22:04:44 +0000 (09:04 +1100)
Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.

intern/clog/CLG_log.h
intern/ghost/intern/GHOST_EventNDOF.h
intern/ghost/intern/GHOST_NDOFManager.h
source/blender/blenlib/BLI_endian_switch_inline.h
source/blender/makesrna/RNA_types.h

index 61fc93be9e7b27b96af7f5eb050376a887d7e80c..390122289b1d4c9fc2f906590972fd30382aed5c 100644 (file)
@@ -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__ */
index b81f74becee7da1565eca564b84c10f2ac188f7a..a7a7639c98ececd945ab880cf41f177549f0f739 100644 (file)
  *  \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:
index 78f24e07a6ea8d75e3f3ad891cb5f91020821f69..b23673940e63d9fd630e2ad620828425e41e830a 100644 (file)
  * ***** 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
 
index 280503e9b93ab2729bb1b27e0ed598a8b5feef23..2be76e67b379e5f6c99b873ae917e12610d9d514 100644 (file)
  * ***** 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
  */
index 0d972a118e8e94e05c6d3731d0378420dd8461cd..f427aeae5a68614ba11125084bef4fccf4aa8aaa 100644 (file)
  *  \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