Cleanup: remove redundant forward declarations for structs

This commit is contained in:
Campbell Barton 2023-01-18 18:41:13 +11:00
parent ca3e19f4c5
commit 60d9de767d
98 changed files with 6 additions and 146 deletions

View File

@ -7,7 +7,6 @@
#pragma once
struct IDRemapper;
struct Main;
#ifdef __cplusplus
extern "C" {

View File

@ -28,7 +28,6 @@ extern "C" {
struct ColorManagedDisplay;
struct ResultBLF;
struct rctf;
struct rcti;
int BLF_init(void);

View File

@ -11,7 +11,6 @@ struct FontBLF;
struct GlyphBLF;
struct GlyphCacheBLF;
struct ResultBLF;
struct rctf;
struct rcti;
/* Max number of FontBLFs in memory. Take care that every font has a glyph cache per size/dpi,

View File

@ -33,7 +33,6 @@ struct PointerRNA;
struct PropertyRNA;
struct bAction;
struct bActionGroup;
struct bContext;
/* Container for data required to do FCurve and Driver evaluation. */
typedef struct AnimationEvalContext {

View File

@ -13,11 +13,7 @@ struct BlendHandle;
struct ID;
struct Library;
struct LibraryLink_Params;
struct Main;
struct ReportList;
struct Scene;
struct View3D;
struct ViewLayer;
typedef struct BlendfileLinkAppendContext BlendfileLinkAppendContext;
typedef struct BlendfileLinkAppendContextItem BlendfileLinkAppendContextItem;

View File

@ -19,7 +19,6 @@ extern "C" {
#endif
struct ID;
struct ListBase;
struct Main;
struct ReportList;

View File

@ -18,7 +18,6 @@ extern "C" {
struct Brush;
struct ImBuf;
struct ImagePool;
struct Object;
struct Main;
struct MTex;
struct Scene;

View File

@ -16,7 +16,6 @@ struct CollisionModifierData;
struct Depsgraph;
struct MVertTri;
struct Object;
struct Scene;
////////////////////////////////////////
// used for collisions in collision.c

View File

@ -15,7 +15,6 @@ extern "C" {
struct BoundBox;
struct Curves;
struct CustomDataLayer;
struct Depsgraph;
struct Main;
struct Object;

View File

@ -43,7 +43,6 @@ enum {
struct Depsgraph;
struct ListBase;
struct Mesh;
struct Object;
struct Scene;

View File

@ -10,7 +10,6 @@
extern "C" {
#endif
struct Collection;
struct GeometrySet;
struct Object;

View File

@ -20,10 +20,8 @@
#include "BKE_geometry_set.h"
struct Curves;
struct Collection;
struct Curve;
struct Mesh;
struct Object;
struct PointCloud;
struct Volume;

View File

@ -16,7 +16,6 @@ struct Brush;
struct CurveMapping;
struct Depsgraph;
struct GHash;
struct GPencilUpdateCache;
struct ListBase;
struct MDeformVert;
struct Main;

View File

@ -14,7 +14,6 @@ extern "C" {
struct Depsgraph;
struct Main;
struct Object;
struct RegionView3D;
struct Scene;
struct bGPDcurve;
struct bGPDframe;

View File

@ -565,7 +565,6 @@ struct PartialUpdateUser *BKE_image_partial_update_create(const struct Image *im
void BKE_image_partial_update_free(struct PartialUpdateUser *user);
/* --- partial updater (image side) --- */
struct PartialUpdateRegister;
void BKE_image_partial_update_register_free(struct Image *image);
/** \brief Mark a region of the image to update. */

View File

@ -23,7 +23,6 @@
#include "DNA_image_types.h"
extern "C" {
struct PartialUpdateRegister;
struct PartialUpdateUser;
}

View File

@ -40,7 +40,6 @@ struct MPoly;
struct Main;
struct MemArena;
struct Mesh;
struct ModifierData;
struct Object;
struct PointCloud;
struct Scene;

View File

@ -8,7 +8,6 @@
struct BMEditMesh;
struct CustomData_MeshMasks;
struct Mesh;
struct Object;
#ifdef __cplusplus
extern "C" {

View File

@ -24,8 +24,6 @@ struct Object;
struct Scene;
struct SubdivCCG;
struct MLoop;
struct MLoopTri;
struct MPoly;
/**

View File

@ -29,27 +29,19 @@ extern "C" {
/* not very important, but the stack solver likes to know a maximum */
#define MAX_SOCKET 512
struct ARegion;
struct BlendDataReader;
struct BlendExpander;
struct BlendLibReader;
struct BlendWriter;
struct ColorManagedDisplaySettings;
struct ColorManagedViewSettings;
struct CryptomatteSession;
struct FreestyleLineStyle;
struct GPUMaterial;
struct GPUNodeStack;
struct ID;
struct ImBuf;
struct ImageFormatData;
struct Light;
struct ListBase;
struct MTex;
struct Main;
struct Material;
struct PointerRNA;
struct RenderData;
struct Scene;
struct SpaceNode;
struct Tex;
@ -1355,8 +1347,6 @@ void BKE_nodetree_remove_layer_n(struct bNodeTree *ntree, struct Scene *scene, i
/** \name Texture Nodes
* \{ */
struct TexResult;
#define TEX_NODE_OUTPUT 401
#define TEX_NODE_CHECKER 402
#define TEX_NODE_TEXTURE 403

View File

@ -20,7 +20,6 @@ struct Base;
struct BoundBox;
struct Curve;
struct Depsgraph;
struct GeometrySet;
struct GpencilModifierData;
struct HookGpencilModifierData;
struct HookModifierData;
@ -33,7 +32,6 @@ struct Object;
struct RegionView3D;
struct RigidBodyWorld;
struct Scene;
struct ShaderFxData;
struct SubsurfModifierData;
struct View3D;
struct ViewLayer;

View File

@ -31,7 +31,6 @@ struct CustomData_MeshMasks;
struct Depsgraph;
struct EdgeHash;
struct KDTree_3d;
struct LatticeDeformData;
struct LinkNode;
struct MCol;
struct MFace;

View File

@ -20,7 +20,6 @@ extern "C" {
#endif
struct BoundBox;
struct CustomDataLayer;
struct Depsgraph;
struct Main;
struct Object;

View File

@ -24,7 +24,6 @@ struct CCGVert;
struct DMFlagMat;
struct DerivedMesh;
struct EdgeHash;
struct MPoly;
struct Mesh;
struct MeshElemMap;
struct Object;

View File

@ -32,7 +32,6 @@
/* Unused currently. */
// static CLG_LogRef LOG = {.identifier = "bke.library"};
struct BlendWriter;
struct BlendDataReader;
static void library_runtime_reset(Library *lib)

View File

@ -43,7 +43,6 @@ struct UVEdge;
struct UVIslands;
struct UVIslandsMask;
struct UVPrimitive;
struct UVPrimitiveEdge;
struct MeshData;
struct UVVertex;

View File

@ -42,7 +42,6 @@ typedef struct BlendWriter BlendWriter;
struct BlendFileReadReport;
struct Main;
struct ReportList;
/* -------------------------------------------------------------------- */
/** \name Blend Write API

View File

@ -16,13 +16,11 @@ extern "C" {
struct BHead;
struct BlendThumbnail;
struct Collection;
struct FileData;
struct LinkNode;
struct ListBase;
struct Main;
struct MemFile;
struct Object;
struct ReportList;
struct Scene;
struct UserDef;

View File

@ -23,7 +23,6 @@
extern "C" {
#endif
struct BLI_mmap_file;
struct BLOCacheStorage;
struct IDNameLib_Map;
struct Key;

View File

@ -13,9 +13,6 @@ extern "C" {
#endif
struct BMAllocTemplate;
struct BMLoopNorEditDataArray;
struct BMPartialUpdate;
struct MLoopNorSpaceArray;
void BM_mesh_elem_toolflags_ensure(BMesh *bm);
void BM_mesh_elem_toolflags_clear(BMesh *bm);

View File

@ -12,6 +12,8 @@
extern "C" {
#endif
struct BMPartialUpdate;
struct BMeshNormalsUpdate_Params {
/**
* When calculating tessellation as well as normals, tessellate & calculate face normals

View File

@ -6,7 +6,6 @@
* \ingroup bmesh
*/
struct BMPartialUpdate;
struct Heap;
#include "BLI_compiler_attrs.h"

View File

@ -45,7 +45,6 @@ struct World;
struct bAction;
struct bArmature;
struct bConstraint;
struct bGPdata;
struct bNodeSocket;
struct bNodeTree;
struct bPoseChannel;

View File

@ -62,7 +62,6 @@ struct World;
struct bAction;
struct bArmature;
struct bConstraint;
struct bGPdata;
struct bNodeSocket;
struct bNodeTree;
struct bPoseChannel;

View File

@ -17,17 +17,14 @@
extern "C" {
#endif
struct GPUViewport;
struct PBVHAttrReq;
struct GPUBatch;
struct PBVHNode;
struct GSet;
struct DMFlagMat;
struct Object;
struct Mesh;
struct MLoopTri;
struct CustomData;
struct MEdge;
struct MLoop;
struct MPoly;
struct SubdivCCG;

View File

@ -20,7 +20,6 @@
extern "C" {
struct Material;
struct CryptomatteSession;
}
namespace blender::eevee {

View File

@ -16,8 +16,6 @@
/* Forward declarations */
extern "C" {
struct GPUTexture;
struct ImBuf;
struct Image;
}

View File

@ -8,10 +8,8 @@
#pragma once
struct GPUBatch;
struct GPUIndexBuf;
struct GPUMaterial;
struct GPUVertBuf;
struct ListBase;
struct ModifierData;
struct PTCacheEdit;
struct ParticleSystem;
@ -21,7 +19,6 @@ struct Curve;
struct Curves;
struct Lattice;
struct Mesh;
struct MetaBall;
struct PointCloud;
struct Volume;
struct bGPdata;

View File

@ -11,8 +11,6 @@
namespace blender::draw::command {
struct RecordingState;
#endif
/* -------------------------------------------------------------------- */

View File

@ -18,9 +18,7 @@ extern "C" {
struct Curves;
struct GPUVertBuf;
struct GPUIndexBuf;
struct GPUBatch;
struct GPUTexture;
#define MAX_THICKRES 2 /* see eHairType */
#define MAX_HAIR_SUBDIV 4 /* see hair_subdiv rna */

View File

@ -27,7 +27,6 @@ typedef struct DRWDebugDrawBuffer DRWDebugDrawBuffer;
/* C++ only forward declarations. */
struct Object;
struct ViewLayer;
struct ID;
struct GPUUniformAttr;
struct GPULayerAttr;

View File

@ -19,7 +19,6 @@ struct MeshBatchCache;
struct MeshBufferCache;
struct MeshRenderData;
struct Object;
struct Scene;
struct Subdiv;
struct ToolSettings;

View File

@ -7,8 +7,6 @@
#pragma once
struct ARegion;
void DRW_draw_region_info(void);
void DRW_clear_background(void);
void DRW_draw_cursor(void);

View File

@ -19,8 +19,6 @@ extern "C" {
#endif
struct AssetHandle;
struct AssetLibraryReference;
struct bContext;
const char *ED_asset_handle_get_name(const struct AssetHandle *asset);
struct AssetMetaData *ED_asset_handle_get_metadata(const struct AssetHandle *asset);

View File

@ -10,7 +10,6 @@
extern "C" {
#endif
struct AssetFilterSettings;
struct AssetHandle;
struct AssetLibraryReference;
struct ID;

View File

@ -12,8 +12,6 @@
struct AssetHandle;
struct AssetLibraryReference;
struct FileDirEntry;
struct bContext;
namespace blender::asset_system {
class AssetLibrary;

View File

@ -20,10 +20,8 @@ extern "C" {
typedef struct AssetTempIDConsumer AssetTempIDConsumer;
struct AssetHandle;
struct AssetLibraryReference;
struct Main;
struct ReportList;
struct bContext;
AssetTempIDConsumer *ED_asset_temp_id_consumer_create(const struct AssetHandle *handle);
void ED_asset_temp_id_consumer_free(AssetTempIDConsumer **consumer);

View File

@ -31,7 +31,6 @@ struct SelectPick_Params;
struct UndoType;
struct View3D;
struct ViewLayer;
struct bAction;
struct bArmature;
struct bContext;
struct bPoseChannel;

View File

@ -10,8 +10,6 @@
extern "C" {
#endif
struct Curves;
void ED_operatortypes_sculpt_curves(void);
#ifdef __cplusplus

View File

@ -22,7 +22,6 @@ extern "C" {
* `filelist_setindexer` function.
*/
struct AssetLibraryReference;
struct LinkNode;
/**

View File

@ -17,7 +17,6 @@ struct ARegion;
struct FileAssetSelectParams;
struct FileDirEntry;
struct FileSelectParams;
struct Scene;
struct ScrArea;
struct SpaceFile;
struct bContext;

View File

@ -32,7 +32,6 @@ void ED_gizmotypes_snap_3d(void);
struct Object;
struct bContext;
struct wmGizmo;
struct wmWindowManager;
/* -------------------------------------------------------------------- */
/* Shape Presets

View File

@ -15,7 +15,6 @@ extern "C" {
struct AnimData;
struct CacheFile;
struct DLRBT_Tree;
struct FCurve;
struct MaskLayer;
struct Object;

View File

@ -14,13 +14,11 @@ extern "C" {
struct ID;
struct Main;
struct Scene;
struct ScrArea;
struct SpaceNode;
struct Tex;
struct View2D;
struct bContext;
struct bNode;
struct bNodeSocket;
struct bNodeSocketType;
struct bNodeTree;
struct bNodeTreeType;

View File

@ -8,6 +8,7 @@
struct SpaceNode;
struct ARegion;
struct Main;
struct bNodeSocket;
struct bNodeTree;
struct rcti;

View File

@ -35,7 +35,6 @@ struct bContext;
struct bFaceMap;
struct bPoseChannel;
struct uiLayout;
struct wmEvent;
struct wmKeyConfig;
struct wmOperator;
struct wmOperatorType;

View File

@ -17,9 +17,6 @@ struct UndoType;
struct ViewContext;
struct bContext;
struct rcti;
struct wmMsgSubscribeKey;
struct wmMsgSubscribeValue;
struct wmRegionMessageSubscribeParams;
struct wmOperator;
/* sculpt.cc */

View File

@ -13,7 +13,6 @@ extern "C" {
#endif
struct KDTree_1d;
struct wmOperator;
struct wmOperatorType;
enum {

View File

@ -3,12 +3,7 @@
#pragma once
struct ID;
struct Main;
struct Object;
struct SpaceNode;
struct SpaceSpreadsheet;
struct bContext;
struct bNode;
#ifdef __cplusplus
extern "C" {

View File

@ -14,7 +14,6 @@
extern "C" {
#endif
struct GPUBatch;
struct IDRemapper;
struct Main;
struct bContext;

View File

@ -27,7 +27,6 @@
struct bContext;
struct uiBlock;
struct uiBut;
struct uiLayout;
struct uiViewItemHandle;
struct wmDrag;

View File

@ -17,12 +17,10 @@
#include "UI_resources.h"
struct bContext;
struct PreviewImage;
struct uiBlock;
struct uiButViewItem;
struct uiLayout;
struct View2D;
struct wmNotifier;
namespace blender::ui {

View File

@ -22,10 +22,8 @@ extern "C" {
struct ARegion;
struct AssetFilterSettings;
struct AssetHandle;
struct AssetMetaData;
struct AutoComplete;
struct EnumPropertyItem;
struct FileDirEntry;
struct FileSelectParams;
struct ID;
struct IDProperty;
@ -48,7 +46,6 @@ struct bNodeTree;
struct bScreen;
struct rctf;
struct rcti;
struct uiBlockInteraction_Handle;
struct uiButSearch;
struct uiFontStyle;
struct uiList;

View File

@ -150,6 +150,8 @@
/** \name Local Prototypes
* \{ */
struct uiBlockInteraction_Handle;
static int ui_do_but_EXIT(bContext *C, uiBut *but, uiHandleButtonData *data, const wmEvent *event);
static bool ui_but_find_select_in_enum__cmp(const uiBut *but_a, const uiBut *but_b);
static void ui_textedit_string_set(uiBut *but, uiHandleButtonData *data, const char *str);

View File

@ -19,8 +19,6 @@
#include "UI_view2d.h"
struct ARegion;
struct ARegionType;
struct Main;
struct NodeInsertOfsData;
struct View2D;
struct bContext;

View File

@ -9,8 +9,6 @@
namespace blender::ed::spreadsheet {
struct CellDrawParams;
eSpreadsheetColumnValueType cpp_type_to_column_type(const CPPType &type);
/**

View File

@ -28,7 +28,6 @@ struct wmGizmoGroupType;
struct wmGizmoType;
struct wmKeyConfig;
struct wmOperatorType;
struct wmWindowManager;
/* view3d_header.c */

View File

@ -28,7 +28,6 @@ struct View3D;
struct bContext;
struct rcti;
struct wmEvent;
struct wmOperator;
enum eV3D_OpPropFlag {
V3D_OP_PROP_MOUSE_CO = (1 << 0),

View File

@ -28,7 +28,6 @@ extern "C" {
* \{ */
struct ARegion;
struct BMPartialUpdate;
struct Depsgraph;
struct NumInput;
struct Object;

View File

@ -17,7 +17,6 @@ extern "C" {
struct BMEditMesh;
struct BMesh;
struct BezTriple;
struct FCurve;
struct ListBase;
struct Object;
struct TransData;

View File

@ -8,7 +8,6 @@
#pragma once
struct AnimData;
struct LinkNode;
struct TransData;
struct TransDataContainer;

View File

@ -11,7 +11,6 @@
extern "C" {
#endif
struct GPUIndexBuf;
struct GPUVertBuf;
/** Opaque type hiding #blender::gpu::shader::ShaderCreateInfo */

View File

@ -20,8 +20,6 @@
extern "C" {
#endif
struct ListBase;
/** Opaque type hiding blender::gpu::StorageBuf. */
typedef struct GPUStorageBuf GPUStorageBuf;

View File

@ -25,8 +25,6 @@ typedef struct GHash GHash;
typedef struct GPUViewport GPUViewport;
struct DRWData;
struct DefaultFramebufferList;
struct DefaultTextureList;
struct GPUFrameBuffer;
GPUViewport *GPU_viewport_create(void);

View File

@ -19,7 +19,6 @@ extern "C" {
struct ColorManagedColorspaceSettings;
struct ColorManagedDisplaySettings;
struct ColorManagedViewSettings;
struct ColorManagedOutputSettings;
struct ColormanageProcessor;
struct EnumPropertyItem;
struct ImBuf;

View File

@ -10,6 +10,7 @@
#include <map>
#include <string>
struct CacheFile;
struct Main;
struct Material;
struct Object;

View File

@ -9,9 +9,6 @@
#include <string>
struct Material;
struct USDExportParams;
struct bNode;
struct bNodeTree;
namespace blender::io::usd {

View File

@ -10,7 +10,6 @@ extern "C" {
#endif
struct CacheArchiveHandle;
struct CacheFile;
struct CacheReader;
struct Object;
struct bContext;

View File

@ -53,10 +53,8 @@ struct bGPdata;
struct bNodeInstanceHash;
struct bNodeLink;
struct bNodePreview;
struct bNodeTreeExec;
struct bNodeType;
struct bNode;
struct uiBlock;
#define NODE_MAXSTR 64

View File

@ -12,7 +12,6 @@ struct Object;
struct RenderEngine;
struct SmoothView3DStore;
struct SpaceLink;
struct ViewDepths;
struct bGPdata;
struct wmTimer;

View File

@ -23,7 +23,6 @@ struct wmWindow;
struct wmWindowManager;
struct wmEvent;
struct wmGesture;
struct wmKeyConfig;
struct wmKeyMap;
struct wmMsgBus;

View File

@ -20,11 +20,9 @@ extern "C" {
#define RNA_MAGIC ((int)~0)
struct AssetLibraryReference;
struct FreestyleSettings;
struct ID;
struct IDOverrideLibrary;
struct IDOverrideLibraryenOperation;
struct IDProperty;
struct Main;
struct Object;

View File

@ -2,7 +2,6 @@
#pragma once
struct Main;
struct NodesModifierData;
struct Object;

View File

@ -14,8 +14,6 @@
#include "NOD_derived_node_tree.hh"
#include "NOD_geometry_nodes_lazy_function.hh"
struct ModifierData;
namespace blender::nodes {
using bke::AnonymousAttributeFieldInput;

View File

@ -40,8 +40,6 @@
#include "DNA_node_types.h"
struct SpaceNode;
struct SpaceSpreadsheet;
struct NodesModifierData;
namespace blender::nodes::geo_eval_log {

View File

@ -6,7 +6,6 @@
#pragma once
struct ID;
struct IDProperty;
extern PyTypeObject BPy_IDPropertyUIManager_Type;

View File

@ -12,7 +12,6 @@ extern PyTypeObject BPyGPUOffScreen_Type;
#define BPyGPUOffScreen_Check(v) (Py_TYPE(v) == &BPyGPUOffScreen_Type)
struct GPUOffscreen;
struct GPUViewport;
typedef struct BPyGPUOffScreen {

View File

@ -14,7 +14,6 @@
extern "C" {
#endif
struct EnumPropertyItem;
struct ReportList;
/* error reporting */

View File

@ -11,7 +11,6 @@ extern "C" {
#endif
struct DerivedMesh;
struct IMBuf;
struct ImBuf;
struct Mesh;

View File

@ -7,7 +7,6 @@
#pragma once
struct ListBase;
struct Render;
struct RenderData;
struct RenderLayer;

View File

@ -18,10 +18,8 @@ struct ImBuf;
struct ListBase;
struct Render;
struct RenderData;
struct RenderEngine;
struct RenderLayer;
struct RenderResult;
struct Scene;
struct rcti;
#ifdef __cplusplus

View File

@ -13,7 +13,6 @@ extern "C" {
struct Editing;
struct ListBase;
struct Scene;
struct SeqTimelineChannel;
struct Sequence;

View File

@ -13,7 +13,6 @@ extern "C" {
#include "BLI_ghash.h"
struct Editing;
struct GSet;
struct GSetIterator;
struct Sequence;

View File

@ -21,7 +21,6 @@ struct Depsgraph;
struct Editing;
struct Scene;
struct Sequence;
struct SequenceLookup;
struct SequencerToolSettings;
/* RNA enums, just to be more readable */

View File

@ -11,7 +11,6 @@
extern "C" {
#endif
struct Editing;
struct ListBase;
struct Scene;
struct SeqCollection;

View File

@ -16,7 +16,6 @@ extern "C" {
struct ListBase;
struct Mask;
struct Scene;
struct SeqRenderData;
struct Sequence;
struct StripElem;

View File

@ -12,7 +12,6 @@ extern "C" {
#endif
struct Scene;
struct SeqRenderData;
struct Sequence;
struct SeqEffectHandle seq_effect_get_sequence_blend(struct Sequence *seq);

View File

@ -26,7 +26,6 @@ extern "C" {
struct ARegion;
struct AssetHandle;
struct AssetLibraryReference;
struct GHashIterator;
struct GPUViewport;
struct ID;
@ -39,7 +38,6 @@ struct MenuType;
struct PointerRNA;
struct PropertyRNA;
struct ScrArea;
struct SelectPick_Params;
struct View3D;
struct ViewLayer;
struct bContext;