From 8d3aedeefd1688b81b120f2fdead6ad8c5823ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 14 Jan 2017 22:07:28 +0100 Subject: [PATCH] MethodBind: Make sure header order is kept When clang-format sorts includes alphabetically, MethodBind breaks. Trying to move the object.h include upward in method_bind.h does not seem to fix the problem, this needs investigation. --- core/method_bind.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/method_bind.cpp b/core/method_bind.cpp index f323f3bc24c..3465edff63a 100644 --- a/core/method_bind.cpp +++ b/core/method_bind.cpp @@ -26,7 +26,10 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ +// object.h needs to be the first include *before* method_bind.h +// FIXME: Find out why and fix potential cyclical dependencies. #include "object.h" + #include "method_bind.h"