Skip to content

Commit ec89ad2

Browse files
committed
add deleted in cppFunctionFlag
1 parent 7aa59bf commit ec89ad2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/CppAst/CppFunctionFlags.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,10 @@ public enum CppFunctionFlags
6666
/// This is a function template (has template params in function)
6767
/// </summary>
6868
FunctionTemplate = 1 << 9,
69+
70+
/// <summary>
71+
/// This is a deleted function
72+
/// </summary>
73+
Deleted = 1 << 10,
6974
}
7075
}

src/CppAst/CppModelBuilder.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,10 @@ private CppFunction VisitFunctionDecl(CXCursor cursor, CXCursor parent, void* da
13031303
{
13041304
cppFunction.Flags |= CppFunctionFlags.Pure | CppFunctionFlags.Virtual;
13051305
}
1306+
if (clang.CXXMethod_isDeleted(cursor) != 0)
1307+
{
1308+
cppFunction.Flags |= CppFunctionFlags.Deleted;
1309+
}
13061310

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

0 commit comments

Comments
 (0)