Skip to content

Commit bb0f83a

Browse files
authored
Merge pull request #97 from zombieyang/fn_del
add deleted in cppFunctionFlag
2 parents d26914c + ec89ad2 commit bb0f83a

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
@@ -1304,6 +1304,10 @@ private CppFunction VisitFunctionDecl(CXCursor cursor, CXCursor parent, void* da
13041304
{
13051305
cppFunction.Flags |= CppFunctionFlags.Pure | CppFunctionFlags.Virtual;
13061306
}
1307+
if (clang.CXXMethod_isDeleted(cursor) != 0)
1308+
{
1309+
cppFunction.Flags |= CppFunctionFlags.Deleted;
1310+
}
13071311

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

0 commit comments

Comments
 (0)