mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-04 22:31:02 +00:00
Add Missing Includes Across src/slic3r/GUI (#16048)
* Add Missing Includes Across src/slic3r/GUI Every GUI source and header now directly includes the headers declaring what it uses, rather than relying on the precompiled header or transitive includes. Generated with clang-tidy misc-include-cleaner, plus one hand edit making CalibrationPanel.hpp self-contained. * Drop the OS-Specific Includes Added Outside Their Platform Guards GLib, GTK, D-Bus and POSIX headers are only used inside platform #if blocks, which already include them. Added unconditionally at the top of the file they broke the Windows build. * Add the clang-tidy Configuration That Generated These Includes Only misc-include-cleaner's missing-include check, with the headers it must never suggest: per-platform, internal and OS-specific ones that would break other platforms or are not meant to be included directly. * Match Windows Paths in the clang-tidy Ignore List Header paths use backslashes on Windows, so every / in a pattern is now [/\\]. The Windows SDK headers are ignored alongside the other OS-specific ones, and the list is one pattern per line. Suggested by @raistlin7447 from a Windows clang-cl run.
This commit is contained in:
@@ -28,16 +28,67 @@
|
||||
#include "StepMeshDialog.hpp"
|
||||
|
||||
|
||||
#include "slic3r/GUI/Event.hpp"
|
||||
#include "libslic3r/Config.hpp"
|
||||
#include <string>
|
||||
#include "slic3r/GUI/Widgets/StateColor.hpp"
|
||||
#include "slic3r/GUI/Widgets/Label.hpp"
|
||||
#include "slic3r/GUI/ObjectDataViewModel.hpp"
|
||||
#include <cstddef>
|
||||
#include "slic3r/GUI/ExtraRenderers.hpp"
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
#include "libslic3r/TriangleMesh.hpp"
|
||||
#include "slic3r/GUI/GUI.hpp"
|
||||
#include <memory>
|
||||
#include <iterator>
|
||||
#include "slic3r/GUI/GLToolbar.hpp"
|
||||
#include <optional>
|
||||
#include <cstdlib>
|
||||
#include <utility>
|
||||
#include "libslic3r/BoundingBox.hpp"
|
||||
#include "libslic3r/Geometry.hpp"
|
||||
#include "libslic3r/Point.hpp"
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include "libslic3r/LocalesUtils.hpp"
|
||||
#include "libslic3r/Format/STEP.hpp"
|
||||
#include <exception>
|
||||
#include "slic3r/GUI/ParamsPanel.hpp"
|
||||
#include "slic3r/GUI/GUI_ObjectLayers.hpp"
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include "libslic3r/BrimEarsPoint.hpp"
|
||||
#include "libslic3r/ObjectID.hpp"
|
||||
#include "slic3r/GUI/GUI_ObjectSettings.hpp"
|
||||
#include <cmath>
|
||||
#include "slic3r/GUI/GUI_Utils.hpp"
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <wx/dc.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/colour.h>
|
||||
#include <wx/dataview.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/dvrenderers.h>
|
||||
#include <wx/chartype.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/dnd.h>
|
||||
#include <wx/busycursor.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/accel.h>
|
||||
#include <wx/app.h>
|
||||
#include <wx/progdlg.h>
|
||||
#include <wx/listbook.h>
|
||||
#include <wx/numformatter.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/setup.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/utils.h>
|
||||
#include <wx/headerctrl.h>
|
||||
#include <wx/window.h>
|
||||
|
||||
#include "slic3r/Utils/FixModelByCgal.hpp"
|
||||
#include "libslic3r/Format/bbs_3mf.hpp"
|
||||
|
||||
Reference in New Issue
Block a user