mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-05 23:01:17 +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,6 +28,52 @@
|
||||
#include "libslic3r/Layer.hpp"
|
||||
#include "Widgets/ProgressDialog.hpp"
|
||||
#include "MsgDialog.hpp"
|
||||
#include <string>
|
||||
#include "libvgcode/include/Types.hpp"
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <cstdio>
|
||||
#include "libslic3r/Technologies.hpp"
|
||||
#include <imgui.h>
|
||||
#include "slic3r/GUI/ImGuiWrapper.hpp"
|
||||
#include "slic3r/GUI/GLModel.hpp"
|
||||
#include "slic3r/GUI/GLShader.hpp"
|
||||
#include "libslic3r/Point.hpp"
|
||||
#include <math.h>
|
||||
#include "libvgcode/include/Viewer.hpp"
|
||||
#include "libvgcode/include/PathVertex.hpp"
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include "slic3r/GUI/LibVGCode/LibVGCodeWrapper.hpp"
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
#include <boost/algorithm/string/constants.hpp>
|
||||
#include "slic3r/GUI/IMSlider.hpp"
|
||||
#include "libslic3r/Config.hpp"
|
||||
#include "libslic3r/Preset.hpp"
|
||||
#include <exception>
|
||||
#include <iterator>
|
||||
#include "libslic3r/GCode/GCodeProcessor.hpp"
|
||||
#include "libvgcode/include/GCodeInputData.hpp"
|
||||
#include "libvgcode/include/ColorRange.hpp"
|
||||
#include <optional>
|
||||
#include "libslic3r_version.h"
|
||||
#include <wx/busycursor.h>
|
||||
#include "libslic3r/Slicing.hpp"
|
||||
#include "slic3r/GUI/3DScene.hpp"
|
||||
#include "libslic3r/Color.hpp"
|
||||
#include <map>
|
||||
#include "libslic3r/PrintBase.hpp"
|
||||
#include <wx/event.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/slider.h>
|
||||
#include "libslic3r/PrintConfig.hpp"
|
||||
#include "slic3r/GUI/Event.hpp"
|
||||
#include <string_view>
|
||||
#include <functional>
|
||||
#include "libslic3r/CustomGCode.hpp"
|
||||
#include "libslic3r/ExtrusionEntity.hpp"
|
||||
|
||||
#define IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user