Skip to content

Commit a32f2a4

Browse files
Merge branch 'main' into main
2 parents b1aa178 + 7eb68ba commit a32f2a4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

sources/libClangSharp/ClangSharp.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,30 @@ unsigned clangsharp_Cursor_getHasDefaultArg(CXCursor C) {
14661466
return 0;
14671467
}
14681468

1469+
unsigned clangsharp_Cursor_getHasUnparsedDefaultArg(CXCursor C) {
1470+
if (isDeclOrTU(C.kind)) {
1471+
const Decl* D = getCursorDecl(C);
1472+
1473+
if (const ParmVarDecl* PVD = dyn_cast<ParmVarDecl>(D)) {
1474+
return PVD->hasUnparsedDefaultArg();
1475+
}
1476+
}
1477+
1478+
return 0;
1479+
}
1480+
1481+
unsigned clangsharp_Cursor_getHasUninstantiatedDefaultArg(CXCursor C) {
1482+
if (isDeclOrTU(C.kind)) {
1483+
const Decl* D = getCursorDecl(C);
1484+
1485+
if (const ParmVarDecl* PVD = dyn_cast<ParmVarDecl>(D)) {
1486+
return PVD->hasUninstantiatedDefaultArg();
1487+
}
1488+
}
1489+
1490+
return 0;
1491+
}
1492+
14691493
unsigned clangsharp_Cursor_getHasElseStorage(CXCursor C) {
14701494
if (isStmtOrExpr(C.kind)) {
14711495
const Stmt* S = getCursorStmt(C);

0 commit comments

Comments
 (0)