diff options
author | randomdan <randomdan@localhost> | 2014-09-03 18:11:18 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-09-03 18:11:18 +0000 |
commit | eca7bd6516852b93d68f23f831ac98fa75ea0455 (patch) | |
tree | 3a2cce78faebe88600583c362b2667d5e05244d6 /slicer | |
parent | Adds core support for model part approximate type (complex, simple, sequence,... (diff) | |
download | slicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.tar.bz2 slicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.tar.xz slicer-eca7bd6516852b93d68f23f831ac98fa75ea0455.zip |
Ignore interfaces
Diffstat (limited to 'slicer')
-rw-r--r-- | slicer/slicer/parser.cpp | 1 | ||||
-rw-r--r-- | slicer/test/types.ice | 3 |
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(); + }; }; |