summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-09-03 18:11:18 +0000
committerrandomdan <randomdan@localhost>2014-09-03 18:11:18 +0000
commiteca7bd6516852b93d68f23f831ac98fa75ea0455 (patch)
tree3a2cce78faebe88600583c362b2667d5e05244d6
parentAdds core support for model part approximate type (complex, simple, sequence,... (diff)
downloadslicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.tar.bz2
slicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.tar.xz
slicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.zip
Ignore interfaces
-rw-r--r--slicer/slicer/parser.cpp1
-rw-r--r--slicer/test/types.ice3
2 files changed, 4 insertions, 0 deletions
diff --git a/slicer/slicer/parser.cpp b/slicer/slicer/parser.cpp
index 8e2bfa9..c2f2df7 100644
--- a/slicer/slicer/parser.cpp
+++ b/slicer/slicer/parser.cpp
@@ -46,6 +46,7 @@ namespace Slicer {
bool
Slicer::visitClassDefStart(const Slice::ClassDefPtr & c)
{
+ if (c->isInterface()) { return false; }
if (c->hasMetaData("slicer:ignore")) { return false; }
auto decl = c->declaration();
diff --git a/slicer/test/types.ice b/slicer/test/types.ice
index bdcd4be..d2fe1ab 100644
--- a/slicer/test/types.ice
+++ b/slicer/test/types.ice
@@ -57,4 +57,7 @@ module TestModule {
BaseSeq bs;
BaseMap bm;
};
+ interface IgnoreMe {
+ int someFunction();
+ };
};