mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-09 16:51:12 +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:
@@ -1,3 +1,5 @@
|
||||
#include "PrinterNetworkTypes.hpp"
|
||||
#include "json_diff.hpp"
|
||||
#include "libslic3r/libslic3r.h"
|
||||
#include "DeviceManager.hpp"
|
||||
#include "HMS.hpp"
|
||||
@@ -16,6 +18,46 @@
|
||||
#include "Plater.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
#include "ReleaseNote.hpp"
|
||||
#include <string>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <cstdlib>
|
||||
#include <cstddef>
|
||||
#include "libslic3r/PrintConfig.hpp"
|
||||
#include <cassert>
|
||||
#include "slic3r/GUI/DeviceCore/DevConfigUtil.h"
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <chrono>
|
||||
#include "slic3r/GUI/DeviceCore/DevDefs.h"
|
||||
#include <memory>
|
||||
#include "slic3r/GUI/DeviceCore/DevCalib.h"
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include "libslic3r/calib.hpp"
|
||||
#include <ctime>
|
||||
#include "slic3r/GUI/DeviceCore/DevFilaAmsSetting.h"
|
||||
#include <cstdio>
|
||||
#include "slic3r/GUI/DeviceCore/DevFirmware.h"
|
||||
#include <optional>
|
||||
#include <exception>
|
||||
#include "libslic3r/LocalesUtils.hpp"
|
||||
#include "libslic3r/LifecycleEvents.hpp"
|
||||
#include <system_error>
|
||||
#include "libslic3r/ProjectTask.hpp"
|
||||
#include <cstring>
|
||||
#include <boost/chrono/duration.hpp>
|
||||
#include <iterator>
|
||||
#include "slic3r/GUI/UserNotification.hpp"
|
||||
#include <cctype>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <stdexcept>
|
||||
#include "libslic3r/Config.hpp"
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <ios>
|
||||
#include <iomanip>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <charconv>
|
||||
@@ -25,7 +67,15 @@
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <wx/colour.h>
|
||||
#include <tuple>
|
||||
#include <wx/dir.h>
|
||||
#include <wx/string.h>
|
||||
#include <wx/event.h>
|
||||
#include <wx/gdicmn.h>
|
||||
#include "fast_float/fast_float.h"
|
||||
|
||||
#include "DeviceCore/DevFilaSystem.h"
|
||||
|
||||
Reference in New Issue
Block a user