Cleanup: sort struct declarations

This commit is contained in:
Campbell Barton
2020-09-30 11:51:13 +10:00
parent e5aa9decb2
commit 38a66903e5
39 changed files with 74 additions and 74 deletions

View File

@@ -30,15 +30,15 @@ extern "C" {
#endif
struct AnimData;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct ID;
struct LibraryForeachIDData;
struct Main;
struct ReportList;
struct bAction;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/* ************************************* */
/* AnimData API */

View File

@@ -30,6 +30,10 @@ extern "C" {
#endif
struct AnimData;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct Depsgraph;
struct FCurve;
struct ID;
@@ -46,10 +50,6 @@ struct Scene;
struct bAction;
struct bActionGroup;
struct bContext;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/* Container for data required to do FCurve and Driver evaluation. */
typedef struct AnimationEvalContext {

View File

@@ -26,6 +26,8 @@
extern "C" {
#endif
struct BlendDataReader;
struct BlendWriter;
struct ColorManagedColorspaceSettings;
struct ColorManagedDisplaySettings;
struct ColorManagedViewSettings;
@@ -36,8 +38,6 @@ struct Histogram;
struct ImBuf;
struct Scopes;
struct rctf;
struct BlendWriter;
struct BlendDataReader;
void BKE_curvemapping_set_defaults(
struct CurveMapping *cumap, int tot, float minx, float miny, float maxx, float maxy);

View File

@@ -29,8 +29,8 @@
extern "C" {
#endif
struct BlendWriter;
struct BlendDataReader;
struct BlendWriter;
struct CurveProfile;
struct CurveProfilePoint;

View File

@@ -34,11 +34,11 @@ extern "C" {
#endif
struct BMesh;
struct BlendDataReader;
struct BlendWriter;
struct CustomData;
struct CustomData_MeshMasks;
struct ID;
struct BlendWriter;
struct BlendDataReader;
typedef uint64_t CustomDataMask;
/*a data type large enough to hold 1 element from any customdata layer type*/

View File

@@ -28,6 +28,8 @@ extern "C" {
* \brief support for deformation groups and hooks.
*/
struct BlendDataReader;
struct BlendWriter;
struct ListBase;
struct MDeformVert;
struct MEdge;
@@ -35,8 +37,6 @@ struct MLoop;
struct MPoly;
struct Object;
struct bDeformGroup;
struct BlendWriter;
struct BlendDataReader;
struct bDeformGroup *BKE_object_defgroup_new(struct Object *ob, const char *name);
void BKE_defgroup_copy_list(struct ListBase *outbase, const struct ListBase *inbase);

View File

@@ -37,6 +37,10 @@ struct FModifier;
struct AnimData;
struct AnimationEvalContext;
struct BezTriple;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct LibraryForeachIDData;
struct PathResolvedRNA;
struct PointerRNA;
@@ -44,10 +48,6 @@ struct PropertyRNA;
struct StructRNA;
struct bAction;
struct bContext;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/* ************** Keyframe Tools ***************** */

View File

@@ -27,6 +27,7 @@
extern "C" {
#endif
struct BlendDataReader;
struct Brush;
struct CurveMapping;
struct Depsgraph;
@@ -48,7 +49,6 @@ struct bGPDlayer_Mask;
struct bGPDspoint;
struct bGPDstroke;
struct bGPdata;
struct BlendDataReader;
#define GPENCIL_SIMPLIFY(scene) ((scene->r.simplify_gpencil & SIMPLIFY_GPENCIL_ENABLE))
#define GPENCIL_SIMPLIFY_ONPLAY(playing) \

View File

@@ -73,13 +73,13 @@ struct Icon_Geom {
typedef struct Icon Icon;
struct BlendDataReader;
struct BlendWriter;
struct ID;
struct ImBuf;
struct PreviewImage;
struct StudioLight;
struct bGPDlayer;
struct BlendWriter;
struct BlendDataReader;
enum eIconSizes;

View File

@@ -28,12 +28,12 @@
extern "C" {
#endif
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct ID;
struct IDProperty;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
typedef union IDPropertyTemplate {
int i;

View File

@@ -31,13 +31,13 @@
extern "C" {
#endif
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct ID;
struct LibraryForeachIDData;
struct Main;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/** IDTypeInfo.flags. */
enum {

View File

@@ -51,6 +51,8 @@
extern "C" {
#endif
struct BlendDataReader;
struct BlendWriter;
struct GHash;
struct ID;
struct Library;
@@ -59,8 +61,6 @@ struct Main;
struct PointerRNA;
struct PropertyRNA;
struct bContext;
struct BlendWriter;
struct BlendDataReader;
size_t BKE_libblock_get_alloc_info(short type, const char **name);
void *BKE_libblock_alloc_notest(short type) ATTR_WARN_UNUSED_RESULT;

View File

@@ -47,9 +47,9 @@ struct IDOverrideLibrary;
struct IDOverrideLibraryProperty;
struct IDOverrideLibraryPropertyOperation;
struct Main;
struct Object;
struct PointerRNA;
struct PropertyRNA;
struct Object;
struct Scene;
struct ViewLayer;

View File

@@ -29,6 +29,8 @@ extern "C" {
struct ARegionType;
struct BMEditMesh;
struct BlendDataReader;
struct BlendWriter;
struct CustomData_MeshMasks;
struct DepsNodeHandle;
struct Depsgraph;
@@ -40,8 +42,6 @@ struct ModifierData;
struct Object;
struct Scene;
struct bArmature;
struct BlendWriter;
struct BlendDataReader;
typedef enum {
/* Should not be used, only for None modifier type */

View File

@@ -36,12 +36,12 @@ struct Scene;
struct Speaker;
struct bAction;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct PointerRNA;
struct PropertyRNA;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/* ----------------------------- */
/* Data Management */

View File

@@ -41,6 +41,10 @@ extern "C" {
#define MAX_SOCKET 512
struct ARegion;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct ColorManagedDisplaySettings;
struct ColorManagedViewSettings;
struct FreestyleLineStyle;
@@ -72,10 +76,6 @@ struct bNodeTree;
struct bNodeTreeExec;
struct bNodeTreeType;
struct uiLayout;
struct BlendWriter;
struct BlendDataReader;
struct BlendLibReader;
struct BlendExpander;
/* -------------------------------------------------------------------- */
/** \name Node Type Definitions

View File

@@ -29,6 +29,8 @@ extern "C" {
#define RET_OK 0
#define RET_ERROR 1
struct BlendDataReader;
struct BlendWriter;
struct ID;
struct Image;
struct Main;
@@ -37,8 +39,6 @@ struct ReportList;
struct VFont;
struct Volume;
struct bSound;
struct BlendWriter;
struct BlendDataReader;
enum ePF_FileCompare {
PF_CMP_EQUAL = 0,

View File

@@ -36,8 +36,8 @@ struct BMesh;
struct Brush;
struct CurveMapping;
struct Depsgraph;
struct EnumPropertyItem;
struct EdgeSet;
struct EnumPropertyItem;
struct GHash;
struct GridPaintMask;
struct ImagePool;

View File

@@ -47,10 +47,10 @@
extern "C" {
#endif
typedef struct BlendWriter BlendWriter;
typedef struct BlendDataReader BlendDataReader;
typedef struct BlendLibReader BlendLibReader;
typedef struct BlendExpander BlendExpander;
typedef struct BlendLibReader BlendLibReader;
typedef struct BlendWriter BlendWriter;
/* Blend Write API
* ===============

View File

@@ -24,8 +24,8 @@
* \ingroup blenloader
*/
struct Scene;
struct GHash;
struct Scene;
typedef struct {
void *next, *prev;

View File

@@ -31,7 +31,6 @@
#include "DEG_depsgraph.h"
struct bNodeSocket;
struct CacheFile;
struct Camera;
struct Collection;
@@ -61,6 +60,7 @@ struct bAction;
struct bArmature;
struct bConstraint;
struct bGPdata;
struct bNodeSocket;
struct bNodeTree;
struct bPoseChannel;
struct bSound;

View File

@@ -46,7 +46,6 @@
#include "intern/node/deg_node_operation.h"
struct Base;
struct bNodeSocket;
struct CacheFile;
struct Camera;
struct Collection;
@@ -79,6 +78,7 @@ struct bAction;
struct bArmature;
struct bConstraint;
struct bGPdata;
struct bNodeSocket;
struct bNodeTree;
struct bPoseChannel;
struct bSound;

View File

@@ -27,10 +27,10 @@
#include "intern/depsgraph_type.h"
struct Depsgraph;
struct Main;
struct Scene;
struct ViewLayer;
struct Depsgraph;
namespace blender {
namespace deg {

View File

@@ -25,11 +25,11 @@ extern "C" {
#endif
/* Forward declarations */
struct rcti;
struct GPUBatch;
struct Image;
struct ImBuf;
struct GPUTexture;
struct ImBuf;
struct Image;
struct rcti;
/* *********** LISTS *********** */

View File

@@ -24,9 +24,9 @@
struct DRWPass;
struct DRWShadingGroup;
struct FluidModifierData;
struct GPUMaterial;
struct ModifierData;
struct FluidModifierData;
struct Object;
struct ParticleSystem;
struct RegionView3D;

View File

@@ -25,11 +25,11 @@
#define __GPENCIL_TRACE_H__
/* internal exports only */
struct bGPDframe;
struct FILE;
struct ImBuf;
struct Main;
struct Object;
struct bGPDframe;
#include "potracelib.h"

View File

@@ -42,13 +42,13 @@ void ED_gizmotypes_blank_3d(void);
void ED_gizmotypes_snap_3d(void);
struct ARegion;
struct bContext;
struct Depsgraph;
struct Object;
struct SnapObjectContext;
struct wmWindowManager;
struct View3D;
struct bContext;
struct wmGizmo;
struct wmWindowManager;
/* -------------------------------------------------------------------- */
/* Shape Presets

View File

@@ -27,12 +27,12 @@
extern "C" {
#endif
struct Collection;
struct ID;
struct PointerRNA;
struct PreviewImage;
struct Scene;
struct bContext;
struct Collection;
enum eIconSizes;

View File

@@ -31,8 +31,8 @@
#include "UI_interface.h"
#include "UI_resources.h"
struct AnimationEvalContext;
struct ARegion;
struct AnimationEvalContext;
struct CurveMapping;
struct CurveProfile;
struct ID;

View File

@@ -23,8 +23,8 @@
#pragma once
struct bConstraint;
struct Object;
struct bConstraint;
#define TRANSDATABASIC \
/** Extra data (mirrored element pointer, in editmode mesh to BMVert) \

View File

@@ -25,11 +25,11 @@
#pragma once
struct AnimData;
struct bContext;
struct LinkNode;
struct TransData;
struct TransDataContainer;
struct TransInfo;
struct bContext;
struct wmOperator;
/* header of TransDataEdgeSlideVert, TransDataEdgeSlideEdge */

View File

@@ -27,8 +27,8 @@ extern "C" {
#include "MOD_gpencil_modifiertypes.h"
struct ARegionType;
struct bContext;
struct PanelType;
struct bContext;
struct uiLayout;
typedef void (*PanelDrawFn)(const bContext *, Panel *);

View File

@@ -91,9 +91,9 @@ set(SRC
opengl/gl_backend.cc
opengl/gl_batch.cc
opengl/gl_context.cc
opengl/gl_drawlist.cc
opengl/gl_debug.cc
opengl/gl_debug_layer.cc
opengl/gl_drawlist.cc
opengl/gl_framebuffer.cc
opengl/gl_immediate.cc
opengl/gl_index_buffer.cc
@@ -148,12 +148,12 @@ set(SRC
intern/gpu_material_library.h
intern/gpu_matrix_private.h
intern/gpu_node_graph.h
intern/gpu_private.h
intern/gpu_platform_private.hh
intern/gpu_private.h
intern/gpu_query.hh
intern/gpu_select_private.h
intern/gpu_shader_private.hh
intern/gpu_shader_interface.hh
intern/gpu_shader_private.hh
intern/gpu_state_private.hh
intern/gpu_texture_private.hh
intern/gpu_uniform_buffer_private.hh

View File

@@ -36,9 +36,9 @@ struct DMFlagMat;
struct GSet;
struct MLoop;
struct MLoopCol;
struct MPropCol;
struct MLoopTri;
struct MPoly;
struct MPropCol;
struct MVert;
struct Mesh;
struct PBVH;

View File

@@ -44,8 +44,8 @@ struct MLoopCol;
struct MLoopTri;
struct MLoopUV;
struct MPoly;
struct MVert;
struct MPropCol;
struct MVert;
struct Material;
struct Mesh;
struct Multires;

View File

@@ -33,6 +33,7 @@
struct ARegion;
struct ARegionType;
struct PanelType;
struct PointerRNA;
struct Scene;
struct SpaceLink;
struct SpaceType;
@@ -40,7 +41,6 @@ struct uiLayout;
struct wmDrawBuffer;
struct wmTimer;
struct wmTooltipState;
struct PointerRNA;
/* TODO Doing this is quite ugly :)
* Once the top-bar is merged bScreen should be refactored to use ScrAreaMap. */

View File

@@ -30,8 +30,8 @@ extern "C" {
#endif
struct ARegionType;
struct bContext;
struct PanelType;
struct bContext;
struct uiLayout;
typedef void (*PanelDrawFn)(const bContext *, struct Panel *);

View File

@@ -27,8 +27,8 @@ extern "C" {
#endif
struct ARegionType;
struct bContext;
struct PanelType;
struct bContext;
struct uiLayout;
typedef void (*PanelDrawFn)(const bContext *, Panel *);

View File

@@ -41,10 +41,10 @@ using fn::GMutableSpan;
using fn::GSpan;
using fn::MutableAttributesRef;
struct ParticleEmitterContext;
struct ParticleForceContext;
struct ParticleActionContext;
struct ParticleEmitterContext;
struct ParticleEventFilterContext;
struct ParticleForceContext;
class ParticleEmitter {
public: