13
0

format: Improve header robustness against #include reordering

This commit is contained in:
Mads Kiilerich 2024-07-23 02:57:48 +02:00 committed by Robin Gareus
parent 81ca475b10
commit f063bfef03
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
12 changed files with 16 additions and 14 deletions

View File

@ -28,6 +28,7 @@
#include <vector> #include <vector>
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
#include "evoral/Note.h"
#include "pbd/signals.h" #include "pbd/signals.h"
#include "gtkmm2ext/colors.h" #include "gtkmm2ext/colors.h"

View File

@ -20,6 +20,7 @@
#include "public_editor.h" #include "public_editor.h"
#include "editing.h" #include "editing.h"
#include "audio_clock.h" #include "audio_clock.h"
#include <gtkmm/comboboxtext.h>
class InsertRemoveTimeDialog : public ArdourDialog class InsertRemoveTimeDialog : public ArdourDialog
{ {

View File

@ -29,10 +29,14 @@
#include "note_base.h" #include "note_base.h"
#include "public_editor.h" #include "public_editor.h"
#include "editing_syms.h"
#include "keyboard.h" #include "keyboard.h"
#include "midi_region_view.h" #include "midi_region_view.h"
/* clang-format off */
// Include last, when GRIDTYPE has been defined by editing.h via midi_region_view.h
#include "editing_syms.h"
/* clang-format on */
using namespace std; using namespace std;
using namespace Gtkmm2ext; using namespace Gtkmm2ext;
using ARDOUR::MidiModel; using ARDOUR::MidiModel;

View File

@ -20,13 +20,11 @@
#ifndef __ardour_gtk_playlist_selection_h__ #ifndef __ardour_gtk_playlist_selection_h__
#define __ardour_gtk_playlist_selection_h__ #define __ardour_gtk_playlist_selection_h__
#include "ardour/playlist.h"
#include <list> #include <list>
#include <memory> #include <memory>
namespace ARDOUR {
class Playlist;
}
struct PlaylistSelection : std::list<std::shared_ptr<ARDOUR::Playlist> > { struct PlaylistSelection : std::list<std::shared_ptr<ARDOUR::Playlist> > {
public: public:
const_iterator const_iterator

View File

@ -31,12 +31,12 @@
#include <gtkmm/widget.h> #include <gtkmm/widget.h>
#include <gtkmm/checkbutton.h> #include <gtkmm/checkbutton.h>
#include "ardour/bundle.h"
#include "ardour/data_type.h" #include "ardour/data_type.h"
#include "ardour/types.h" #include "ardour/types.h"
namespace ARDOUR { namespace ARDOUR {
class Session; class Session;
class Bundle;
class Processor; class Processor;
class IO; class IO;
} }

View File

@ -31,10 +31,6 @@
class PortMatrix; class PortMatrix;
class PortMatrixBody; class PortMatrixBody;
namespace ARDOUR {
class Bundle;
}
/** The grid part of the port matrix */ /** The grid part of the port matrix */
class PortMatrixGrid : public PortMatrixComponent class PortMatrixGrid : public PortMatrixComponent
{ {

View File

@ -20,12 +20,9 @@
#ifndef __SYSEX_H__ #ifndef __SYSEX_H__
#define __SYSEX_H__ #define __SYSEX_H__
#include "canvas/flag.h"
#include "midi_region_view.h" #include "midi_region_view.h"
namespace ArdourCanvas {
class Flag;
}
class SysEx class SysEx
{ {
public: public:

View File

@ -18,6 +18,7 @@
*/ */
#include "ardour/libardour_visibility.h" #include "ardour/libardour_visibility.h"
#include "pbd/properties.h"
/** These are GQuarks for a subset of UI operations. We use these /** These are GQuarks for a subset of UI operations. We use these
* so that the undo system can be queried to find out what operations * so that the undo system can be queried to find out what operations

View File

@ -21,6 +21,7 @@
#ifndef __libardour_route_group_member_h__ #ifndef __libardour_route_group_member_h__
#define __libardour_route_group_member_h__ #define __libardour_route_group_member_h__
#include "ardour/libardour_visibility.h"
#include "pbd/controllable.h" #include "pbd/controllable.h"
#include "pbd/signals.h" #include "pbd/signals.h"

View File

@ -24,6 +24,7 @@
#include <map> #include <map>
#include <string> #include <string>
#include "ardour/types.h"
#include "pbd/configuration.h" #include "pbd/configuration.h"
namespace ARDOUR { namespace ARDOUR {

View File

@ -22,6 +22,7 @@
#include <sigc++/trackable.h> #include <sigc++/trackable.h>
#include <gtkmm.h>
#include "gtkmm2ext/visibility.h" #include "gtkmm2ext/visibility.h"
namespace Gtkmm2ext { namespace Gtkmm2ext {

View File

@ -19,6 +19,7 @@
#ifndef __ardour_us2400_control_protocol_control_group_h__ #ifndef __ardour_us2400_control_protocol_control_group_h__
#define __ardour_us2400_control_protocol_control_group_h__ #define __ardour_us2400_control_protocol_control_group_h__
#include <string>
#include <vector> #include <vector>
namespace ArdourSurface { namespace ArdourSurface {