summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-12-10 15:11:29 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-10 15:11:47 (GMT)
commit5a1627d41b70115c7558536be1eb95e493ac12cb (patch)
tree714c862687b8c550efd96f94fa9a5f3197d30d48 /src
parent2a87046db10851ff1b8e101ecc345657ce663c76 (diff)
downloadCastXML-5a1627d41b70115c7558536be1eb95e493ac12cb.zip
CastXML-5a1627d41b70115c7558536be1eb95e493ac12cb.tar.gz
CastXML-5a1627d41b70115c7558536be1eb95e493ac12cb.tar.bz2
Output: Skip C++11 type alias declarations
The gccxml output format may contain only C++98 constructs.
Diffstat (limited to 'src')
-rw-r--r--src/Output.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index 811364e..abe6a21 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -568,6 +568,14 @@ ASTVisitor::DumpId ASTVisitor::AddDeclDumpNode(clang::Decl const* d,
}
}
+ if (clang::dyn_cast<clang::TypeAliasDecl>(d)) {
+ return DumpId();
+ }
+
+ if (clang::dyn_cast<clang::TypeAliasTemplateDecl>(d)) {
+ return DumpId();
+ }
+
if (clang::TypedefDecl const* td =
clang::dyn_cast<clang::TypedefDecl>(d)) {
if (td->getUnderlyingType()->isRValueReferenceType()) {