dfmt/tests/issue0074.d
Hackerpilot 8ab3b5c9f7 Fix #74
2015-03-08 18:01:04 -07:00

13 lines
331 B
D

@property bool isFunctionType()
{
with (CXTypeKind)
return kind == CXType_FunctionNoProto || kind == CXType_FunctionProto
|| // FIXME: This "hack" shouldn't be needed.
func.resultType.isValid;
}
@property bool isFunctionPointerType()
{
with (CXTypeKind)
return kind == CXType_Pointer && pointeeType.isFunctionType;
}