[Bf-blender-cvs] [c8b7745172d] master: Cleanup: headers, use 'pragma once', remove argument to '\file'

Campbell Barton noreply at git.blender.org
Fri Jul 30 14:31:36 CEST 2021


Commit: c8b7745172d96cd5ee6aaa431485f93eb9512696
Author: Campbell Barton
Date:   Fri Jul 30 22:29:30 2021 +1000
Branches: master
https://developer.blender.org/rBc8b7745172d96cd5ee6aaa431485f93eb9512696

Cleanup: headers, use 'pragma once', remove argument to '\file'

===================================================================

M	source/blender/blenkernel/BKE_appdir.h
M	source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
M	source/blender/editors/io/io_gpencil.h
M	source/blender/makesdna/DNA_lineart_types.h
M	source/blender/nodes/composite/nodes/node_composite_antialiasing.c

===================================================================

diff --git a/source/blender/blenkernel/BKE_appdir.h b/source/blender/blenkernel/BKE_appdir.h
index 15045a1c643..fee52479cd0 100644
--- a/source/blender/blenkernel/BKE_appdir.h
+++ b/source/blender/blenkernel/BKE_appdir.h
@@ -15,12 +15,12 @@
  */
 #pragma once
 
-#include <stddef.h>
-
 /** \file
  * \ingroup bli
  */
 
+#include <stddef.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
index a4a034830b7..ae2cc05c01b 100644
--- a/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
+++ b/source/blender/editors/gizmo_library/gizmo_types/snap3d_gizmo.c
@@ -17,8 +17,8 @@
  * All rights reserved.
  */
 
-/** \file snap3d_gizmo.c
- *  \ingroup edgizmolib
+/** \file
+ * \ingroup edgizmolib
  *
  * \name Snap Gizmo
  *
diff --git a/source/blender/editors/io/io_gpencil.h b/source/blender/editors/io/io_gpencil.h
index 428b09f0e9c..2359ab4a333 100644
--- a/source/blender/editors/io/io_gpencil.h
+++ b/source/blender/editors/io/io_gpencil.h
@@ -17,13 +17,12 @@
  * All rights reserved.
  */
 
-#ifndef __IO_GPENCIL_H__
-#define __IO_GPENCIL_H__
-
 /** \file
  * \ingroup editor/io
  */
 
+#pragma once
+
 struct ARegion;
 struct View3D;
 struct bContext;
@@ -40,5 +39,3 @@ void WM_OT_gpencil_export_pdf(struct wmOperatorType *ot);
 
 struct ARegion *get_invoke_region(struct bContext *C);
 struct View3D *get_invoke_view3d(struct bContext *C);
-
-#endif /* __IO_GPENCIL_H__ */
diff --git a/source/blender/makesdna/DNA_lineart_types.h b/source/blender/makesdna/DNA_lineart_types.h
index d7e62d04af2..e93cf050e18 100644
--- a/source/blender/makesdna/DNA_lineart_types.h
+++ b/source/blender/makesdna/DNA_lineart_types.h
@@ -25,11 +25,10 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-#ifndef __DNA_LRT_TYPES_H__
-#define __DNA_LRT_TYPES_H__
+#pragma once
 
-/** \file DNA_lineart_types.h
- *  \ingroup DNA
+/** \file
+ * \ingroup DNA
  */
 
 #include "DNA_ID.h"
@@ -71,5 +70,3 @@ typedef enum eLineartEdgeFlag {
 } eLineartEdgeFlag;
 
 #define LRT_EDGE_FLAG_ALL_TYPE 0x3f
-
-#endif
diff --git a/source/blender/nodes/composite/nodes/node_composite_antialiasing.c b/source/blender/nodes/composite/nodes/node_composite_antialiasing.c
index fa276e9a794..81e2408fcf9 100644
--- a/source/blender/nodes/composite/nodes/node_composite_antialiasing.c
+++ b/source/blender/nodes/composite/nodes/node_composite_antialiasing.c
@@ -25,8 +25,8 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
-/** \file blender/nodes/composite/nodes/node_composite_antialiasing.c
- *  \ingroup cmpnodes
+/** \file
+ * \ingroup cmpnodes
  */
 
 #include "node_composite_util.h"



More information about the Bf-blender-cvs mailing list