Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CppAst/CppFunctionFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,10 @@ public enum CppFunctionFlags
/// This is a function template (has template params in function)
/// </summary>
FunctionTemplate = 1 << 9,

/// <summary>
/// This is a deleted function
/// </summary>
Deleted = 1 << 10,
}
}
4 changes: 4 additions & 0 deletions src/CppAst/CppModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,10 @@ private CppFunction VisitFunctionDecl(CXCursor cursor, CXCursor parent, void* da
{
cppFunction.Flags |= CppFunctionFlags.Pure | CppFunctionFlags.Virtual;
}
if (clang.CXXMethod_isDeleted(cursor) != 0)
{
cppFunction.Flags |= CppFunctionFlags.Deleted;
}

// Gets the return type
var returnType = GetCppType(cursor.ResultType.Declaration, cursor.ResultType, cursor, data);
Expand Down