From 974e21cdf280ec9e7335b4a0269f9a66a430679c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 26 Apr 2020 15:42:11 +0100 Subject: Put library includes before client includes --- slicer/tool/parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp index a8d8a00..6ede17e 100644 --- a/slicer/tool/parser.cpp +++ b/slicer/tool/parser.cpp @@ -98,8 +98,8 @@ namespace Slicer { if (!cpp) { return true; } fprintbf(cpp, "// Begin Slicer code\n\n"); - fprintbf(cpp, "#include <%s>\n\n", fs::path(topLevelFile.filename()).replace_extension(".h").string()); - fprintbf(cpp, "#include <%s>\n", (headerPrefix / "modelPartsTypes.impl.h").string()); + fprintbf(cpp, "#include <%s>\n\n", (headerPrefix / "modelPartsTypes.impl.h").string()); + fprintbf(cpp, "#include <%s>\n", fs::path(topLevelFile.filename()).replace_extension(".h").string()); for (const auto & m : u->modules()) { for (const auto & i : metaDataValues("slicer:include:", m->getMetaData())) { fprintbf(cpp, "#include <%s>\n", i); -- cgit v1.2.3