From 724ad5c5602f8b2e40a0b7009e24af9f9523ba76 Mon Sep 17 00:00:00 2001 From: randomdan Date: Wed, 3 Sep 2014 18:11:18 +0000 Subject: Ignore interfaces --- slicer/slicer/parser.cpp | 1 + slicer/test/types.ice | 3 +++ 2 files changed, 4 insertions(+) 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(); + }; }; -- cgit v1.2.3