summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-04-26 15:42:11 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-04-26 15:42:11 +0100
commit974e21cdf280ec9e7335b4a0269f9a66a430679c (patch)
treebf8c6e980e7af0d337d609b6eea10d6d2adc19d0
parentRemove unnecessary include (diff)
downloadslicer-974e21cdf280ec9e7335b4a0269f9a66a430679c.tar.bz2
slicer-974e21cdf280ec9e7335b4a0269f9a66a430679c.tar.xz
slicer-974e21cdf280ec9e7335b4a0269f9a66a430679c.zip
Put library includes before client includes
-rw-r--r--slicer/tool/parser.cpp4
1 files 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);