Skip to content

Commit 3881855

Browse files
committed
Ignore using
1 parent 1f4669d commit 3881855

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎cpp2rust/converter/converter.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,12 @@ bool Converter::VisitTypedefDecl([[maybe_unused]] clang::TypedefDecl *decl) {
11721172
return false;
11731173
}
11741174

1175+
bool Converter::VisitTypeAliasDecl(clang::TypeAliasDecl *) { return false; }
1176+
1177+
bool Converter::VisitTypeAliasTemplateDecl(clang::TypeAliasTemplateDecl *) {
1178+
return false;
1179+
}
1180+
11751181
static bool IsaSemiColonStmt(const clang::Stmt *stmt) {
11761182
switch (stmt->getStmtClass()) {
11771183
case clang::Stmt::IfStmtClass:

‎cpp2rust/converter/converter.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
156156
virtual bool VisitNamespaceDecl(clang::NamespaceDecl *decl);
157157

158158
virtual bool VisitTypedefDecl(clang::TypedefDecl *decl);
159+
virtual bool VisitTypeAliasDecl(clang::TypeAliasDecl *decl);
160+
virtual bool VisitTypeAliasTemplateDecl(clang::TypeAliasTemplateDecl *decl);
159161

160162
virtual bool VisitCompoundStmt(clang::CompoundStmt *stmt);
161163

0 commit comments

Comments
 (0)